Improved AES performance

Simon Josefsson simon at josefsson.org
Mon Mar 17 23:50:54 CET 2008


Werner Koch <wk at gnupg.org> writes:

> Hi!
>
> I hacked libgcrypt a bit to see how to increase the symmetrical cipher
> performance.  This should benefit all architecture except for Padlock,
> which I have not yet changed.  
>
> The current SVN has the changes for AES in CFB and CBC mode.  On my box
> it gives about 25% speedup with the benchmark tool.  That tool has two
> new options:
>
>   --large-buffers 
>                   passes larger blocks of data to the encryption function
>                   and reduces the loop count instead.
>
>   --cipher-repetitions N  
>                   may be used to increase the loop count by a factor N.
>                   This is gives more accurate timings on fas machines.

Does applications using libgcrypt (i.e., gnutls) need to do anything to
take advantage of this speedup?

I'll see if I can measure any difference in my gnutls benchmarks.

/Simon



More information about the Gcrypt-devel mailing list