mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Export crypto_onetimeauth_poly1305_[ref_]implementation_name()
This commit is contained in:
@@ -105,7 +105,7 @@ int crypto_onetimeauth(unsigned char *out,const unsigned char *in,unsigned long
|
||||
}
|
||||
|
||||
const char *
|
||||
crypto_onetimeauth_poly1305_ref_implementation_name(void)
|
||||
crypto_onetimeauth_poly1305_implementation_name(void)
|
||||
{
|
||||
return "ref";
|
||||
}
|
||||
@@ -114,7 +114,7 @@ struct crypto_onetimeauth_poly1305_implementation
|
||||
crypto_onetimeauth_poly1305_ref_implementation(void)
|
||||
{
|
||||
return (crypto_onetimeauth_poly1305_implementation) {
|
||||
.implementation_name = crypto_onetimeauth_implementation_name,
|
||||
.implementation_name = crypto_onetimeauth_poly1305_implementation_name,
|
||||
.onetimeauth = crypto_onetimeauth,
|
||||
.onetimeauth_verify = crypto_onetimeauth_verify
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "crypto_onetimeauth_poly1305.h"
|
||||
|
||||
#define crypto_onetimeauth_implementation_name \
|
||||
#define crypto_onetimeauth_poly1305_implementation_name \
|
||||
crypto_onetimeauth_poly1305_ref_implementation_name
|
||||
|
||||
#define crypto_onetimeauth crypto_onetimeauth_poly1305_ref
|
||||
|
||||
@@ -9,6 +9,8 @@ extern "C" {
|
||||
|
||||
struct crypto_onetimeauth_poly1305_implementation
|
||||
crypto_onetimeauth_poly1305_ref_implementation(void);
|
||||
|
||||
const char *crypto_onetimeauth_poly1305_ref_implementation_name(void);
|
||||
|
||||
int crypto_onetimeauth_poly1305_ref(unsigned char *out,
|
||||
const unsigned char *in,
|
||||
|
||||
Reference in New Issue
Block a user