1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#ifndef crypto_onetimeauth_poly1305_H
#define crypto_onetimeauth_poly1305_H
#include "haslib1305.h"
#ifndef HASLIB1305
#define crypto_onetimeauth_poly1305_tinyssh_BYTES 16
#define crypto_onetimeauth_poly1305_tinyssh_KEYBYTES 32
extern int crypto_onetimeauth_poly1305_tinyssh(unsigned char *,
const unsigned char *,
unsigned long long,
const unsigned char *);
extern int crypto_onetimeauth_poly1305_tinyssh_verify(const unsigned char *,
const unsigned char *,
unsigned long long,
const unsigned char *);
#define crypto_onetimeauth_poly1305 crypto_onetimeauth_poly1305_tinyssh
#define crypto_onetimeauth_poly1305_verify \
crypto_onetimeauth_poly1305_tinyssh_verify
#define crypto_onetimeauth_poly1305_BYTES \
crypto_onetimeauth_poly1305_tinyssh_BYTES
#define crypto_onetimeauth_poly1305_KEYBYTES \
crypto_onetimeauth_poly1305_tinyssh_KEYBYTES
#define crypto_onetimeauth_poly1305_IMPLEMENTATION "tinyssh"
#define crypto_onetimeauth_poly1305_VERSION "-"
#else
#include <lib1305.h>
#define crypto_onetimeauth_poly1305_lib1305_BYTES poly1305_BYTES
#define crypto_onetimeauth_poly1305_lib1305_KEYBYTES poly1305_KEYBYTES
extern int crypto_onetimeauth_poly1305_lib1305(unsigned char *,
const unsigned char *,
unsigned long long,
const unsigned char *);
extern int crypto_onetimeauth_poly1305_lib1305_verify(const unsigned char *,
const unsigned char *,
unsigned long long,
const unsigned char *);
#define crypto_onetimeauth_poly1305 crypto_onetimeauth_poly1305_lib1305
#define crypto_onetimeauth_poly1305_verify \
crypto_onetimeauth_poly1305_lib1305_verify
#define crypto_onetimeauth_poly1305_BYTES \
crypto_onetimeauth_poly1305_lib1305_BYTES
#define crypto_onetimeauth_poly1305_KEYBYTES \
crypto_onetimeauth_poly1305_lib1305_KEYBYTES
#define crypto_onetimeauth_poly1305_IMPLEMENTATION "lib1305"
#define crypto_onetimeauth_poly1305_VERSION "-"
#endif
#endif
|