mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add crypto_onetimeauth_poly1305_statebytes()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user