Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 2 of 2) sorted by relevance

/tinycrypt-latest/lib/source/
Dccm_mode.c139 unsigned int alen, const uint8_t *payload, in tc_ccm_generation_encryption() argument
147 ((alen > 0) && (associated_data == (uint8_t *) 0)) || in tc_ccm_generation_encryption()
148 (alen >= TC_CCM_AAD_MAX_BYTES) || /* associated data size unsupported */ in tc_ccm_generation_encryption()
161 b[0] = ((alen > 0) ? 0x40:0) | (((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_generation_encryption()
170 if (alen > 0) { in tc_ccm_generation_encryption()
171 ccm_cbc_mac(tag, associated_data, alen, 1, c->sched); in tc_ccm_generation_encryption()
200 unsigned int alen, const uint8_t *payload, in tc_ccm_decryption_verification() argument
208 ((alen > 0) && (associated_data == (uint8_t *) 0)) || in tc_ccm_decryption_verification()
209 (alen >= TC_CCM_AAD_MAX_BYTES) || /* associated data size unsupported */ in tc_ccm_decryption_verification()
242 b[0] = ((alen > 0) ? 0x40:0)|(((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_decryption_verification()
[all …]
/tinycrypt-latest/lib/include/tinycrypt/
Dccm_mode.h158 unsigned int alen, const uint8_t *payload,
204 unsigned int alen, const uint8_t *payload, unsigned int plen,