Yes, that is how DES should behave. The decrypting end is unable to know if 
the actual (plain) text ends on a 64 bit boundary. So, if the encrypting 
end does not pad if the plain text's length is divisible by 8, then the 
decrypting end will strip off a certain number of bytes, depending on what 
the last character of the decrypted text is. This is disastrous.

At 17:19 08-08-01 -0400, you wrote:

>Hello everyone,
>
>I am using the command
>openssl enc -des ...........
>for encryption.
>I am wondering whether there is any flaw in openssl or in my thinking,
>because I gave it exactly 128 bits to encrypt and it gives me 128+64 bits as
>the result. I thought that 128 bits should give me 128 bits of encrypted
>text.
>I was thinking that openssl would pad the input so that it ends on a 64 bit
>boundary, and so it should not pad the 128 bit input. But it seems that it
>does pad it with 64 bits.
>
>Does anyone know anything about this?
>Any suggestions/tips are welcome.
>
>Thanks,
>_Shobhit!
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>User Support Mailing List                    [EMAIL PROTECTED]
>Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to