summaryrefslogtreecommitdiff
path: root/nacl/crypto_onetimeauth/poly1305/53/verify.c
blob: c7e063f111334f345af096da1da582d8b02c7b8c (plain)
1
2
3
4
5
6
7
8
9
#include "crypto_verify_16.h"
#include "crypto_onetimeauth.h"

int crypto_onetimeauth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
{
  unsigned char correct[16];
  crypto_onetimeauth(correct,in,inlen,k);
  return crypto_verify_16(h,correct);
}