libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / crypto_onetimeauth / poly1305 / 53 / verify_poly1305_53.c
blobfba6ab62f55996757fc33bcf1e6324b5b0baf806
1 #include "api.h"
2 #include "crypto_onetimeauth_poly1305_53.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);