Mbed OS Reference
|
This file contains Poly1305 definitions and functions. More...
Go to the source code of this file.
Data Structures | |
struct | mbedtls_poly1305_context |
Macros | |
#define | MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0057 |
Invalid input parameter(s). More... | |
#define | MBEDTLS_ERR_POLY1305_FEATURE_UNAVAILABLE -0x0059 |
Feature not available. More... | |
#define | MBEDTLS_ERR_POLY1305_HW_ACCEL_FAILED -0x005B |
Poly1305 hardware accelerator failed. More... | |
Functions | |
void | mbedtls_poly1305_init (mbedtls_poly1305_context *ctx) |
This function initializes the specified Poly1305 context. More... | |
void | mbedtls_poly1305_free (mbedtls_poly1305_context *ctx) |
This function releases and clears the specified Poly1305 context. More... | |
int | mbedtls_poly1305_starts (mbedtls_poly1305_context *ctx, const unsigned char key[32]) |
This function sets the one-time authentication key. More... | |
int | mbedtls_poly1305_update (mbedtls_poly1305_context *ctx, const unsigned char *input, size_t ilen) |
This functions feeds an input buffer into an ongoing Poly1305 computation. More... | |
int | mbedtls_poly1305_finish (mbedtls_poly1305_context *ctx, unsigned char mac[16]) |
This function generates the Poly1305 Message Authentication Code (MAC). More... | |
int | mbedtls_poly1305_mac (const unsigned char key[32], const unsigned char *input, size_t ilen, unsigned char mac[16]) |
This function calculates the Poly1305 MAC of the input buffer with the provided key. More... | |
This file contains Poly1305 definitions and functions.
Poly1305 is a one-time message authenticator that can be used to authenticate messages. Poly1305-AES was created by Daniel Bernstein https://cr.yp.to/mac/poly1305-20050329.pdf The generic Poly1305 algorithm (not tied to AES) was also standardized in RFC 7539.
Definition in file poly1305.h.