Lines Matching defs:decrypt_init
44 crypto_decrypt_init_t decrypt_init;
71 decrypt_init.di_key.ck_format = CRYPTO_KEY_REFERENCE;
72 decrypt_init.di_key.ck_obj_id = key_p->k_handle;
75 decrypt_init.di_key.ck_format = CRYPTO_KEY_RAW;
76 decrypt_init.di_key.ck_data =
78 if (decrypt_init.di_key.ck_data == NULL) {
83 decrypt_init.di_key.ck_length =
87 if (get_rsa_private_key(key_p, &decrypt_init.di_key) !=
98 decrypt_init.di_session = session_p->k_session;
108 decrypt_init.di_mech.cm_type = k_mech_type;
109 decrypt_init.di_mech.cm_param = pMechanism->pParameter;
110 decrypt_init.di_mech.cm_param_len = pMechanism->ulParameterLen;
112 while ((r = ioctl(kernel_fd, CRYPTO_DECRYPT_INIT, &decrypt_init)) < 0) {
119 rv = crypto2pkcs11_error_number(decrypt_init.di_return_value);
122 /* Free memory allocated for decrypt_init.di_key */
125 free(decrypt_init.di_key.ck_data);
127 free_key_attributes(&decrypt_init.di_key);