![]() |
![]() |
CC23x0R5DriverLibrary
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | poly1305_context |
Functions | |
void | poly1305_init (poly1305_context *ctx, const unsigned char key[32]) |
void | poly1305_update (poly1305_context *ctx, const unsigned char *m, size_t bytes) |
void | poly1305_finish (poly1305_context *ctx, unsigned char mac[16]) |
void | poly1305_auth (unsigned char mac[16], const unsigned char *m, size_t bytes, const unsigned char key[32]) |
int | poly1305_verify (const unsigned char mac1[16], const unsigned char mac2[16]) |
int | poly1305_power_on_self_test (void) |
void poly1305_init | ( | poly1305_context * | ctx, |
const unsigned char | key[32] | ||
) |
void poly1305_update | ( | poly1305_context * | ctx, |
const unsigned char * | m, | ||
size_t | bytes | ||
) |
References poly1305_state_internal_t::buffer, poly1305_state_internal_t::leftover, poly1305_block_size, and poly1305_blocks().
Referenced by poly1305_auth(), and poly1305_power_on_self_test().
void poly1305_finish | ( | poly1305_context * | ctx, |
unsigned char | mac[16] | ||
) |
References poly1305_state_internal_t::buffer, poly1305_state_internal_t::final, poly1305_state_internal_t::h, poly1305_state_internal_t::leftover, poly1305_state_internal_t::pad, poly1305_block_size, poly1305_blocks(), poly1305_state_internal_t::r, and U32TO8().
Referenced by poly1305_auth(), and poly1305_power_on_self_test().
void poly1305_auth | ( | unsigned char | mac[16], |
const unsigned char * | m, | ||
size_t | bytes, | ||
const unsigned char | key[32] | ||
) |
References poly1305_finish(), poly1305_init(), and poly1305_update().
Referenced by poly1305_power_on_self_test().
int poly1305_verify | ( | const unsigned char | mac1[16], |
const unsigned char | mac2[16] | ||
) |
Referenced by poly1305_power_on_self_test().
int poly1305_power_on_self_test | ( | void | ) |
References poly1305_auth(), poly1305_finish(), poly1305_init(), poly1305_update(), and poly1305_verify().