Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/icp/io/
H A Daes.c176 aes_ctx_t aes_ctx; in aes_encrypt_atomic() local
182 memset(&aes_ctx, 0, sizeof (aes_ctx_t)); in aes_encrypt_atomic()
189 ret = aes_common_init_ctx(&aes_ctx, template, mechanism, key, in aes_encrypt_atomic()
196 length_needed = plaintext->cd_length + aes_ctx.ac_mac_len; in aes_encrypt_atomic()
199 length_needed = plaintext->cd_length + aes_ctx.ac_tag_len; in aes_encrypt_atomic()
220 ret = crypto_update_iov(&aes_ctx, plaintext, ciphertext, in aes_encrypt_atomic()
224 ret = crypto_update_uio(&aes_ctx, plaintext, ciphertext, in aes_encrypt_atomic()
233 ret = ccm_encrypt_final((ccm_ctx_t *)&aes_ctx, in aes_encrypt_atomic()
238 ASSERT(aes_ctx.ac_remainder_len == 0); in aes_encrypt_atomic()
240 ret = gcm_encrypt_final((gcm_ctx_t *)&aes_ctx, in aes_encrypt_atomic()
[all …]
/freebsd/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 & CCM_MODE) { in aes_encrypt_contiguous_blocks()
82 } else if (aes_ctx->ac_flags & GCM_MODE) { in aes_encrypt_contiguous_blocks()
100 aes_ctx_t *aes_ctx = ctx; in aes_decrypt_contiguous_blocks() local
103 if (aes_ctx->ac_flags & CCM_MODE) { in aes_decrypt_contiguous_blocks()
107 } else if (aes_ctx->ac_flags & GCM_MODE) { in aes_decrypt_contiguous_blocks()
/freebsd/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/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/contrib/libarchive/libarchive/
H A Darchive_cryptor_private.h111 struct aes_ctx ctx;
/freebsd/sys/contrib/openzfs/module/icp/include/modes/
H A Dmodes.h191 typedef struct aes_ctx { struct