Export crypto_onetimeauth_poly1305_ref_implementation()
This commit is contained in:
parent
ab23649de5
commit
ddb268c47c
@ -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
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user