Searched hist:"161151 d7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/crypto/ |
H A D | chacha20poly1305.c | 161151d7 Sat Dec 05 19:51:38 CST 2015 Jason A. Donenfeld <Jason@zx2c4.com> 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> 161151d7 Sat Dec 05 19:51:38 CST 2015 Jason A. Donenfeld <Jason@zx2c4.com> 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>
|