diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-04 22:05:18 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-04 22:05:34 +0100 |
commit | 4d47b16006f5deaa40d4965a503c6a37e12b92ae (patch) | |
tree | c3a25527c560b47d36802bb01753cb2ea5d2ffee /src | |
parent | 8cff496b89f63475e9af07bc19364e4232cd4347 (diff) |
chacha20: name enums
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/include/zinc/chacha20.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/include/zinc/chacha20.h b/src/crypto/include/zinc/chacha20.h index 8de54c9..1b0083d 100644 --- a/src/crypto/include/zinc/chacha20.h +++ b/src/crypto/include/zinc/chacha20.h @@ -11,7 +11,7 @@ #include <linux/kernel.h> #include <linux/types.h> -enum { +enum chacha20_lengths { CHACHA20_NONCE_SIZE = 16, CHACHA20_KEY_SIZE = 32, CHACHA20_KEY_WORDS = CHACHA20_KEY_SIZE / sizeof(u32), @@ -21,7 +21,7 @@ enum { HCHACHA20_KEY_SIZE = CHACHA20_KEY_SIZE }; -enum { /* expand 32-byte k */ +enum chacha20_constants { /* expand 32-byte k */ CHACHA20_CONSTANT_EXPA = 0x61707865U, CHACHA20_CONSTANT_ND_3 = 0x3320646eU, CHACHA20_CONSTANT_2_BY = 0x79622d32U, |