Expose poly1305_context as crypto_onetimeauth_poly1305_state

This commit is contained in:
Frank Denis 2014-06-19 18:55:21 -07:00
parent 3ae2cb5c26
commit 47f409a0c8
2 changed files with 8 additions and 4 deletions

View File

@ -3,10 +3,9 @@
#include <stddef.h>
typedef struct poly1305_context {
unsigned long long aligner;
unsigned char opaque[136];
} poly1305_context;
#include "crypto_onetimeauth_poly1305.h"
typedef crypto_onetimeauth_poly1305_state poly1305_context;
#endif /* POLY1305_DONNA_H */

View File

@ -28,6 +28,11 @@ typedef struct crypto_onetimeauth_poly1305_implementation {
const unsigned char *k);
} crypto_onetimeauth_poly1305_implementation;
typedef struct crypto_onetimeauth_poly1305_state {
unsigned long long aligner;
unsigned char opaque[136];
} crypto_onetimeauth_poly1305_state;
#define crypto_onetimeauth_poly1305_BYTES 16U
SODIUM_EXPORT
size_t crypto_onetimeauth_poly1305_bytes(void);