mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Expose poly1305_context as crypto_onetimeauth_poly1305_state
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user