Make the block lengths part of the public interface
This commit is contained in:
parent
06e9c5ec67
commit
f1c4ceea84
11 changed files with 64 additions and 61 deletions
|
@ -27,18 +27,25 @@
|
|||
*/
|
||||
|
||||
/* Hashes. */
|
||||
#define LC_SHA224_BLOCKLEN 64
|
||||
#define LC_SHA224_HASHLEN 28
|
||||
#define LC_SHA256_BLOCKLEN 64
|
||||
#define LC_SHA256_HASHLEN 32
|
||||
#define LC_SHA384_BLOCKLEN 128
|
||||
#define LC_SHA384_HASHLEN 48
|
||||
#define LC_SHA512_BLOCKLEN 128
|
||||
#define LC_SHA512_HASHLEN 64
|
||||
|
||||
/* Authentitcation. */
|
||||
#define LC_POLY1305_BLOCKLEN 16
|
||||
#define LC_POLY1305_KEYLEN 32
|
||||
#define LC_POLY1305_TAGLEN 16
|
||||
|
||||
/* Ciphers. */
|
||||
#define LC_CHACHA20_BLOCKLEN 64
|
||||
#define LC_CHACHA20_KEYLEN 32
|
||||
#define LC_CHACHA20_NONCELEN 12
|
||||
#define LC_XCHACHA20_BLOCKLEN 64
|
||||
#define LC_XCHACHA20_KEYLEN 32
|
||||
#define LC_XCHACHA20_NONCELEN 24
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue