Leancrypto 1.7.2
Post-Quantum Cryptographic Library
Functions
lc_aead.h File Reference
#include "lc_aes.h"
#include "lc_memory_support.h"
#include "lc_status.h"
+ Include dependency graph for lc_aead.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void lc_aead_zero (struct lc_aead_ctx *ctx)
 Zeroize AEAD context. More...
 
void lc_aead_zero_free (struct lc_aead_ctx *ctx)
 Zeroize and free AEAD context. More...
 
int lc_aead_setkey (struct lc_aead_ctx *ctx, const uint8_t *key, const size_t keylen, const uint8_t *iv, size_t ivlen)
 Set the key for the AEAD encyption or decryption operation. More...
 
int lc_aead_encrypt (struct lc_aead_ctx *ctx, const uint8_t *plaintext, uint8_t *ciphertext, size_t datalen, const uint8_t *aad, size_t aadlen, uint8_t *tag, size_t taglen)
 AEAD-encrypt data in one call. More...
 
int lc_aead_enc_init (struct lc_aead_ctx *ctx, const uint8_t *aad, size_t aadlen)
 Initialize AEAD encryption. More...
 
int lc_aead_enc_update (struct lc_aead_ctx *ctx, const uint8_t *plaintext, uint8_t *ciphertext, size_t datalen)
 AEAD-encrypt data - send partial data. More...
 
int lc_aead_enc_final (struct lc_aead_ctx *ctx, uint8_t *tag, size_t taglen)
 Complete AEAD encryption - Obtain the authentication tag from the encryption operation. More...
 
int lc_aead_decrypt (struct lc_aead_ctx *ctx, const uint8_t *ciphertext, uint8_t *plaintext, size_t datalen, const uint8_t *aad, size_t aadlen, const uint8_t *tag, size_t taglen)
 AEAD-decrypt data in one call. More...
 
int lc_aead_dec_init (struct lc_aead_ctx *ctx, const uint8_t *aad, size_t aadlen)
 Initialize AEAD decryption. More...
 
int lc_aead_dec_update (struct lc_aead_ctx *ctx, const uint8_t *ciphertext, uint8_t *plaintext, size_t datalen)
 AEAD-decrypt data - send partial data. More...
 
int lc_aead_dec_final (struct lc_aead_ctx *ctx, const uint8_t *tag, size_t taglen)
 AEAD-decrypt data - Perform authentication. More...
 
enum lc_alg_status_val lc_aead_alg_status (const struct lc_aead *aead)
 Obtain algorithm status. More...
 
enum lc_alg_status_val lc_aead_ctx_alg_status (const struct lc_aead_ctx *ctx)
 Obtain algorithm status. More...