Searched refs:aes_ctx (Results 1 – 6 of 6) sorted by relevance
266 aes_ctx_t *aes_ctx; in aes_common_init() local307 aes_ctx_t *aes_ctx; in aes_encrypt() local482 ASSERT(aes_ctx->ac_processed_data_len == aes_ctx->ac_data_len); in aes_decrypt()483 ASSERT(aes_ctx->ac_processed_mac_len == aes_ctx->ac_mac_len); in aes_decrypt()775 ASSERT(aes_ctx->ac_processed_mac_len == aes_ctx->ac_mac_len); in aes_decrypt_final()835 aes_ctx_t aes_ctx; in aes_encrypt_atomic() local947 memset(aes_ctx.ac_keysched, 0, aes_ctx.ac_keysched_len); in aes_encrypt_atomic()948 kmem_free(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_encrypt_atomic()1091 memset(aes_ctx.ac_keysched, 0, aes_ctx.ac_keysched_len); in aes_decrypt_atomic()1092 kmem_free(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_decrypt_atomic()[all …]
75 aes_ctx_t *aes_ctx = ctx; in aes_encrypt_contiguous_blocks() local78 if (aes_ctx->ac_flags & CTR_MODE) { in aes_encrypt_contiguous_blocks()81 } else if (aes_ctx->ac_flags & CCM_MODE) { in aes_encrypt_contiguous_blocks()85 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { in aes_encrypt_contiguous_blocks()89 } else if (aes_ctx->ac_flags & CBC_MODE) { in aes_encrypt_contiguous_blocks()108 aes_ctx_t *aes_ctx = ctx; in aes_decrypt_contiguous_blocks() local111 if (aes_ctx->ac_flags & CTR_MODE) { in aes_decrypt_contiguous_blocks()116 } else if (aes_ctx->ac_flags & CCM_MODE) { in aes_decrypt_contiguous_blocks()120 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { in aes_decrypt_contiguous_blocks()124 } else if (aes_ctx->ac_flags & CBC_MODE) { in aes_decrypt_contiguous_blocks()
247 struct aes_ctx *ctx; in aes_encrypt_init()263 struct aes_ctx *actx = ctx; in aes_encrypt()271 struct aes_ctx *actx = ctx; in aes_encrypt_deinit()278 struct aes_ctx *ctx; in aes_decrypt_init()294 struct aes_ctx *actx = ctx; in aes_decrypt()302 struct aes_ctx *actx = ctx; in aes_decrypt_deinit()
635 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks() argument645 t = (uint8_t)((aes_ctx->ccm_mac_len) & 0xFF); in ccm_format_initial_blocks()659 payloadSize = aes_ctx->ccm_data_len; in ccm_format_initial_blocks()668 cb = (uint8_t *)aes_ctx->ccm_cb; in ccm_format_initial_blocks()686 aes_ctx->ccm_counter_mask = mask; in ccm_format_initial_blocks()
111 struct aes_ctx ctx;
249 typedef struct aes_ctx { struct