Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c47 soft_aes_ctx_t *soft_aes_ctx; in soft_aes_crypt_init_common() local
49 soft_aes_ctx = calloc(1, sizeof (soft_aes_ctx_t)); in soft_aes_crypt_init_common()
50 if (soft_aes_ctx == NULL) { in soft_aes_crypt_init_common()
54 soft_aes_ctx->key_sched = aes_alloc_keysched(&size, 0); in soft_aes_crypt_init_common()
56 if (soft_aes_ctx->key_sched == NULL) { in soft_aes_crypt_init_common()
57 free(soft_aes_ctx); in soft_aes_crypt_init_common()
61 soft_aes_ctx->keysched_len = size; in soft_aes_crypt_init_common()
66 session_p->encrypt.context = soft_aes_ctx; in soft_aes_crypt_init_common()
70 session_p->decrypt.context = soft_aes_ctx; in soft_aes_crypt_init_common()
93 free(soft_aes_ctx); in soft_aes_crypt_init_common()
[all …]
H A DsoftEncryptUtil.c201 soft_aes_ctx_t *soft_aes_ctx; in soft_encrypt_init() local
220 soft_aes_ctx = (soft_aes_ctx_t *)session_p->encrypt.context; in soft_encrypt_init()
222 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter, in soft_encrypt_init()
226 soft_aes_ctx->aes_cbc = (void *)aes_cbc_ctx_init( in soft_encrypt_init()
227 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len, in soft_encrypt_init()
228 soft_aes_ctx->ivec); in soft_encrypt_init()
230 if (soft_aes_ctx->aes_cbc == NULL) { in soft_encrypt_init()
231 bzero(soft_aes_ctx->key_sched, in soft_encrypt_init()
232 soft_aes_ctx->keysched_len); in soft_encrypt_init()
233 free(soft_aes_ctx->key_sched); in soft_encrypt_init()
[all …]
H A DsoftDecryptUtil.c179 soft_aes_ctx_t *soft_aes_ctx; in soft_decrypt_init() local
198 soft_aes_ctx = (soft_aes_ctx_t *)session_p->decrypt.context; in soft_decrypt_init()
201 (void) memcpy(soft_aes_ctx->ivec, pMechanism->pParameter, in soft_decrypt_init()
205 soft_aes_ctx->aes_cbc = (void *)aes_cbc_ctx_init( in soft_decrypt_init()
206 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len, in soft_decrypt_init()
207 soft_aes_ctx->ivec); in soft_decrypt_init()
209 if (soft_aes_ctx->aes_cbc == NULL) { in soft_decrypt_init()
210 bzero(soft_aes_ctx->key_sched, in soft_decrypt_init()
211 soft_aes_ctx->keysched_len); in soft_decrypt_init()
212 free(soft_aes_ctx->key_sched); in soft_decrypt_init()
[all …]
H A DsoftKeystore.c2264 soft_aes_ctx_t *soft_aes_ctx; in soft_keystore_crypt() local
2292 soft_aes_ctx = in soft_keystore_crypt()
2295 soft_aes_ctx = in soft_keystore_crypt()
2299 (void) memcpy(soft_aes_ctx->ivec, ivec, AES_BLOCK_LEN); in soft_keystore_crypt()
2302 soft_aes_ctx->aes_cbc = (void *)aes_cbc_ctx_init( in soft_keystore_crypt()
2303 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len, in soft_keystore_crypt()
2304 soft_aes_ctx->ivec); in soft_keystore_crypt()
2306 if (soft_aes_ctx->aes_cbc == NULL) { in soft_keystore_crypt()
2307 bzero(soft_aes_ctx->key_sched, in soft_keystore_crypt()
2308 soft_aes_ctx->keysched_len); in soft_keystore_crypt()
[all …]
H A DsoftCrypt.h55 typedef struct soft_aes_ctx { struct