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