[PATCH] Support for Counter (CTR) mode

Simon Josefsson jas@extundo.com
Mon, 31 Mar 2003 17:50:20 +0200


Moritz Schulte <moritz@duesseldorf.ccc.de> writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> +    { GCRY_CIPHER_MODE_CFB, "CTR", 0 },
>
> I added the mode to benchmark - but with GCRY_CIPHER_MODE_CFB changed
> to GCRY_CIPHER_MODE_CTR. =)

It was twice as fast before!  Darn.  ;-)

Algo       ECB             CBC             CFB             CTR
---------- --------------- --------------- --------------- ---------------
AES256       110ms   110ms   130ms   130ms   130ms   130ms   220ms   220ms