63 #define ASCON128_ISAP_KEY_SIZE 16
68 #define ASCON80PQ_ISAP_KEY_SIZE 20
73 #define ASCON_ISAP_TAG_SIZE 16
78 #define ASCON_ISAP_NONCE_SIZE 16
83 #define ASCON_ISAP_SAVED_KEY_SIZE 80
186 (
unsigned char *c,
size_t *clen,
187 const unsigned char *m,
size_t mlen,
188 const unsigned char *ad,
size_t adlen,
189 const unsigned char *npub,
215 (
unsigned char *m,
size_t *mlen,
216 const unsigned char *c,
size_t clen,
217 const unsigned char *ad,
size_t adlen,
218 const unsigned char *npub,
292 (
unsigned char *c,
size_t *clen,
293 const unsigned char *m,
size_t mlen,
294 const unsigned char *ad,
size_t adlen,
295 const unsigned char *npub,
321 (
unsigned char *m,
size_t *mlen,
322 const unsigned char *c,
size_t clen,
323 const unsigned char *ad,
size_t adlen,
324 const unsigned char *npub,
398 (
unsigned char *c,
size_t *clen,
399 const unsigned char *m,
size_t mlen,
400 const unsigned char *ad,
size_t adlen,
401 const unsigned char *npub,
427 (
unsigned char *m,
size_t *mlen,
428 const unsigned char *c,
size_t clen,
429 const unsigned char *ad,
size_t adlen,
430 const unsigned char *npub,
void ascon128a_isap_aead_free(ascon128a_isap_aead_key_t *pk)
Frees a pre-computed key for ISAP-A-128A.
void ascon128a_isap_aead_save_key(ascon128a_isap_aead_key_t *pk, unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Saves a previously pre-computed key for ISAP-A-128A to a buffer.
void ascon80pq_isap_aead_encrypt(unsigned char *c, size_t *clen, const unsigned char *m, size_t mlen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon80pq_isap_aead_key_t *pk)
Encrypts and authenticates a packet with ISAP-A-80PQ and pre-computed keys.
void ascon80pq_isap_aead_load_key(ascon80pq_isap_aead_key_t *pk, const unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Initializes a pre-computed key for ISAP-A-80PQ from a previously-saved key value.
void ascon128_isap_aead_encrypt(unsigned char *c, size_t *clen, const unsigned char *m, size_t mlen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon128_isap_aead_key_t *pk)
Encrypts and authenticates a packet with ISAP-A-128 and pre-computed keys.
void ascon128_isap_aead_init(ascon128_isap_aead_key_t *pk, const unsigned char *k)
Initializes a pre-computed key for ISAP-A-128.
#define ASCON_ISAP_SAVED_KEY_SIZE
Size of a pre-computed key in its save format.
int ascon128a_isap_aead_decrypt(unsigned char *m, size_t *mlen, const unsigned char *c, size_t clen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon128a_isap_aead_key_t *pk)
Decrypts and authenticates a packet with ISAP-A-128A and pre-computed keys.
void ascon80pq_isap_aead_init(ascon80pq_isap_aead_key_t *pk, const unsigned char *k)
Initializes a pre-computed key for ISAP-A-80PQ.
void ascon128_isap_aead_load_key(ascon128_isap_aead_key_t *pk, const unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Initializes a pre-computed key for ISAP-A-128 from a previously-saved key value.
void ascon80pq_isap_aead_free(ascon80pq_isap_aead_key_t *pk)
Frees a pre-computed key for ISAP-A-80PQ.
void ascon128_isap_aead_save_key(ascon128_isap_aead_key_t *pk, unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Saves a previously pre-computed key for ISAP-A-128 to a buffer.
void ascon128a_isap_aead_init(ascon128a_isap_aead_key_t *pk, const unsigned char *k)
Initializes a pre-computed key for ISAP-A-128A.
int ascon128_isap_aead_decrypt(unsigned char *m, size_t *mlen, const unsigned char *c, size_t clen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon128_isap_aead_key_t *pk)
Decrypts and authenticates a packet with ISAP-A-128 and pre-computed keys.
int ascon80pq_isap_aead_decrypt(unsigned char *m, size_t *mlen, const unsigned char *c, size_t clen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon80pq_isap_aead_key_t *pk)
Decrypts and authenticates a packet with ISAP-A-80PQ and pre-computed keys.
void ascon128_isap_aead_free(ascon128_isap_aead_key_t *pk)
Frees a pre-computed key for ISAP-A-128.
void ascon80pq_isap_aead_save_key(ascon80pq_isap_aead_key_t *pk, unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Saves a previously pre-computed key for ISAP-A-80PQ to a buffer.
void ascon128a_isap_aead_encrypt(unsigned char *c, size_t *clen, const unsigned char *m, size_t mlen, const unsigned char *ad, size_t adlen, const unsigned char *npub, const ascon128a_isap_aead_key_t *pk)
Encrypts and authenticates a packet with ISAP-A-128A and pre-computed keys.
void ascon128a_isap_aead_load_key(ascon128a_isap_aead_key_t *pk, const unsigned char k[ASCON_ISAP_SAVED_KEY_SIZE])
Initializes a pre-computed key for ISAP-A-128A from a previously-saved key value.
Direct access to the ASCON permutation primitive.
Pre-computed key information for ISAP-A-128.
Pre-computed key information for ISAP-A-128A.
Pre-computed key information for ISAP-A-80PQ.
Structure of the internal state of the ASCON permutation.