Lines Matching refs:cipher_mode
32 u32 cipher_mode; in spum_dump_msg_hdr() local
77 cipher_mode = (cflags & CIPHER_MODE) >> CIPHER_MODE_SHIFT; in spum_dump_msg_hdr()
80 cipher_alg, cipher_mode, cipher_type); in spum_dump_msg_hdr()
249 if (cipher_mode == CIPHER_MODE_XTS) { in spum_dump_msg_hdr()
331 enum spu_cipher_mode cipher_mode, in spum_ns2_ctx_max_payload() argument
338 if (cipher_mode == CIPHER_MODE_XTS) in spum_ns2_ctx_max_payload()
360 enum spu_cipher_mode cipher_mode, in spum_nsp_ctx_max_payload() argument
367 if (cipher_mode == CIPHER_MODE_XTS) in spum_nsp_ctx_max_payload()
462 u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, in spum_gcm_ccm_pad_len() argument
468 if ((cipher_mode == CIPHER_MODE_GCM) || in spum_gcm_ccm_pad_len()
469 (cipher_mode == CIPHER_MODE_CCM)) in spum_gcm_ccm_pad_len()
485 u32 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, in spum_assoc_resp_len() argument
495 if (cipher_mode == CIPHER_MODE_GCM) { in spum_assoc_resp_len()
497 pad = spum_gcm_ccm_pad_len(cipher_mode, buflen); in spum_assoc_resp_len()
500 if (cipher_mode == CIPHER_MODE_CCM) { in spum_assoc_resp_len()
505 pad = spum_gcm_ccm_pad_len(cipher_mode, buflen + 2); in spum_assoc_resp_len()
523 u8 spum_aead_ivlen(enum spu_cipher_mode cipher_mode, u16 iv_len) in spum_aead_ivlen() argument