libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_auth / hmacsha512256 / ref / verify_hmacsha512256.c
blobb6cf48931023eb57865dfed8064920471617a955
1 #include "api.h"
2 #include "crypto_verify_32.h"
4 int crypto_auth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
6 unsigned char correct[32];
7 crypto_auth(correct,in,inlen,k);
8 return crypto_verify_32(h,correct);