Add crypto_onetimeauth_poly1305_ref() wrapper.

This commit is contained in:
Frank Denis
2013-09-09 22:17:54 -07:00
parent 796db0c10b
commit b03a2991b2
+11
View File
@@ -4,6 +4,7 @@
#include "crypto_box_curve25519xsalsa20poly1305.h"
#include "crypto_hash_sha256.h"
#include "crypto_hash_sha512.h"
#include "crypto_onetimeauth_poly1305.h"
#include "crypto_scalarmult_curve25519.h"
#include "crypto_secretbox_xsalsa20poly1305.h"
#include "crypto_sign_ed25519.h"
@@ -232,6 +233,16 @@ crypto_verify_32_ref(const unsigned char *x, const unsigned char *y)
return crypto_verify_32(x, y);
}
#undef crypto_onetimeauth_poly1305_ref
SODIUM_EXPORT int
crypto_onetimeauth_poly1305_ref(unsigned char *out,
const unsigned char *in,
unsigned long long inlen,
const unsigned char *k)
{
return crypto_onetimeauth_poly1305(out, in, inlen, k);
}
#ifdef __cplusplus
}
#endif