summaryrefslogtreecommitdiff
path: root/nacl/crypto_onetimeauth/poly1305/x86/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/crypto_onetimeauth/poly1305/x86/verify.c')
-rw-r--r--nacl/crypto_onetimeauth/poly1305/x86/verify.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/nacl/crypto_onetimeauth/poly1305/x86/verify.c b/nacl/crypto_onetimeauth/poly1305/x86/verify.c
new file mode 100644
index 00000000..c7e063f1
--- /dev/null
+++ b/nacl/crypto_onetimeauth/poly1305/x86/verify.c
@@ -0,0 +1,9 @@
1#include "crypto_verify_16.h"
2#include "crypto_onetimeauth.h"
3
4int crypto_onetimeauth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
5{
6 unsigned char correct[16];
7 crypto_onetimeauth(correct,in,inlen,k);
8 return crypto_verify_16(h,correct);
9}