Export crypto_onetimeauth_poly1305_ref_implementation()

This commit is contained in:
Frank Denis 2013-04-18 12:57:31 +02:00
parent ab23649de5
commit ddb268c47c
3 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Public domain.
*/
#include "crypto_onetimeauth.h"
#include "crypto_onetimeauth_poly1305_ref.h"
static void add(unsigned int h[17],const unsigned int c[17])
{
@ -108,3 +109,13 @@ crypto_onetimeauth_poly1305_ref_implementation_name(void)
{
return "ref";
}
struct crypto_onetimeauth_poly1305_implementation
crypto_onetimeauth_poly1305_ref_implementation(void)
{
return (crypto_onetimeauth_poly1305_implementation) {
.implementation_name = crypto_onetimeauth_implementation_name,
.onetimeauth = crypto_onetimeauth,
.onetimeauth_verify = crypto_onetimeauth_verify
};
}

View File

@ -3,6 +3,9 @@
#include "crypto_onetimeauth_poly1305.h"
#define crypto_onetimeauth_implementation_name \
crypto_onetimeauth_poly1305_ref_implementation_name
#define crypto_onetimeauth crypto_onetimeauth_poly1305_ref
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_ref_verify

View File

@ -7,6 +7,9 @@
extern "C" {
#endif
struct crypto_onetimeauth_poly1305_implementation
crypto_onetimeauth_poly1305_ref_implementation(void);
int crypto_onetimeauth_poly1305_ref(unsigned char *out,
const unsigned char *in,
unsigned long long inlen,