Loading...
Searching...
No Matches
poly1305.h File Reference

Poly1305 MAC interface. More...

Detailed Description

Poly1305 MAC interface.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
See also
https://tools.ietf.org/html/rfc8439#section-2.5

Definition in file poly1305.h.

#include <stddef.h>
#include <stdint.h>
+ Include dependency graph for poly1305.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  poly1305_ctx_t
 Poly1305 context. More...
 

Macros

#define POLY1305_BLOCK_SIZE   16
 Poly1305 block size.
 

Functions

void poly1305_init (poly1305_ctx_t *ctx, const uint8_t *key)
 Initialize a poly1305 context.
 
void poly1305_update (poly1305_ctx_t *ctx, const uint8_t *data, size_t len)
 Update the poly1305 context with a block of message.
 
void poly1305_finish (poly1305_ctx_t *ctx, uint8_t *mac)
 Finish the poly1305 operation.
 
void poly1305_auth (uint8_t *mac, const uint8_t *data, size_t len, const uint8_t *key)
 Calculate a single poly1305 tag.