2 #include "crypto_onetimeauth.h"
5 crypto_onetimeauth_bytes(void)
7 return crypto_onetimeauth_BYTES;
11 crypto_onetimeauth_keybytes(void)
13 return crypto_onetimeauth_KEYBYTES;
17 crypto_onetimeauth_primitive(void)
19 return crypto_onetimeauth_PRIMITIVE;
23 crypto_onetimeauth(unsigned char *out, const unsigned char *in,
24 unsigned long long inlen, const unsigned char *k)
26 return crypto_onetimeauth_poly1305(out, in, inlen, k);
30 crypto_onetimeauth_verify(const unsigned char *h, const unsigned char *in,
31 unsigned long long inlen, const unsigned char *k)
33 return crypto_onetimeauth_poly1305_verify(h, in, inlen, k);
37 crypto_onetimeauth_init(crypto_onetimeauth_state *state,
38 const unsigned char *key)
40 return crypto_onetimeauth_poly1305_init
41 ((crypto_onetimeauth_poly1305_state *) state, key);
45 crypto_onetimeauth_update(crypto_onetimeauth_state *state,
46 const unsigned char *in,
47 unsigned long long inlen)
49 return crypto_onetimeauth_poly1305_update
50 ((crypto_onetimeauth_poly1305_state *) state, in, inlen);
54 crypto_onetimeauth_final(crypto_onetimeauth_state *state,
57 return crypto_onetimeauth_poly1305_final
58 ((crypto_onetimeauth_poly1305_state *) state, out);