Export crypto_onetimeauth_poly1305_[ref_]implementation_name()

This commit is contained in:
Frank Denis
2013-04-21 17:32:03 -07:00
parent ddb268c47c
commit 05eefa306e
3 changed files with 5 additions and 3 deletions
@@ -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,