Searched refs:key_sched (Results 1 - 9 of 9) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftEncryptUtil.c173 soft_des_ctx->key_sched, soft_des_ctx->keysched_len,
177 bzero(soft_des_ctx->key_sched,
179 free(soft_des_ctx->key_sched);
227 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len,
231 bzero(soft_aes_ctx->key_sched,
233 free(soft_aes_ctx->key_sched);
266 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len,
270 bzero(soft_aes_ctx->key_sched,
272 free(soft_aes_ctx->key_sched);
328 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched,
[all...]
H A DsoftDecryptUtil.c150 soft_des_ctx->key_sched, soft_des_ctx->keysched_len,
154 bzero(soft_des_ctx->key_sched,
156 free(soft_des_ctx->key_sched);
206 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len,
210 bzero(soft_aes_ctx->key_sched,
212 free(soft_aes_ctx->key_sched);
246 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len,
250 bzero(soft_aes_ctx->key_sched,
252 free(soft_aes_ctx->key_sched);
290 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched,
[all...]
H A DsoftBlowfishCrypt.c49 soft_blowfish_ctx->key_sched = blowfish_alloc_keysched(&size, 0);
51 if (soft_blowfish_ctx->key_sched == NULL) {
100 (void) memcpy(soft_blowfish_ctx->key_sched,
111 soft_blowfish_ctx->key_sched);
306 bzero(soft_blowfish_ctx->key_sched, soft_blowfish_ctx->keysched_len);
307 free(soft_blowfish_ctx->key_sched);
474 bzero(soft_blowfish_ctx->key_sched, soft_blowfish_ctx->keysched_len);
475 free(soft_blowfish_ctx->key_sched);
488 blowfish_cbc_ctx_init(void *key_sched, size_t size, uint8_t *ivec) argument
496 cbc_ctx->cbc_keysched = key_sched;
[all...]
H A DsoftCrypt.h45 void *key_sched; /* pointer to key schedule */ member in struct:soft_des_ctx
56 void *key_sched; /* pointer to key schedule */ member in struct:soft_aes_ctx
65 void *key_sched; /* pointer to key schedule */ member in struct:soft_blowfish_ctx
H A DsoftDESCrypt.c59 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES, 0);
61 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES3, 0);
63 if (soft_des_ctx->key_sched == NULL) {
128 (void) memcpy(soft_des_ctx->key_sched, OBJ_KEY_SCHED(key_p),
135 DES, soft_des_ctx->key_sched);
142 DES2, soft_des_ctx->key_sched);
145 DES3, soft_des_ctx->key_sched);
349 soft_des_ctx->key_sched,
353 soft_des_ctx->key_sched,
456 bzero(soft_des_ctx->key_sched, soft_des_ct
799 des_cbc_ctx_init(void *key_sched, size_t size, uint8_t *ivec, CK_KEY_TYPE type) argument
[all...]
H A DsoftAESCrypt.c54 soft_aes_ctx->key_sched = aes_alloc_keysched(&size, 0);
56 if (soft_aes_ctx->key_sched == NULL) {
109 (void) memcpy(soft_aes_ctx->key_sched, OBJ_KEY_SCHED(key_p),
120 (OBJ_SEC_VALUE_LEN(key_p) * 8), soft_aes_ctx->key_sched);
123 (OBJ_SEC_VALUE_LEN(key_p) * 8), soft_aes_ctx->key_sched);
327 (void) aes_encrypt_block(soft_aes_ctx->key_sched,
457 bzero(soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len);
458 free(soft_aes_ctx->key_sched);
667 (void) aes_decrypt_block(soft_aes_ctx->key_sched,
812 bzero(soft_aes_ctx->key_sched, soft_aes_ct
826 aes_cbc_ctx_init(void *key_sched, size_t size, uint8_t *ivec) argument
849 aes_ctr_ctx_init(void *key_sched, size_t size, uint8_t *param) argument
[all...]
H A DsoftObject.h61 void *key_sched; member in struct:secret_key_obj
668 ((o)->object_class_u.secret_key->key_sched)
H A DsoftAttributeUtil.c6333 if (old_secret_key_obj_p->key_sched != NULL &&
6335 sk->key_sched = malloc(old_secret_key_obj_p->keysched_len);
6336 if (sk->key_sched == NULL) {
6341 (void) memcpy(sk->key_sched, old_secret_key_obj_p->key_sched,
H A DsoftKeystore.c2303 soft_aes_ctx->key_sched, soft_aes_ctx->keysched_len,
2307 bzero(soft_aes_ctx->key_sched,
2309 free(soft_aes_ctx->key_sched);

Completed in 109 milliseconds