My Project
ascon.h
Go to the documentation of this file.
1 
28 int wc_AsconHash256_Init(wc_AsconHash256* a);
29 
59 int wc_AsconHash256_Update(wc_AsconHash256* a, const byte* data, word32 dataSz);
60 
90 int wc_AsconHash256_Final(wc_AsconHash256* a, byte* hash);
91 
110 wc_AsconAEAD128* wc_AsconAEAD128_New(void);
111 
131 void wc_AsconAEAD128_Free(wc_AsconAEAD128 *a);
132 
133 
154 int wc_AsconAEAD128_Init(wc_AsconAEAD128* a);
155 
175 void wc_AsconAEAD128_Clear(wc_AsconAEAD128 *a);
176 
203 int wc_AsconAEAD128_SetKey(wc_AsconAEAD128* a, const byte* key);
204 
231 int wc_AsconAEAD128_SetNonce(wc_AsconAEAD128* a, const byte* nonce);
232 
266 int wc_AsconAEAD128_SetAD(wc_AsconAEAD128* a, const byte* ad, word32 adSz);
267 
318 int wc_AsconAEAD128_EncryptUpdate(wc_AsconAEAD128* a, byte* out, const byte* in,
319  word32 inSz);
320 
367 int wc_AsconAEAD128_EncryptFinal(wc_AsconAEAD128* a, byte* tag);
368 
418 int wc_AsconAEAD128_DecryptUpdate(wc_AsconAEAD128* a, byte* out, const byte* in,
419  word32 inSz);
420 
467 int wc_AsconAEAD128_DecryptFinal(wc_AsconAEAD128* a, const byte* tag);
468 
469 
int wc_AsconAEAD128_DecryptUpdate(wc_AsconAEAD128 *a, byte *out, const byte *in, word32 inSz)
This function updates the decryption process using Ascon AEAD. The output is stored in the out buffer...
int wc_AsconHash256_Init(wc_AsconHash256 *a)
This function initializes the ASCON context for hashing.
int wc_AsconHash256_Update(wc_AsconHash256 *a, const byte *data, word32 dataSz)
This function updates the ASCON hash with the input data.
void wc_AsconAEAD128_Clear(wc_AsconAEAD128 *a)
This function deinitializes an Ascon AEAD context. It does not free the context.
int wc_AsconAEAD128_Init(wc_AsconAEAD128 *a)
This function initializes an Ascon AEAD context.
int wc_AsconAEAD128_SetNonce(wc_AsconAEAD128 *a, const byte *nonce)
This function sets the nonce for the Ascon AEAD context.
wc_AsconAEAD128 * wc_AsconAEAD128_New(void)
This function allocates and initializes a new Ascon AEAD context.
int wc_AsconAEAD128_EncryptFinal(wc_AsconAEAD128 *a, byte *tag)
This function finalizes the encryption process using Ascon AEAD and produces the authentication tag.
void wc_AsconAEAD128_Free(wc_AsconAEAD128 *a)
This function frees the resources associated with the Ascon AEAD context.
int wc_AsconAEAD128_SetAD(wc_AsconAEAD128 *a, const byte *ad, word32 adSz)
This function sets the associated data for the Ascon AEAD context.
int wc_AsconHash256_Final(wc_AsconHash256 *a, byte *hash)
This function finalizes the ASCON hash and produces the output.
int wc_AsconAEAD128_DecryptFinal(wc_AsconAEAD128 *a, const byte *tag)
This function finalizes the decryption process using Ascon AEAD and verifies the authentication tag.
int wc_AsconAEAD128_EncryptUpdate(wc_AsconAEAD128 *a, byte *out, const byte *in, word32 inSz)
This function encrypts a plaintext message using Ascon AEAD. The output is stored in the out buffer....
int wc_AsconAEAD128_SetKey(wc_AsconAEAD128 *a, const byte *key)
This function sets the key for the Ascon AEAD context.