27#ifndef OCRYPTO_AES_CCM_H
28#define OCRYPTO_AES_CCM_H
80 const uint8_t *nonce,
size_t n_len,
size_t tag_len,
size_t pt_len,
size_t aa_len);
185 uint8_t *tag,
size_t tag_len,
186 const uint8_t *pt,
size_t pt_len,
187 const uint8_t *key,
size_t size,
188 const uint8_t *nonce,
size_t n_len,
189 const uint8_t *aa,
size_t aa_len);
213 const uint8_t *tag,
size_t tag_len,
214 const uint8_t *ct,
size_t ct_len,
215 const uint8_t *key,
size_t size,
216 const uint8_t *nonce,
size_t n_len,
217 const uint8_t *aa,
size_t aa_len);
void ocrypto_aes_ccm_update_aad(ocrypto_aes_ccm_ctx *ctx, const uint8_t *aa, size_t aa_len)
void ocrypto_aes_ccm_update_enc(ocrypto_aes_ccm_ctx *ctx, uint8_t *ct, const uint8_t *pt, size_t pt_len)
int ocrypto_aes_ccm_decrypt(uint8_t *pt, const uint8_t *tag, size_t tag_len, const uint8_t *ct, size_t ct_len, const uint8_t *key, size_t size, const uint8_t *nonce, size_t n_len, const uint8_t *aa, size_t aa_len)
void ocrypto_aes_ccm_update_dec(ocrypto_aes_ccm_ctx *ctx, uint8_t *pt, const uint8_t *ct, size_t ct_len)
void ocrypto_aes_ccm_final_enc(ocrypto_aes_ccm_ctx *ctx, uint8_t *tag, size_t tag_len)
int ocrypto_aes_ccm_final_dec(ocrypto_aes_ccm_ctx *ctx, const uint8_t *tag, size_t tag_len)
void ocrypto_aes_ccm_encrypt(uint8_t *ct, uint8_t *tag, size_t tag_len, const uint8_t *pt, size_t pt_len, const uint8_t *key, size_t size, const uint8_t *nonce, size_t n_len, const uint8_t *aa, size_t aa_len)
void ocrypto_aes_ccm_init(ocrypto_aes_ccm_ctx *ctx, const uint8_t *key, size_t size, const uint8_t *nonce, size_t n_len, size_t tag_len, size_t pt_len, size_t aa_len)