Lines Matching full:1
50 } else if ((mlen < 4) || (mlen > 16) || (mlen & 1)) { in tc_ccm_config()
72 T[1] ^= (uint8_t)(dlen); in ccm_cbc_mac()
161 b[0] = ((alen > 0) ? 0x40:0) | (((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_generation_encryption()
162 for (i = 1; i <= 13; ++i) { in tc_ccm_generation_encryption()
163 b[i] = c->nonce[i - 1]; in tc_ccm_generation_encryption()
171 ccm_cbc_mac(tag, associated_data, alen, 1, c->sched); in tc_ccm_generation_encryption()
180 b[0] = 1; /* q - 1 = 2 - 1 = 1 */ in tc_ccm_generation_encryption()
222 b[0] = 1; /* q - 1 = 2 - 1 = 1 */ in tc_ccm_decryption_verification()
223 for (i = 1; i < 14; ++i) { in tc_ccm_decryption_verification()
224 b[i] = c->nonce[i - 1]; in tc_ccm_decryption_verification()
242 b[0] = ((alen > 0) ? 0x40:0)|(((c->mlen - 2) / 2 << 3)) | (1); in tc_ccm_decryption_verification()
243 for (i = 1; i < 14; ++i) { in tc_ccm_decryption_verification()
244 b[i] = c->nonce[i - 1]; in tc_ccm_decryption_verification()
252 ccm_cbc_mac(b, associated_data, alen, 1, c->sched); in tc_ccm_decryption_verification()