summaryrefslogtreecommitdiff
path: root/crypto/rmd160.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-12-06 02:51:38 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-12-09 20:16:04 +0800
commita6b4ab981699dcddd849cbca065f60d7914cb559 (patch)
treeab8a4d3bfc4b267ec3a157898b4d15252c9d08a5 /crypto/rmd160.c
parent7185f32fb45d8c5f03780a40b0c74d9802f3cb2c (diff)
downloadlinux-crypto-a6b4ab981699dcddd849cbca065f60d7914cb559.tar.gz
linux-crypto-a6b4ab981699dcddd849cbca065f60d7914cb559.zip
crypto: chacha20poly1305 - Skip encryption/decryption for 0-len
If the length of the plaintext is zero, there's no need to waste cycles on encryption and decryption. Using the chacha20poly1305 construction for zero-length plaintexts is a common way of using a shared encryption key for AAD authentication. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/rmd160.c')
0 files changed, 0 insertions, 0 deletions