Home GnuPG

rinjdael: add parallel processing for CFB decryption with AES-NI
319ee14f2aabUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

rinjdael: add parallel processing for CFB decryption with AES-NI

* cipher/cipher-selftest.c (_gcry_selftest_helper_cfb_128): New
function for CFB selftests.
* cipher/cipher-selftest.h (_gcry_selftest_helper_cfb_128): New
prototype.
* cipher/rijndael.c [USE_AESNI] (do_aesni_enc_vec4): New function.
(_gcry_aes_cfb_dec) [USE_AESNI]: Add parallelized CFB decryption.
(selftest_cfb_128): New function.
(selftest): Call selftest_cfb_128.

CFB decryption can be parallelized for additional performance. On Intel
Sandy-Bridge processor, this change makes CFB decryption 4.6 times faster.

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on May 23 2013, 1:15 PM
wernerCommitted on May 23 2013, 5:33 PM
Parents
rCb402de8b9c4a: Avoid compiler warning due to the global symbol setkey.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC319ee14f2aab: rinjdael: add parallel processing for CFB decryption with AES-NI (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).May 23 2013, 5:33 PM