My Project
Functions
poly1305.h File Reference

Go to the source code of this file.

Functions

int wc_Poly1305SetKey (Poly1305 *poly1305, const byte *key, word32 kySz)
 This function sets the key for a Poly1305 context structure, initializing it for hashing. Note: A new key should be set after generating a message hash with wc_Poly1305Final to ensure security. More...
 
int wc_Poly1305Update (Poly1305 *poly1305, const byte *m, word32 bytes)
 This function updates the message to hash with the Poly1305 structure. More...
 
int wc_Poly1305Final (Poly1305 *poly1305, byte *tag)
 This function calculates the hash of the input messages and stores the result in mac. After this is called, the key should be reset. More...
 
int wc_Poly1305_MAC (Poly1305 *ctx, byte *additional, word32 addSz, byte *input, word32 sz, byte *tag, word32 tagSz)
 Takes in an initialized Poly1305 struct that has a key loaded and creates a MAC (tag) using recent TLS AEAD padding scheme. More...