Searched refs:soft_des_ctx (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softDESCrypt.c | 50 soft_des_ctx_t *soft_des_ctx; in soft_des_crypt_init_common() local 52 soft_des_ctx = calloc(1, sizeof (soft_des_ctx_t)); in soft_des_crypt_init_common() 53 if (soft_des_ctx == NULL) { in soft_des_crypt_init_common() 59 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES, 0); in soft_des_crypt_init_common() 61 soft_des_ctx->key_sched = des_alloc_keysched(&size, DES3, 0); in soft_des_crypt_init_common() 63 if (soft_des_ctx->key_sched == NULL) { in soft_des_crypt_init_common() 64 free(soft_des_ctx); in soft_des_crypt_init_common() 68 soft_des_ctx->keysched_len = size; in soft_des_crypt_init_common() 69 soft_des_ctx->key_type = key_p->key_type; in soft_des_crypt_init_common() 74 session_p->encrypt.context = soft_des_ctx; in soft_des_crypt_init_common() [all …]
|
H A D | softEncryptUtil.c | 145 soft_des_ctx_t *soft_des_ctx; in soft_encrypt_init() local 166 soft_des_ctx = (soft_des_ctx_t *)session_p->encrypt.context; in soft_encrypt_init() 168 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter, in soft_encrypt_init() 172 soft_des_ctx->des_cbc = (void *)des_cbc_ctx_init( in soft_encrypt_init() 173 soft_des_ctx->key_sched, soft_des_ctx->keysched_len, in soft_encrypt_init() 174 soft_des_ctx->ivec, key_p->key_type); in soft_encrypt_init() 176 if (soft_des_ctx->des_cbc == NULL) { in soft_encrypt_init() 177 bzero(soft_des_ctx->key_sched, in soft_encrypt_init() 178 soft_des_ctx->keysched_len); in soft_encrypt_init() 179 free(soft_des_ctx->key_sched); in soft_encrypt_init() [all …]
|
H A D | softDecryptUtil.c | 122 soft_des_ctx_t *soft_des_ctx; in soft_decrypt_init() local 143 soft_des_ctx = (soft_des_ctx_t *)session_p->decrypt.context; in soft_decrypt_init() 145 (void) memcpy(soft_des_ctx->ivec, pMechanism->pParameter, in soft_decrypt_init() 149 soft_des_ctx->des_cbc = (void *)des_cbc_ctx_init( in soft_decrypt_init() 150 soft_des_ctx->key_sched, soft_des_ctx->keysched_len, in soft_decrypt_init() 151 soft_des_ctx->ivec, key_p->key_type); in soft_decrypt_init() 153 if (soft_des_ctx->des_cbc == NULL) { in soft_decrypt_init() 154 bzero(soft_des_ctx->key_sched, in soft_decrypt_init() 155 soft_des_ctx->keysched_len); in soft_decrypt_init() 156 free(soft_des_ctx->key_sched); in soft_decrypt_init() [all …]
|
H A D | softCrypt.h | 44 typedef struct soft_des_ctx { struct
|