Home
last modified time | relevance | path

Searched refs:soft_des_ctx (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDESCrypt.c51 soft_des_ctx_t *soft_des_ctx; in soft_des_crypt_init_common() local
53 soft_des_ctx = calloc(1, sizeof (soft_des_ctx_t)); in soft_des_crypt_init_common()
54 if (soft_des_ctx == NULL) { in soft_des_crypt_init_common()
60 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES, 0); in soft_des_crypt_init_common()
62 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES3, 0); in soft_des_crypt_init_common()
64 if (soft_des_ctx->key_sched == NULL) { in soft_des_crypt_init_common()
65 free(soft_des_ctx); in soft_des_crypt_init_common()
69 soft_des_ctx->keysched_len = size; in soft_des_crypt_init_common()
70 soft_des_ctx->key_type = key_p->key_type; in soft_des_crypt_init_common()
75 session_p->encrypt.context = soft_des_ctx; in soft_des_crypt_init_common()
[all …]
H A DsoftEncryptUtil.c148 soft_des_ctx_t *soft_des_ctx; in soft_encrypt_init() local
169 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context; in soft_encrypt_init()
171 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter, in soft_encrypt_init()
175 soft_des_ctx->des_cbc = (void *)des_cbc_ctx_init( in soft_encrypt_init()
176 soft_des_ctx->key_sched, soft_des_ctx->keysched_len, in soft_encrypt_init()
177 soft_des_ctx->ivec, key_p->key_type); in soft_encrypt_init()
179 if (soft_des_ctx->des_cbc == NULL) { in soft_encrypt_init()
180 freezero(soft_des_ctx->key_sched, in soft_encrypt_init()
181 soft_des_ctx->keysched_len); in soft_encrypt_init()
484 soft_des_ctx_t *soft_des_ctx; in soft_encrypt_final() local
[all …]
H A DsoftDecryptUtil.c124 soft_des_ctx_t *soft_des_ctx; in soft_decrypt_init() local
145 soft_des_ctx = (soft_des_ctx_t *)session_p->decrypt.context; in soft_decrypt_init()
147 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter, in soft_decrypt_init()
151 soft_des_ctx->des_cbc = (void *)des_cbc_ctx_init( in soft_decrypt_init()
152 soft_des_ctx->key_sched, soft_des_ctx->keysched_len, in soft_decrypt_init()
153 soft_des_ctx->ivec, key_p->key_type); in soft_decrypt_init()
155 if (soft_des_ctx->des_cbc == NULL) { in soft_decrypt_init()
156 freezero(soft_des_ctx->key_sched, in soft_decrypt_init()
157 soft_des_ctx->keysched_len); in soft_decrypt_init()
461 soft_des_ctx_t *soft_des_ctx; in soft_decrypt_final() local
[all …]
H A DsoftCrypt.h45 typedef struct soft_des_ctx { struct