rijndael-ppc: add bulk mode for ocb_auth
* cipher/rijndael-ppc.c (_gcry_aes_ppc8_ocb_auth): New. * cipher/rijndael.c [USE_PPC_CRYPTO] (_gcry_aes_ppc8_ocb_auth): New prototype. (do_setkey, _gcry_aes_ocb_auth) [USE_PPC_CRYPTO]: Add PowerPC AES ocb_auth.
Benchmark on POWER8 ~3.8Ghz:
Before:
AES | nanosecs/byte mebibytes/sec cycles/byte
OCB enc | 0.250 ns/B 3818 MiB/s 0.949 c/B OCB dec | 0.250 ns/B 3820 MiB/s 0.949 c/B OCB auth | 2.31 ns/B 412.5 MiB/s 8.79 c/B
After:
AES | nanosecs/byte mebibytes/sec cycles/byte
OCB enc | 0.252 ns/B 3779 MiB/s 0.959 c/B OCB dec | 0.245 ns/B 3891 MiB/s 0.931 c/B OCB auth | 0.223 ns/B 4283 MiB/s 0.846 c/B
- GnuPG-bug-id: T4529
- Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>