1 #ifndef crypto_onetimeauth_H
2 #define crypto_onetimeauth_H
6 #include "crypto_onetimeauth_poly1305.h"
11 # pragma GCC diagnostic ignored "-Wlong-long"
16 typedef crypto_onetimeauth_poly1305_state crypto_onetimeauth_state;
18 #define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES
20 size_t crypto_onetimeauth_bytes(void);
22 #define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES
24 size_t crypto_onetimeauth_keybytes(void);
26 #define crypto_onetimeauth_PRIMITIVE "poly1305"
28 const char *crypto_onetimeauth_primitive(void);
31 int crypto_onetimeauth(unsigned char *out, const unsigned char *in,
32 unsigned long long inlen, const unsigned char *k);
35 int crypto_onetimeauth_verify(const unsigned char *h, const unsigned char *in,
36 unsigned long long inlen, const unsigned char *k);
39 int crypto_onetimeauth_init(crypto_onetimeauth_state *state,
40 const unsigned char *key);
43 int crypto_onetimeauth_update(crypto_onetimeauth_state *state,
44 const unsigned char *in,
45 unsigned long long inlen);
48 int crypto_onetimeauth_final(crypto_onetimeauth_state *state,