8 #include "crypto_onetimeauth_poly1305.h"
9 #include "crypto_onetimeauth_poly1305_ref.h"
11 static const crypto_onetimeauth_poly1305_implementation
*implementation
=
12 &crypto_onetimeauth_poly1305_ref_implementation
;
15 crypto_onetimeauth_poly1305_set_implementation(crypto_onetimeauth_poly1305_implementation
*impl
)
17 implementation
= impl
;
23 crypto_onetimeauth_poly1305_implementation_name(void)
25 return implementation
->implementation_name();
29 crypto_onetimeauth_poly1305(unsigned char *out
, const unsigned char *in
,
30 unsigned long long inlen
, const unsigned char *k
)
32 return implementation
->onetimeauth(out
, in
, inlen
, k
);
36 crypto_onetimeauth_poly1305_verify(const unsigned char *h
,
37 const unsigned char *in
,
38 unsigned long long inlen
,
39 const unsigned char *k
)
41 return implementation
->onetimeauth_verify(h
, in
, inlen
, k
);