libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_onetimeauth / poly1305 / ref / verify_poly1305_ref.c
blob0b4eed3cf8367ebce71d6845095e4971d97f5003
1 #include "api.h"
2 #include "crypto_onetimeauth_poly1305_ref.h"
3 #include "crypto_verify_16.h"
5 int crypto_onetimeauth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
7 unsigned char correct[16];
8 crypto_onetimeauth(correct,in,inlen,k);
9 return crypto_verify_16(h,correct);