Searched refs:aadlen (Results 1 – 2 of 2) sorted by relevance
94 struct __packed { __be16 l; __be32 h; } aadlen; in ccm_calculate_auth_mac() local100 aadlen.l = cpu_to_be16(assoclen); in ccm_calculate_auth_mac()103 aadlen.l = cpu_to_be16(0xfffe); in ccm_calculate_auth_mac()104 put_unaligned_be32(assoclen, &aadlen.h); in ccm_calculate_auth_mac()109 crypto_xor(mac, (const u8 *)&aadlen, len); in ccm_calculate_auth_mac()
838 unsigned int aadlen = req->assoclen; in gcm_aes_crypt() local869 len = aadlen + pclen; in gcm_aes_crypt()873 param.taadl = aadlen * 8; in gcm_aes_crypt()884 aadlen > 0 ? aadlen : pclen, AES_BLOCK_SIZE); in gcm_aes_crypt()889 if (aadlen + pclen <= bytes) { in gcm_aes_crypt()890 aad_bytes = aadlen; in gcm_aes_crypt()894 if (aadlen <= bytes) { in gcm_aes_crypt()895 aad_bytes = aadlen; in gcm_aes_crypt()896 pc_bytes = (bytes - aadlen) & in gcm_aes_crypt()922 aadlen -= aad_bytes; in gcm_aes_crypt()[all …]