[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: Need Help on 3DES!!!
From:       Jeff Spelman <jeffspel () MICROSOFT ! COM>
Date:       1998-08-28 19:52:10
[Download RAW message or body]


Mikhail
   In currently released versions of the Microsoft CSPs which support 3DES,
only one padding scheme is supported.  If the Final parameter is specified
when calling CryptEncrypt then padding is added to the data before
encryption is performed.  If the buffer is has a length which is a multiple
of the block length (this is 8 bytes for 3DES) then it will pad with eight
bytes of 0x08 before encrypting.  If the buffer length is not a multiple of
the blocklen then the buffer is padded out to a multiple of the block length
before encryption.  The value of the padding bytes is equal to the number of
needed padding bytes, for example if seven bytes of padding are needed then
the byte value is 0x07.

If you need to use another padding scheme you may add the pad bytes yourself
and then call the function with the Final parameter set to FALSE.

Thanks Jeff

-----Original Message-----
From: Mikhail Migalkin [mailto:migalkin@NABLEWEST.COM]
Sent: Friday, August 28, 1998 11:38 AM
To: CryptoAPI@DISCUSS.MICROSOFT.COM
Subject: Need Help on 3DES!!!


Hi,

I need to know what standard MS CAPI 2.0 uses for padding during 3DES
encription?  If there are a few of them, how to set them?  Please let me

know if somebody came across it.

Thank you.

----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic