From 313e440209724c65272974e8d9a6c69f21c52603 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 23 Apr 2013 11:34:56 -0700 Subject: [PATCH] crypto_verify compat --- src/libsodium/sodium/compat.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/libsodium/sodium/compat.c b/src/libsodium/sodium/compat.c index 319eb199..75db2418 100644 --- a/src/libsodium/sodium/compat.c +++ b/src/libsodium/sodium/compat.c @@ -8,6 +8,8 @@ #include "crypto_secretbox_xsalsa20poly1305.h" #include "crypto_sign_ed25519.h" #include "crypto_stream_xsalsa20.h" +#include "crypto_verify_16.h" +#include "crypto_verify_32.h" #include "export.h" #ifdef __cplusplus @@ -212,10 +214,24 @@ SODIUM_EXPORT int crypto_stream_xsalsa20_ref_xor(unsigned char *c, const unsigned char *m, unsigned long long mlen, const unsigned char *n, const unsigned char *k) -{ +{ return crypto_stream_xsalsa20_xor(c, m, mlen, n, k); } +#undef crypto_verify_16_ref +SODIUM_EXPORT int +crypto_verify_16_ref(const unsigned char *x, const unsigned char *y) +{ + return crypto_verify_16(x, y); +} + +#undef crypto_verify_32_ref +SODIUM_EXPORT int +crypto_verify_32_ref(const unsigned char *x, const unsigned char *y) +{ + return crypto_verify_32(x, y); +} + #ifdef __cplusplus } #endif