Searched refs:aes_ctx (Results 1 – 7 of 7) sorted by relevance
/titanic_50/usr/src/uts/common/crypto/io/ |
H A D | aes.c | 360 aes_ctx_t *aes_ctx; in aes_common_init() local 372 if ((rv = aes_check_mech_param(mechanism, &aes_ctx, kmflag)) in aes_common_init() 376 rv = aes_common_init_ctx(aes_ctx, template, mechanism, key, kmflag, in aes_common_init() 379 crypto_free_mode_ctx(aes_ctx); in aes_common_init() 383 ctx->cc_provider_private = aes_ctx; in aes_common_init() 410 aes_ctx_t *aes_ctx; in aes_encrypt() local 414 aes_ctx = ctx->cc_provider_private; in aes_encrypt() 420 if (((aes_ctx->ac_flags & (CTR_MODE|CCM_MODE|GCM_MODE|GMAC_MODE)) in aes_encrypt() 430 switch (aes_ctx->ac_flags & (CCM_MODE|GCM_MODE|GMAC_MODE)) { in aes_encrypt() 432 length_needed = plaintext->cd_length + aes_ctx->ac_mac_len; in aes_encrypt() [all …]
|
/titanic_50/usr/src/common/crypto/aes/ |
H A D | aes_modes.c | 80 aes_ctx_t *aes_ctx = ctx; in aes_encrypt_contiguous_blocks() local 83 if (aes_ctx->ac_flags & CTR_MODE) { in aes_encrypt_contiguous_blocks() 87 } else if (aes_ctx->ac_flags & CCM_MODE) { in aes_encrypt_contiguous_blocks() 91 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { in aes_encrypt_contiguous_blocks() 96 } else if (aes_ctx->ac_flags & CBC_MODE) { in aes_encrypt_contiguous_blocks() 115 aes_ctx_t *aes_ctx = ctx; in aes_decrypt_contiguous_blocks() local 118 if (aes_ctx->ac_flags & CTR_MODE) { in aes_decrypt_contiguous_blocks() 124 } else if (aes_ctx->ac_flags & CCM_MODE) { in aes_decrypt_contiguous_blocks() 128 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { in aes_decrypt_contiguous_blocks() 133 } else if (aes_ctx->ac_flags & CBC_MODE) { in aes_decrypt_contiguous_blocks()
|
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAESCrypt.c | 163 aes_ctx_t *aes_ctx; in soft_aes_encrypt_common() local 451 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; in soft_aes_encrypt_common() 452 if (aes_ctx != NULL) { in soft_aes_encrypt_common() 453 bzero(aes_ctx->ac_keysched, aes_ctx->ac_keysched_len); in soft_aes_encrypt_common() 501 aes_ctx_t *aes_ctx; in soft_aes_decrypt_common() local 806 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; in soft_aes_decrypt_common() 807 if (aes_ctx != NULL) { in soft_aes_decrypt_common() 808 bzero(aes_ctx->ac_keysched, aes_ctx->ac_keysched_len); in soft_aes_decrypt_common()
|
H A D | softEncryptUtil.c | 888 aes_ctx_t *aes_ctx; in soft_crypt_cleanup() local 891 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; in soft_crypt_cleanup() 892 if (aes_ctx != NULL) { in soft_crypt_cleanup() 893 bzero(aes_ctx->ac_keysched, in soft_crypt_cleanup() 894 aes_ctx->ac_keysched_len); in soft_crypt_cleanup()
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | cipher-ctr.c | 35 AES_KEY aes_ctx; member 69 AES_encrypt(c->aes_counter, buf, &c->aes_ctx); in ssh_aes_ctr() 90 &c->aes_ctx); in ssh_aes_ctr_init()
|
/titanic_50/usr/src/common/crypto/modes/ |
H A D | ccm.c | 646 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) in ccm_format_initial_blocks() argument 656 t = (uint8_t)((aes_ctx->ccm_mac_len) & 0xFF); in ccm_format_initial_blocks() 670 payloadSize = aes_ctx->ccm_data_len; in ccm_format_initial_blocks() 679 cb = (uint8_t *)aes_ctx->ccm_cb; in ccm_format_initial_blocks() 694 aes_ctx->ccm_counter_mask = htonll(mask); in ccm_format_initial_blocks()
|
H A D | modes.h | 232 typedef struct aes_ctx { struct
|