Re: PKCS#7 padding

Peter Gutmann <[email protected]> Thu, 14 Feb 2013 01:00:45 +1300
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Lahiru Dissanayake <[email protected]> writes:

>When using encryption contexts to encrypt data, the Cryptlib manual mentions
>"If you=92re using a block cipher in ECB or CBC mode, the encrypted data
>length must be a multiple of the block size." Is there a function in Cryptlib
>to apply PKCS#7 padding to the data to make its length a multiple of the
>block size?

Not if you're using the low-level interface.  If you use the high-level
interface (e.g. envelopes or sessions) it's performed automatically.

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.