Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/openzfs/module/icp/io/
H A Daes.c266 aes_ctx_t *aes_ctx; in aes_common_init() local
307 aes_ctx_t *aes_ctx; in aes_encrypt() local
482 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() local
947 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 …]
/freebsd-14.2/sys/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()
/freebsd-14.2/contrib/wpa/src/crypto/
H A Dcrypto_nettle.c247 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()
/freebsd-14.2/sys/contrib/openzfs/module/icp/algs/modes/
H A Dccm.c635 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks() argument
645 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()
/freebsd-14.2/contrib/libarchive/libarchive/
H A Darchive_cryptor_private.h111 struct aes_ctx ctx;
/freebsd-14.2/sys/contrib/openzfs/module/icp/include/modes/
H A Dmodes.h249 typedef struct aes_ctx { struct