Home GnuPG

Add aggregated bulk processing for GCM on x86-64
c9537fbf8ff0Unpublished

Unpublished Commit ยท Learn More

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

Description

Add aggregated bulk processing for GCM on x86-64

* cipher/cipher-gcm.c [__x86_64__] (gfmul_pclmul_aggr4): New.
(ghash) [GCM_USE_INTEL_PCLMUL]: Add aggregated bulk processing
for __x86_64__.
(setupM) [__x86_64__]: Add initialization for aggregated bulk
processing.

Intel Haswell (x86-64):
Old:
AES GCM enc | 0.990 ns/B 963.3 MiB/s 3.17 c/B

 GCM dec |     0.982 ns/B     970.9 MiB/s      3.14 c/B
GCM auth |     0.711 ns/B    1340.8 MiB/s      2.28 c/B

New:
AES GCM enc | 0.535 ns/B 1783.8 MiB/s 1.71 c/B

 GCM dec |     0.531 ns/B    1796.2 MiB/s      1.70 c/B
GCM auth |     0.255 ns/B    3736.4 MiB/s     0.817 c/B
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Nov 19 2013, 10:26 PM
Parents
rC9b6764944284: GCM: Tweak Intel PCLMUL ghash loop for small speed-up
Branches
Unknown
Tags
Unknown

Event Timeline

Jussi Kivilinna <jussi.kivilinna@iki.fi> committed rCc9537fbf8ff0: Add aggregated bulk processing for GCM on x86-64 (authored by Jussi Kivilinna <jussi.kivilinna@iki.fi>).Nov 20 2013, 5:32 PM