Searched refs:new_objp (Results 1 - 7 of 7) sorted by relevance

/osnet-11/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsKeys.c53 kms_object_t *new_objp = NULL; local
86 new_objp = kms_new_object();
87 if (new_objp == NULL)
90 new_objp->mechanism = pMechanism->mechanism;
91 rv = kms_build_object(pTemplate, ulCount, new_objp);
101 if (new_objp->bool_attr_mask & TOKEN_BOOL_ON)
102 rv = KMS_GenerateKey(session_p, new_objp);
104 rv = kms_generate_softkey(new_objp);
109 if (new_objp->bool_attr_mask & TOKEN_BOOL_ON) {
115 kms_add_token_object_to_slot(new_objp, pslo
[all...]
H A DkmsObjectUtil.c137 kms_object_t *new_objp = NULL; local
141 new_objp = kms_new_object();
142 if (new_objp == NULL)
145 new_objp->class = old_object->class;
146 new_objp->bool_attr_mask = old_object->bool_attr_mask;
156 rv = kms_copy_extra_attr(attrp, new_objp);
158 kms_free_object(new_objp);
164 *new_object = new_objp;
176 new_objp->key_type = old_object->key_type;
177 new_objp
224 kms_object_t *new_objp = NULL; local
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelObjectUtil.c109 kernel_object_t *new_objp = NULL; local
113 new_objp = calloc(1, sizeof (kernel_object_t));
114 if (new_objp == NULL)
117 new_objp->class = old_object->class;
118 new_objp->bool_attr_mask = old_object->bool_attr_mask;
128 rv = kernel_copy_extra_attr(attrp, new_objp);
130 kernel_cleanup_extra_attr(new_objp);
131 free(new_objp);
137 *new_object = new_objp;
149 new_objp
212 kernel_object_t *new_objp = NULL; local
[all...]
H A DkernelKeys.c249 crypto_mech_type_t k_mech_type, kernel_object_t *new_objp)
340 new_objp, session_p, KERNEL_GEN_KEY);
344 new_objp->is_lib_obj = B_TRUE;
345 new_objp->session_handle = (CK_SESSION_HANDLE)session_p;
370 kernel_object_t *new_objp = NULL; local
403 new_objp = calloc(1, sizeof (kernel_object_t));
404 if (new_objp == NULL) {
417 k_mech_type, new_objp);
471 new_objp->k_handle = obj_gk.gk_handle;
472 new_objp
247 key_gen_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, kernel_session_t *session_p, crypto_mech_type_t k_mech_type, kernel_object_t *new_objp) argument
1752 kernel_object_t *new_objp = NULL; local
2178 derive_key_by_value(CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, kernel_session_t *session_p, crypto_mech_type_t k_mech_type, kernel_object_t *basekey_p, kernel_object_t *new_objp) argument
2330 kernel_object_t *new_objp; local
[all...]
/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftObjectUtil.c107 soft_object_t *new_objp = NULL; local
111 new_objp = calloc(1, sizeof (soft_object_t));
112 if (new_objp == NULL)
115 new_objp->class = old_object->class;
116 new_objp->bool_attr_mask = old_object->bool_attr_mask;
117 new_objp->cert_type = old_object->cert_type;
118 new_objp->object_type = old_object->object_type;
128 rv = soft_copy_extra_attr(attrp, new_objp);
130 soft_cleanup_extra_attr(new_objp);
131 free(new_objp);
234 soft_object_t *new_objp = NULL; local
1282 soft_object_t *in_core_obj, *tmp_incore_obj, *new_objp = NULL; local
[all...]
H A DsoftKeysUtil.c72 soft_object_t *new_objp = NULL; local
74 new_objp = calloc(1, sizeof (soft_object_t));
75 if (new_objp == NULL) {
79 new_objp->extra_attrlistp = NULL;
85 rv = soft_build_key(pTemplate, ulCount, new_objp, class, key_type,
96 rv = soft_pin_expired_check(new_objp);
101 rv = soft_object_write_access_check(sp, new_objp);
108 (void) pthread_rwlock_init(&new_objp->object_rwlock, NULL);
109 (void) pthread_mutex_init(&new_objp->object_mutex, NULL);
110 new_objp
1667 soft_object_t *new_objp = NULL; local
[all...]
H A DsoftKeystore.c1926 soft_object_t *new_objp = NULL; local
1936 new_objp = calloc(1, sizeof (soft_object_t));
1937 if (new_objp == NULL) {
1942 rv = soft_keystore_unpack_obj(new_objp, ks_obj);
1944 if (new_objp->class == CKO_CERTIFICATE)
1945 soft_cleanup_cert_object(new_objp);
1947 soft_cleanup_object(new_objp);
1951 soft_add_token_object_to_slot(new_objp);

Completed in 35 milliseconds