23 #ifndef LWCRYPTO_AEAD_METADATA_H
24 #define LWCRYPTO_AEAD_METADATA_H
59 (
unsigned char *c,
size_t *clen,
60 const unsigned char *m,
size_t mlen,
61 const unsigned char *ad,
size_t adlen,
62 const unsigned char *npub,
63 const unsigned char *k);
84 (
unsigned char *m,
size_t *mlen,
85 const unsigned char *c,
size_t clen,
86 const unsigned char *ad,
size_t adlen,
87 const unsigned char *npub,
88 const unsigned char *k);
100 (
unsigned char *pk,
const unsigned char *k);
113 (
unsigned char *out,
const unsigned char *in,
size_t inlen);
130 (
void *state,
const unsigned char *in,
size_t inlen);
150 (
void *state,
const unsigned char *in,
size_t inlen);
160 (
void *state,
unsigned char *out,
size_t outlen);
165 #define AEAD_FLAG_NONE 0x0000
177 #define AEAD_FLAG_LITTLE_ENDIAN 0x0001
182 #define AEAD_FLAG_SC_PROTECT_KEY 0x0002
188 #define AEAD_FLAG_SC_PROTECT_ALL 0x0004
194 #define AEAD_FLAG_SLOW 0x0008
199 #define AEAD_FLAG_MASKED 0x0010
Meta-information about an AEAD cipher.
Definition: aead-metadata.h:204
unsigned pk_state_len
Definition: aead-metadata.h:213
Meta-information about a hash algorithm that is related to an AEAD.
Definition: aead-metadata.h:225
unsigned nonce_len
Definition: aead-metadata.h:208
aead_cipher_pk_init_t pk_init
Definition: aead-metadata.h:214
unsigned flags
Definition: aead-metadata.h:210
unsigned hash_len
Definition: aead-metadata.h:229
size_t state_size
Definition: aead-metadata.h:228
aead_hash_init_t init
Definition: aead-metadata.h:232
const char * name
Definition: aead-metadata.h:227
aead_xof_squeeze_t squeeze
Definition: aead-metadata.h:236
aead_hash_finalize_t finalize
Definition: aead-metadata.h:234
aead_hash_t hash
Definition: aead-metadata.h:231
aead_hash_update_t update
Definition: aead-metadata.h:233
unsigned tag_len
Definition: aead-metadata.h:209
unsigned flags
Definition: aead-metadata.h:230
unsigned key_len
Definition: aead-metadata.h:207
const char * name
Definition: aead-metadata.h:206
aead_cipher_encrypt_t encrypt
Definition: aead-metadata.h:211
aead_cipher_decrypt_t decrypt
Definition: aead-metadata.h:212
aead_xof_absorb_t absorb
Definition: aead-metadata.h:235