From 95af650a3cee941cba4c5e00c7908901a0220f12 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 1 Nov 2015 12:50:10 +0100 Subject: [PATCH] Import onetimeauth_poly1305.h --- .../poly1305/onetimeauth_poly1305.h | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.h diff --git a/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.h b/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.h new file mode 100644 index 00000000..703485a6 --- /dev/null +++ b/src/libsodium/crypto_onetimeauth/poly1305/onetimeauth_poly1305.h @@ -0,0 +1,23 @@ + +#ifndef onetimeauth_poly1305_H +#define onetimeauth_poly1305_H + +typedef struct crypto_onetimeauth_poly1305_implementation { + int (*onetimeauth)(unsigned char *out, + const unsigned char *in, + unsigned long long inlen, + const unsigned char *k); + int (*onetimeauth_verify)(const unsigned char *h, + const unsigned char *in, + unsigned long long inlen, + const unsigned char *k); + int (*onetimeauth_init)(crypto_onetimeauth_poly1305_state *state, + const unsigned char *key); + int (*onetimeauth_update)(crypto_onetimeauth_poly1305_state *state, + const unsigned char *in, + unsigned long long inlen); + int (*onetimeauth_final)(crypto_onetimeauth_poly1305_state *state, + unsigned char *out); +} crypto_onetimeauth_poly1305_implementation; + +#endif