Lines Matching refs:nlen
192 unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, in AES_CCM_encrypt() argument
202 if (nlen < 7 || nlen > 13) in AES_CCM_encrypt()
203 panic("%s: bad nonce length %d", __FUNCTION__, nlen); in AES_CCM_encrypt()
212 L = sizeof(__m128i) - 1 - nlen; in AES_CCM_encrypt()
219 rolling_mac = cbc_mac_start(addt, abytes, nonce, nlen, in AES_CCM_encrypt()
225 bcopy(nonce, &byte_ptr[1], nlen); in AES_CCM_encrypt()
362 const unsigned char *tag, uint32_t nbytes, uint32_t abytes, int nlen, in AES_CCM_decrypt() argument
369 if (nlen < 0 || nlen > 15) in AES_CCM_decrypt()
370 panic("%s: bad nonce length %d", __FUNCTION__, nlen); in AES_CCM_decrypt()
378 L = sizeof(__m128i) - 1 - nlen; in AES_CCM_decrypt()
385 rolling_mac = cbc_mac_start(addt, abytes, nonce, nlen, in AES_CCM_decrypt()
390 bcopy(nonce, &byte_ptr[1], nlen); in AES_CCM_decrypt()
395 decrypt_loop(in, NULL, nbytes, s0, nlen, &rolling_mac, key, nr); in AES_CCM_decrypt()
408 decrypt_loop(in, out, nbytes, s0, nlen, NULL, key, nr); in AES_CCM_decrypt()