1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-25 04:55:07 -07:00

crypto_verify compat

This commit is contained in:
Frank Denis 2013-04-23 11:34:56 -07:00
parent 6777368185
commit 313e440209

View File

@ -8,6 +8,8 @@
#include "crypto_secretbox_xsalsa20poly1305.h" #include "crypto_secretbox_xsalsa20poly1305.h"
#include "crypto_sign_ed25519.h" #include "crypto_sign_ed25519.h"
#include "crypto_stream_xsalsa20.h" #include "crypto_stream_xsalsa20.h"
#include "crypto_verify_16.h"
#include "crypto_verify_32.h"
#include "export.h" #include "export.h"
#ifdef __cplusplus #ifdef __cplusplus
@ -216,6 +218,20 @@ crypto_stream_xsalsa20_ref_xor(unsigned char *c, const unsigned char *m,
return crypto_stream_xsalsa20_xor(c, m, mlen, n, 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 #ifdef __cplusplus
} }
#endif #endif