Home
last modified time | relevance | path

Searched refs:aes_ctx (Results 1 – 4 of 4) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/icp/io/
H A Daes.c347 aes_ctx_t *aes_ctx; in aes_common_init() local
397 aes_ctx_t *aes_ctx; in aes_encrypt() local
572 ASSERT(aes_ctx->ac_processed_data_len == aes_ctx->ac_data_len); in aes_decrypt()
573 ASSERT(aes_ctx->ac_processed_mac_len == aes_ctx->ac_mac_len); in aes_decrypt()
877 ASSERT(aes_ctx->ac_processed_mac_len == aes_ctx->ac_mac_len); in aes_decrypt_final()
1051 bzero(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_encrypt_atomic()
1052 kmem_free(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_encrypt_atomic()
1209 bzero(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_decrypt_atomic()
1210 kmem_free(aes_ctx.ac_keysched, aes_ctx.ac_keysched_len); in aes_decrypt_atomic()
1215 vmem_free(aes_ctx.ac_pt_buf, aes_ctx.ac_data_len); in aes_decrypt_atomic()
[all …]
/f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/
H A Daes_modes.c75 aes_ctx_t *aes_ctx = ctx; in aes_encrypt_contiguous_blocks() local
78 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() local
111 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()
/f-stack/freebsd/contrib/openzfs/module/icp/algs/modes/
H A Dccm.c639 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks() argument
649 t = (uint8_t)((aes_ctx->ccm_mac_len) & 0xFF); in ccm_format_initial_blocks()
663 payloadSize = aes_ctx->ccm_data_len; in ccm_format_initial_blocks()
672 cb = (uint8_t *)aes_ctx->ccm_cb; in ccm_format_initial_blocks()
690 aes_ctx->ccm_counter_mask = mask; in ccm_format_initial_blocks()
/f-stack/freebsd/contrib/openzfs/module/icp/include/modes/
H A Dmodes.h252 typedef struct aes_ctx { struct