Link the floating point implementation of poly1305

This commit is contained in:
Frank Denis
2013-04-21 17:32:04 -07:00
parent ca781f4837
commit fe909c674f
8 changed files with 23 additions and 4 deletions
+5 -2
View File
@@ -53,9 +53,12 @@ libsodium_la_SOURCES = \
crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
crypto_stream/xsalsa20/ref/xor_xsalsa20.c \
crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
crypto_onetimeauth/poly1305/ref/auth_poly1305.c \
crypto_onetimeauth/poly1305/53/auth_poly1305_53.c \
crypto_onetimeauth/poly1305/53/crypto_onetimeauth.h \
crypto_onetimeauth/poly1305/53/verify_poly1305_53.c \
crypto_onetimeauth/poly1305/ref/auth_poly1305_ref.c \
crypto_onetimeauth/poly1305/ref/crypto_onetimeauth.h \
crypto_onetimeauth/poly1305/ref/verify_poly1305.c \
crypto_onetimeauth/poly1305/ref/verify_poly1305_ref.c \
crypto_sign/edwards25519sha512batch/ref/crypto_sign.h \
crypto_sign/edwards25519sha512batch/ref/fe25519.h \
crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c \
@@ -1,2 +0,0 @@
#define CRYPTO_BYTES 16
#define CRYPTO_KEYBYTES 32
@@ -9,6 +9,7 @@ Public domain.
#include <stdlib.h>
#include "crypto_onetimeauth.h"
#include "crypto_onetimeauth_poly1305_53.h"
#pragma STDC FENV_ACCESS ON
@@ -1631,3 +1632,16 @@ nomorebytes:;
}
return 0;
}
const char *
crypto_onetimeauth_poly1305_implementation_name(void)
{
return "53";
}
struct crypto_onetimeauth_poly1305_implementation
crypto_onetimeauth_poly1305_53_implementation = {
.implementation_name = crypto_onetimeauth_poly1305_implementation_name,
.onetimeauth = crypto_onetimeauth,
.onetimeauth_verify = crypto_onetimeauth_verify
};
@@ -3,6 +3,9 @@
#include "crypto_onetimeauth_poly1305.h"
#define crypto_onetimeauth_poly1305_implementation_name \
crypto_onetimeauth_poly1305_53_implementation_name
#define crypto_onetimeauth crypto_onetimeauth_poly1305_53
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_53_verify
+1
View File
@@ -19,6 +19,7 @@ SODIUM_EXPORT = \
sodium/crypto_hashblocks_sha512.h \
sodium/crypto_onetimeauth.h \
sodium/crypto_onetimeauth_poly1305.h \
sodium/crypto_onetimeauth_poly1305_53.h \
sodium/crypto_onetimeauth_poly1305_ref.h \
sodium/crypto_scalarmult_curve25519.h \
sodium/crypto_secretbox.h \