Searched refs:alen (Results 1 – 2 of 2) sorted by relevance
| /tinycrypt-latest/lib/source/ |
| D | ccm_mode.c | 139 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/ |
| D | ccm_mode.h | 158 unsigned int alen, const uint8_t *payload, 204 unsigned int alen, const uint8_t *payload, unsigned int plen,
|