Symmetric cipher padding?

Brad Hards bradh at frogmouth.net
Wed Mar 23 11:06:30 CET 2005


On Wed, 23 Mar 2005 07:48 am, Moritz Schulte wrote:
> On Mon, Mar 21, 2005 at 08:27:38PM +1100, Brad Hards wrote:
> > 1. I've been working on the assumption that if I pass more than
> > block size bytes to gcry_cipher_encrypt(), then libgcrypt will
> > buffer the residual bytes.
>
> Where did you base this assumption on?  Libgcrypt does not buffer such
> data for you - the library is a low-level library - keep this in mind.
I've previously used OpenSSL, which does this. When it didn't do padding, I 
started to understand the nature of the support that libgcrypt provides 
though. No real problem - I can probably implement the buffering along with 
the padding fairly easily in my interface library.

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20050323/c30f96ee/attachment.pgp


More information about the Gcrypt-devel mailing list