Searched refs:ccm_ctx_t (Results 1 – 4 of 4) sorted by relevance
/freebsd/sys/contrib/openzfs/module/icp/include/modes/ |
H A D | modes.h | 120 } ccm_ctx_t; typedef 193 ccm_ctx_t acu_ccm; 211 extern int ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *, char *, size_t, 217 extern int ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *, char *, size_t, 235 int ccm_encrypt_final(ccm_ctx_t *, crypto_data_t *, size_t, 244 extern int ccm_decrypt_final(ccm_ctx_t *, crypto_data_t *, size_t, 253 extern int ccm_init_ctx(ccm_ctx_t *, char *, int, boolean_t, size_t, 262 extern void calculate_ccm_mac(ccm_ctx_t *, uint8_t *,
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | modes.c | 131 if (((ccm_ctx_t *)ctx)->ccm_pt_buf != NULL) in crypto_free_mode_ctx() 132 vmem_free(((ccm_ctx_t *)ctx)->ccm_pt_buf, in crypto_free_mode_ctx() 133 ((ccm_ctx_t *)ctx)->ccm_data_len); in crypto_free_mode_ctx() 135 kmem_free(ctx, sizeof (ccm_ctx_t)); in crypto_free_mode_ctx()
|
H A D | ccm.c | 41 ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, in ccm_mode_encrypt_contiguous_blocks() 170 calculate_ccm_mac(ccm_ctx_t *ctx, uint8_t *ccm_mac, in calculate_ccm_mac() 193 ccm_encrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, in ccm_encrypt_final() 319 ccm_decrypt_incomplete_block(ccm_ctx_t *ctx, in ccm_decrypt_incomplete_block() 343 ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, in ccm_mode_decrypt_contiguous_blocks() 517 ccm_decrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, in ccm_decrypt_final() 557 calculate_ccm_mac((ccm_ctx_t *)ctx, ccm_mac_p, encrypt_block); in ccm_decrypt_final() 635 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks() 758 ccm_init(ccm_ctx_t *ctx, unsigned char *nonce, size_t nonce_len, in ccm_init() 846 ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag, in ccm_init_ctx() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/io/ |
H A D | aes.c | 233 ret = ccm_encrypt_final((ccm_ctx_t *)&aes_ctx, in aes_encrypt_atomic() 336 ret = ccm_decrypt_final((ccm_ctx_t *)&aes_ctx, in aes_decrypt_atomic() 474 rv = ccm_init_ctx((ccm_ctx_t *)aes_ctx, mechanism->cm_param, in aes_common_init_ctx()
|