verify.c 302 B

123456789
  1. #include "crypto_verify_16.h"
  2. #include "crypto_onetimeauth.h"
  3. int crypto_onetimeauth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
  4. {
  5. unsigned char correct[16];
  6. crypto_onetimeauth(correct,in,inlen,k);
  7. return crypto_verify_16(h,correct);
  8. }