32#ifndef OCRYPTO_POLY1305_H
33#define OCRYPTO_POLY1305_H
47#define ocrypto_poly1305_KEY_BYTES (32)
52#define ocrypto_poly1305_BYTES (16)
62} ocrypto_poly1305_ctx;
93 ocrypto_poly1305_ctx *ctx,
112 ocrypto_poly1305_ctx *ctx,
113 const uint8_t *in,
size_t in_len);
126 ocrypto_poly1305_ctx *ctx);
145 ocrypto_poly1305_ctx *ctx,
162 const uint8_t *in,
size_t in_len,
#define ocrypto_poly1305_BYTES
Definition ocrypto_poly1305.h:52
void ocrypto_poly1305_init(ocrypto_poly1305_ctx *ctx, const uint8_t key[(32)])
void ocrypto_poly1305_final(ocrypto_poly1305_ctx *ctx, uint8_t r[(16)])
#define ocrypto_poly1305_KEY_BYTES
Definition ocrypto_poly1305.h:47
void ocrypto_poly1305(uint8_t r[(16)], const uint8_t *in, size_t in_len, const uint8_t k[(32)])
void ocrypto_poly1305_update(ocrypto_poly1305_ctx *ctx, const uint8_t *in, size_t in_len)
void ocrypto_poly1305_pad(ocrypto_poly1305_ctx *ctx)