Home
last modified time | relevance | path

Searched refs:ccm_ctx_t (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.h182 } ccm_ctx_t; typedef
249 ccm_ctx_t acu_ccm;
316 extern int ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *, char *, size_t,
322 extern int ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *, char *, size_t,
340 int ccm_encrypt_final(ccm_ctx_t *, crypto_data_t *, size_t,
349 extern int ccm_decrypt_final(ccm_ctx_t *, crypto_data_t *, size_t,
371 extern int ccm_init_ctx(ccm_ctx_t *, char *, int, boolean_t, size_t,
385 extern void calculate_ccm_mac(ccm_ctx_t *, uint8_t *,
H A Dccm.c48 ccm_mode_encrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, in ccm_mode_encrypt_contiguous_blocks()
183 calculate_ccm_mac(ccm_ctx_t *ctx, uint8_t *ccm_mac, in calculate_ccm_mac()
207 ccm_encrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, in ccm_encrypt_final()
334 ccm_decrypt_incomplete_block(ccm_ctx_t *ctx, in ccm_decrypt_incomplete_block()
359 ccm_mode_decrypt_contiguous_blocks(ccm_ctx_t *ctx, char *data, size_t length, in ccm_mode_decrypt_contiguous_blocks()
527 ccm_decrypt_final(ccm_ctx_t *ctx, crypto_data_t *out, size_t block_size, in ccm_decrypt_final()
568 calculate_ccm_mac((ccm_ctx_t *)ctx, ccm_mac_p, encrypt_block); in ccm_decrypt_final()
646 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks()
770 ccm_init(ccm_ctx_t *ctx, unsigned char *nonce, size_t nonce_len, in ccm_init()
854 ccm_init_ctx(ccm_ctx_t *ccm_ctx, char *param, int kmflag, in ccm_init_ctx()
[all …]
H A Dmodes.c206 if (((ccm_ctx_t *)ctx)->ccm_pt_buf != NULL) in crypto_free_mode_ctx()
207 kmem_free(((ccm_ctx_t *)ctx)->ccm_pt_buf, in crypto_free_mode_ctx()
208 ((ccm_ctx_t *)ctx)->ccm_data_len); in crypto_free_mode_ctx()
210 kmem_free(ctx, sizeof (ccm_ctx_t)); in crypto_free_mode_ctx()
212 if (((ccm_ctx_t *)ctx)->ccm_pt_buf != NULL) in crypto_free_mode_ctx()
213 free(((ccm_ctx_t *)ctx)->ccm_pt_buf); in crypto_free_mode_ctx()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c251 rc = ccm_init_ctx((ccm_ctx_t *)aes_ctx, (char *)&ccm_params, 0, in soft_aes_init_ctx()
457 rc = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, &out, in soft_aes_encrypt()
774 rc = ccm_decrypt_final((ccm_ctx_t *)aes_ctx, &out, in soft_aes_decrypt()
1238 rc = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, &data, in soft_aes_encrypt_final()
1417 rc = ccm_decrypt_final((ccm_ctx_t *)aes_ctx, &out, in soft_aes_decrypt_final()
1627 len = sizeof (ccm_ctx_t); in soft_aes_free_ctx()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Daes.c486 ret = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, ciphertext, in aes_encrypt()
607 ret = ccm_decrypt_final((ccm_ctx_t *)aes_ctx, plaintext, in aes_decrypt()
823 ret = ccm_encrypt_final((ccm_ctx_t *)aes_ctx, data, in aes_encrypt_final()
909 ret = ccm_decrypt_final((ccm_ctx_t *)aes_ctx, data, in aes_decrypt_final()
1053 ret = ccm_encrypt_final((ccm_ctx_t *)&aes_ctx, in aes_encrypt_atomic()
1211 ret = ccm_decrypt_final((ccm_ctx_t *)&aes_ctx, in aes_decrypt_atomic()
1393 rv = ccm_init_ctx((ccm_ctx_t *)aes_ctx, mechanism->cm_param, in aes_common_init_ctx()