summaryrefslogtreecommitdiff
path: root/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c')
-rw-r--r--src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c b/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c
new file mode 100644
index 0000000..b6cf489
--- /dev/null
+++ b/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c
@@ -0,0 +1,9 @@
+#include "api.h"
+#include "crypto_verify_32.h"
+
+int crypto_auth_verify(const unsigned char *h,const unsigned char *in,unsigned long long inlen,const unsigned char *k)
+{
+ unsigned char correct[32];
+ crypto_auth(correct,in,inlen,k);
+ return crypto_verify_32(h,correct);
+}