aboutsummaryrefslogtreecommitdiffstats
path: root/common/exechelp-posix.c
diff options
context:
space:
mode:
authorJussi Kivilinna <[email protected]>2022-02-11 17:29:33 +0000
committerJussi Kivilinna <[email protected]>2022-03-08 18:00:31 +0000
commit99e2c178c73cb6b82836b056ac658d8964fa7bc9 (patch)
treef1c0069c5c44afd095d67dc173a80c73f5af1c90 /common/exechelp-posix.c
parentg10/decrypt-data: disable output estream buffering to reduce overhead (diff)
downloadgnupg-99e2c178c73cb6b82836b056ac658d8964fa7bc9.tar.gz
gnupg-99e2c178c73cb6b82836b056ac658d8964fa7bc9.zip
g10/cipher-aead: add fast path for avoid memcpy when AEAD encrypting
* g10/cipher-aead.c (do_hash): Add faster path for encrypting directly from input buffer instead of memcpying then encrypting inplace. -- When encrypting with AES256.OCB on AMD Ryzen 5800X, memcpy shows as taking largest portion of computation time. Patch adds fast path for AEAD encryption which largely eliminates need for memcpying when doing AEAD encryption. AES256.OCB throughput increases from 2.2GB/s to 4.2GB/s on said system (1.9x faster). GnuPG-bug-id: T5828 Signed-off-by: Jussi Kivilinna <[email protected]>
Diffstat (limited to 'common/exechelp-posix.c')
0 files changed, 0 insertions, 0 deletions