mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-26 11:47:13 +09:00
Add crypto_onetimeauth_poly1305_ref() wrapper.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user