Searched defs:aes_ctx (Results 1 - 6 of 6) sorted by relevance
/illumos-gate/usr/src/common/crypto/aes/ |
H A D | aes_modes.c | 80 aes_ctx_t *aes_ctx = ctx; local 83 if (aes_ctx->ac_flags & CTR_MODE) { 87 } else if (aes_ctx->ac_flags & CCM_MODE) { 91 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { 96 } else if (aes_ctx->ac_flags & CBC_MODE) { 115 aes_ctx_t *aes_ctx = ctx; local 118 if (aes_ctx->ac_flags & CTR_MODE) { 124 } else if (aes_ctx->ac_flags & CCM_MODE) { 128 } else if (aes_ctx->ac_flags & (GCM_MODE|GMAC_MODE)) { 133 } else if (aes_ctx [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAESCrypt.c | 163 aes_ctx_t *aes_ctx; local 451 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; 452 if (aes_ctx != NULL) { 453 bzero(aes_ctx->ac_keysched, aes_ctx->ac_keysched_len); 501 aes_ctx_t *aes_ctx; local 806 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; 807 if (aes_ctx != NULL) { 808 bzero(aes_ctx->ac_keysched, aes_ctx [all...] |
H A D | softEncryptUtil.c | 888 aes_ctx_t *aes_ctx; local 891 aes_ctx = (aes_ctx_t *)soft_aes_ctx->aes_cbc; 892 if (aes_ctx != NULL) { 893 bzero(aes_ctx->ac_keysched, 894 aes_ctx->ac_keysched_len);
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | ccm.c | 646 ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) 656 t = (uint8_t)((aes_ctx->ccm_mac_len) & 0xFF); 670 payloadSize = aes_ctx->ccm_data_len; 679 cb = (uint8_t *)aes_ctx->ccm_cb; 694 aes_ctx->ccm_counter_mask = htonll(mask); 786 * aes_ctx->ccm_iv is used for storing the counter block 645 ccm_format_initial_blocks(uchar_t *nonce, ulong_t nonceSize, ulong_t authDataSize, uint8_t *b0, ccm_ctx_t *aes_ctx) argument
|
H A D | modes.h | 232 typedef struct aes_ctx { struct
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | aes.c | 360 aes_ctx_t *aes_ctx; local 372 if ((rv = aes_check_mech_param(mechanism, &aes_ctx, kmflag)) 376 rv = aes_common_init_ctx(aes_ctx, template, mechanism, key, kmflag, 379 crypto_free_mode_ctx(aes_ctx); 383 ctx->cc_provider_private = aes_ctx; 410 aes_ctx_t *aes_ctx; local 414 aes_ctx = ctx->cc_provider_private; 420 if (((aes_ctx->ac_flags & (CTR_MODE|CCM_MODE|GCM_MODE|GMAC_MODE)) 430 switch (aes_ctx->ac_flags & (CCM_MODE|GCM_MODE|GMAC_MODE)) { 432 length_needed = plaintext->cd_length + aes_ctx 525 aes_ctx_t *aes_ctx; local 641 aes_ctx_t *aes_ctx; local 716 aes_ctx_t *aes_ctx; local 800 aes_ctx_t *aes_ctx; local 858 aes_ctx_t *aes_ctx; local 964 aes_ctx_t aes_ctx; /* on the stack */ local 1094 aes_ctx_t aes_ctx; /* on the stack */ local 1296 aes_ctx_t *aes_ctx = ctx->cc_provider_private; local 1314 aes_common_init_ctx(aes_ctx_t *aes_ctx, crypto_spi_ctx_template_t *template, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag, boolean_t is_encrypt_init) argument [all...] |
Completed in 66 milliseconds