Add crypto_onetimeauth_poly1305_statebytes()

This commit is contained in:
Frank Denis
2017-03-05 11:28:56 +01:00
parent b0b356a5a9
commit f1fdb2a763
2 changed files with 9 additions and 0 deletions
@@ -63,6 +63,12 @@ crypto_onetimeauth_poly1305_keybytes(void)
return crypto_onetimeauth_poly1305_KEYBYTES;
}
size_t
crypto_onetimeauth_poly1305_statebytes(void)
{
return sizeof(crypto_onetimeauth_poly1305_state);
}
void
crypto_onetimeauth_poly1305_keygen(
unsigned char k[crypto_onetimeauth_poly1305_KEYBYTES])
@@ -20,6 +20,9 @@ typedef CRYPTO_ALIGN(16) struct crypto_onetimeauth_poly1305_state {
unsigned char opaque[256];
} crypto_onetimeauth_poly1305_state;
SODIUM_EXPORT
size_t crypto_onetimeauth_poly1305_statebytes(void);
#define crypto_onetimeauth_poly1305_BYTES 16U
SODIUM_EXPORT
size_t crypto_onetimeauth_poly1305_bytes(void);