nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_poly1305.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define ocrypto_poly1305_KEY_BYTES   (32)
 
#define ocrypto_poly1305_BYTES   (16)
 

Functions

void ocrypto_poly1305 (uint8_t r[(16)], const uint8_t *in, size_t in_len, const uint8_t k[(32)])
 
Incremental Poly1305 generator.

This group of functions can be used to incrementally compute the Poly1305 authenticator on a message.

Use pattern:

ocrypto_poly1305_update(ctx, m, m_len);
...
ocrypto_chacha20_update(ctx, m, m_len);
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)])
void ocrypto_poly1305_update(ocrypto_poly1305_ctx *ctx, const uint8_t *in, size_t in_len)
void ocrypto_poly1305_init (ocrypto_poly1305_ctx *ctx, const uint8_t key[(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)
 
void ocrypto_poly1305_final (ocrypto_poly1305_ctx *ctx, uint8_t r[(16)])