CC23x0R5DriverLibrary
sw_poly1305-donna.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Filename: sw_poly1305-donna.h
3  ******************************************************************************/
4 
5 #ifndef POLY1305_DONNA_H
6 #define POLY1305_DONNA_H
7 
8 #include <stddef.h>
9 
10 typedef struct
11 {
12  size_t aligner;
13  unsigned char opaque[136];
15 
16 void poly1305_init(poly1305_context *ctx, const unsigned char key[32]);
17 void poly1305_update(poly1305_context *ctx, const unsigned char *m, size_t bytes);
18 void poly1305_finish(poly1305_context *ctx, unsigned char mac[16]);
19 void poly1305_auth(unsigned char mac[16], const unsigned char *m, size_t bytes, const unsigned char key[32]);
20 
21 int poly1305_verify(const unsigned char mac1[16], const unsigned char mac2[16]);
23 
24 #endif /* POLY1305_DONNA_H */
void poly1305_init(poly1305_context *ctx, const unsigned char key[32])
Definition: sw_poly1305-donna-32.h:45
void poly1305_update(poly1305_context *ctx, const unsigned char *m, size_t bytes)
Definition: sw_poly1305-donna.c:9
void poly1305_finish(poly1305_context *ctx, unsigned char mac[16])
Definition: sw_poly1305-donna-32.h:151
Definition: sw_poly1305-donna.h:10
void poly1305_auth(unsigned char mac[16], const unsigned char *m, size_t bytes, const unsigned char key[32])
Definition: sw_poly1305-donna.c:57
size_t aligner
Definition: sw_poly1305-donna.h:12
int poly1305_power_on_self_test(void)
Definition: sw_poly1305-donna.c:78
int poly1305_verify(const unsigned char mac1[16], const unsigned char mac2[16])
Definition: sw_poly1305-donna.c:65