Leancrypto 1.6.0
Post-Quantum Cryptographic Library
Loading...
Searching...
No Matches
lc_aead.h File Reference
#include "lc_aes.h"
#include "lc_memory_support.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.
void lc_aead_zero_free (struct lc_aead_ctx *ctx)
 Zeroize and free AEAD context.
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.
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.
int lc_aead_enc_init (struct lc_aead_ctx *ctx, const uint8_t *aad, size_t aadlen)
 Initialize AEAD encryption.
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.
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.
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.
int lc_aead_dec_init (struct lc_aead_ctx *ctx, const uint8_t *aad, size_t aadlen)
 Initialize AEAD decryption.
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.
int lc_aead_dec_final (struct lc_aead_ctx *ctx, const uint8_t *tag, size_t taglen)
 AEAD-decrypt data - Perform authentication.
uint64_t lc_aead_algorithm_type (const struct lc_aead *aead)
 Obtain algorithm type usable with lc_alg_status.
uint64_t lc_aead_ctx_algorithm_type (const struct lc_aead_ctx *ctx)
 Obtain algorithm type usable with lc_alg_status.