verify.c 281 B

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