gcm128.c: P.-M. Hager has tipped about possibility to fold reductions
authorAndy Polyakov <appro@openssl.org>
Wed, 26 May 2010 21:36:36 +0000 (21:36 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 26 May 2010 21:36:36 +0000 (21:36 +0000)
commite747f4d41885efa200b8fafa67cd81c52223cd31
tree57a3325cfe3f5e4a44093a95124d4382ec067461
parent19a45b8d47cecbb352e69098717f373c190bc4e7
gcm128.c: P.-M. Hager has tipped about possibility to fold reductions
in gcm_ghash_4bit. Taking the idea a step further I've added extra
256+16 bytes of per-key storage, so that one can speak about 3rd variant
in addition to "256B" and "4KB": "528B" one. Commonly it should be
~50% faster than "256B" implementation or ~25% slower than "4KB" one.
crypto/modes/gcm128.c