/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softObjectUtil.c | 46 soft_add_object_to_session(soft_object_t *objp, soft_session_t *sp) in soft_add_object_to_session() 77 soft_cleanup_object(soft_object_t *objp) in soft_cleanup_object() 104 soft_copy_object(soft_object_t *old_object, soft_object_t **new_object, in soft_copy_object() 109 soft_object_t *new_objp = NULL; in soft_copy_object() 113 new_objp = calloc(1, sizeof (soft_object_t)); in soft_copy_object() 218 soft_merge_object(soft_object_t *old_object, soft_object_t *new_object) in soft_merge_object() 232 handle2object(CK_OBJECT_HANDLE hObject, soft_object_t **object_p, in handle2object() 235 soft_object_t *obj; in handle2object() 236 soft_object_t node; in handle2object() 266 set_objecthandle(soft_object_t *obj) in set_objecthandle() [all …]
|
H A D | softEC.h | 40 soft_object_t *key; 44 extern CK_RV soft_get_public_key_attribute(soft_object_t *, CK_ATTRIBUTE_PTR); 45 extern CK_RV soft_get_private_key_attribute(soft_object_t *, CK_ATTRIBUTE_PTR); 46 extern CK_RV set_extra_attr_to_object(soft_object_t *, CK_ATTRIBUTE_TYPE, 48 extern CK_RV soft_ec_genkey_pair(soft_object_t *, soft_object_t *); 49 extern CK_RV soft_ec_key_derive(soft_object_t *, soft_object_t *, void *, 52 CK_MECHANISM_PTR, soft_object_t *, boolean_t);
|
H A D | softKeys.h | 52 CK_RV soft_derivekey(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *, 55 void soft_derive_enforce_flags(soft_object_t *, soft_object_t *); 58 soft_object_t **, soft_session_t *, CK_OBJECT_CLASS, CK_KEY_TYPE, 62 soft_object_t *); 64 CK_RV soft_wrapkey(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *, 65 soft_object_t *, CK_BYTE_PTR, CK_ULONG_PTR); 67 CK_RV soft_unwrapkey(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *,
|
H A D | softObject.h | 334 } soft_object_t; typedef 337 soft_object_t **objs_found; 775 CK_RV handle2object(CK_OBJECT_HANDLE hObject, soft_object_t **object_p, 778 CK_ULONG set_objecthandle(soft_object_t *obj); 780 void soft_cleanup_object(soft_object_t *objp); 785 void soft_delete_object(soft_session_t *sp, soft_object_t *objp, 788 void soft_cleanup_extra_attr(soft_object_t *object_p); 791 soft_object_t *object_p); 793 void soft_cleanup_object_bigint_attrs(soft_object_t *object_p); 796 CK_ULONG ulAttrNum, soft_object_t *new_object); [all …]
|
H A D | softRSA.h | 42 soft_object_t *key; 51 CK_RV soft_rsa_encrypt(soft_object_t *, CK_BYTE_PTR, uint32_t, CK_BYTE_PTR, 54 CK_RV soft_rsa_decrypt(soft_object_t *, CK_BYTE_PTR, uint32_t, CK_BYTE_PTR); 57 soft_object_t *, boolean_t); 66 soft_object_t *, boolean_t); 80 CK_RV soft_rsa_genkey_pair(soft_object_t *, soft_object_t *);
|
H A D | softOps.h | 51 CK_RV soft_digest_key(soft_session_t *, soft_object_t *); 53 CK_RV soft_encrypt_init(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *); 64 soft_object_t *); 66 CK_RV soft_decrypt_init(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *); 76 CK_RV soft_sign_init(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *); 85 CK_RV soft_verify_init(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *); 95 soft_object_t *); 101 soft_object_t *);
|
H A D | softDH.h | 43 CK_RV soft_dh_genkey_pair(soft_object_t *, soft_object_t *); 44 CK_RV soft_dh_key_derive(soft_object_t *, soft_object_t *, void *, size_t);
|
H A D | softCrypt.h | 87 soft_object_t *, boolean_t); 100 soft_object_t *, boolean_t); 109 soft_object_t *, boolean_t); 115 soft_object_t *, boolean_t); 141 soft_object_t *, boolean_t); 150 soft_object_t *, boolean_t);
|
H A D | softDSA.h | 43 soft_object_t *key; 54 soft_object_t *, boolean_t); 62 CK_RV soft_dsa_genkey_pair(soft_object_t *, soft_object_t *);
|
H A D | softSSL.h | 39 soft_object_t *, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR); 41 soft_object_t *, CK_ATTRIBUTE_PTR, CK_ULONG); 42 CK_RV derive_tls_prf(CK_TLS_PRF_PARAMS_PTR, soft_object_t *);
|
H A D | softDSA.c | 47 CK_MECHANISM_PTR pMechanism, soft_object_t *key_p, in soft_dsa_sign_verify_init_common() 53 soft_object_t *tmp_key = NULL; in soft_dsa_sign_verify_init_common() 117 local_dsa_sign(soft_object_t *key, CK_BYTE_PTR in, CK_ULONG inlen, in local_dsa_sign() 168 local_dsa_verify(soft_object_t *key, CK_BYTE_PTR data, CK_BYTE_PTR sig) in local_dsa_verify() 228 soft_object_t *key = dsa_ctx->key; in soft_dsa_digest_sign_common() 282 soft_object_t *key = dsa_ctx->key; in soft_dsa_sign() 331 soft_object_t *key = dsa_ctx->key; in soft_dsa_verify() 373 soft_object_t *key = dsa_ctx->key; in soft_dsa_digest_verify_common() 405 soft_genDSAkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type, in soft_genDSAkey_set_attribute() 464 soft_dsa_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_dsa_genkey_pair()
|
H A D | softKeystore.h | 92 CK_RV soft_gen_crypt_key(uchar_t *pPIN, soft_object_t **key, 95 CK_RV soft_gen_hmac_key(uchar_t *pPIN, soft_object_t **key, CK_BYTE **saltdata); 123 CK_RV soft_keystore_crypt(soft_object_t *key_p, uchar_t *ivec, 127 CK_RV soft_keystore_hmac(soft_object_t *key_p, boolean_t sign,
|
H A D | softDH.c | 46 soft_genDHkey_set_attribute(soft_object_t *key, CK_ATTRIBUTE_TYPE type, in soft_genDHkey_set_attribute() 88 soft_dh_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_dh_genkey_pair() 201 soft_dh_key_derive(soft_object_t *basekey, soft_object_t *secretkey, in soft_dh_key_derive()
|
H A D | softKeysUtil.c | 58 soft_pkcs12_pbe(soft_session_t *, CK_MECHANISM_PTR, soft_object_t *); 65 soft_object_t **objp, soft_session_t *sp, in soft_gen_keyobject() 70 soft_object_t *new_objp = NULL; in soft_gen_keyobject() 72 new_objp = calloc(1, sizeof (soft_object_t)); in soft_gen_keyobject() 157 soft_object_t *secret_key; in soft_genkey() 420 soft_object_t *public_key, *private_key; in soft_genkey_pair() 543 soft_key_derive_check_length(soft_object_t *secret_key, CK_ULONG max_keylen) in soft_key_derive_check_length() 606 CK_MECHANISM_PTR pMechanism, soft_object_t *derived_key) in soft_pkcs12_pbe() 828 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, in soft_derivekey() 833 soft_object_t *secret_key; in soft_derivekey() [all …]
|
H A D | softEC.c | 88 check_key(soft_object_t *key_p, boolean_t sign) in check_key() 129 soft_genECkey_set_attribute(soft_object_t *key, biginteger_t *bi, in soft_genECkey_set_attribute() 147 soft_ec_genkey_pair(soft_object_t *pubkey, soft_object_t *prikey) in soft_ec_genkey_pair() 213 soft_ec_key_derive(soft_object_t *basekey, soft_object_t *secretkey, in soft_ec_key_derive() 331 CK_MECHANISM_PTR pMechanism, soft_object_t *key_p, in soft_ecc_sign_verify_init_common() 338 soft_object_t *tmp_key = NULL; in soft_ecc_sign_verify_init_common() 470 soft_object_t *key = ecc_ctx->key; in soft_ecc_sign() 535 soft_object_t *key = ecc_ctx->key; in soft_ecc_verify()
|
H A D | softRSA.c | 42 soft_rsa_encrypt(soft_object_t *key, CK_BYTE_PTR in, uint32_t in_len, in soft_rsa_encrypt() 88 soft_rsa_decrypt(soft_object_t *key, CK_BYTE_PTR in, uint32_t in_len, in soft_rsa_decrypt() 190 CK_MECHANISM_PTR pMechanism, soft_object_t *key_p, in soft_rsa_crypt_init_common() 195 soft_object_t *tmp_key = NULL; in soft_rsa_crypt_init_common() 246 soft_object_t *key = rsa_ctx->key; in soft_rsa_encrypt_common() 336 soft_object_t *key = rsa_ctx->key; in soft_rsa_decrypt_common() 416 CK_MECHANISM_PTR pMechanism, soft_object_t *key_p, in soft_rsa_sign_verify_init_common() 422 soft_object_t *tmp_key = NULL; in soft_rsa_sign_verify_init_common() 530 soft_object_t *key = rsa_ctx->key; in soft_rsa_sign_common() 647 soft_object_t *key = rsa_ctx->key; in soft_rsa_verify_common() [all …]
|
H A D | softASN1.h | 42 CK_RV soft_object_to_asn1(soft_object_t *, uchar_t *, ulong_t *); 44 CK_RV soft_asn1_to_object(soft_object_t *, uchar_t *, ulong_t);
|
H A D | softSSL.c | 96 CK_OBJECT_HANDLE_PTR, soft_session_t *, soft_object_t *); 97 static void soft_delete_derived_key(soft_session_t *, soft_object_t *); 380 derive_tls_prf(CK_TLS_PRF_PARAMS_PTR param, soft_object_t *basekey_p) in derive_tls_prf() 424 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, in soft_ssl_master_key_derive() 619 soft_object_t *basekey_p, CK_ATTRIBUTE_PTR pTemplate, in soft_ssl_key_and_mac_derive() 943 (soft_object_t *)(kmo->hClientMacSecret)); in soft_ssl_key_and_mac_derive() 948 (soft_object_t *)(kmo->hServerMacSecret)); in soft_ssl_key_and_mac_derive() 953 (soft_object_t *)(kmo->hClientKey)); in soft_ssl_key_and_mac_derive() 958 (soft_object_t *)(kmo->hServerKey)); in soft_ssl_key_and_mac_derive() 976 CK_OBJECT_HANDLE_PTR phKey, soft_session_t *sp, soft_object_t *basekey_p) in soft_add_derived_key() [all …]
|
H A D | softKeys.c | 123 soft_object_t *wrappingkey_p; in C_WrapKey() 124 soft_object_t *hkey_p; in C_WrapKey() 225 soft_object_t *unwrappingkey_p; in C_UnwrapKey() 325 soft_object_t *basekey_p; in C_DeriveKey()
|
H A D | softObject.c | 87 soft_object_t *old_object, *new_object = NULL; in C_CopyObject() 213 soft_object_t *object_p; in C_DestroyObject() 328 soft_object_t *object_p; in C_GetAttributeValue() 408 soft_object_t *object_p; in C_SetAttributeValue() 409 soft_object_t *new_object = NULL; in C_SetAttributeValue()
|
H A D | softMAC.h | 125 soft_object_t *, boolean_t); 127 CK_RV mac_init_ctx(soft_session_t *session_p, soft_object_t *,
|
H A D | softGeneral.c | 456 avl_create(&soft_object_tree, object_compare, sizeof (soft_object_t), in softtoken_init() 457 offsetof(soft_object_t, node)); in softtoken_init() 614 const soft_object_t *l = a; in object_compare() 615 const soft_object_t *r = b; in object_compare()
|
H A D | softAttributeUtil.c | 372 soft_cleanup_cert_object(soft_object_t *object_p) in soft_cleanup_cert_object() 412 soft_cleanup_extra_attr(soft_object_t *object_p) in soft_cleanup_extra_attr() 446 soft_add_extra_attr(CK_ATTRIBUTE_PTR template, soft_object_t *object_p) in soft_add_extra_attr() 537 soft_copy_extra_attr(CK_ATTRIBUTE_INFO_PTR old_attrp, soft_object_t *object_p) in soft_copy_extra_attr() 585 get_extra_attr_from_object(soft_object_t *object_p, CK_ATTRIBUTE_PTR template) in get_extra_attr_from_object() 643 set_extra_attr_to_object(soft_object_t *object_p, CK_ATTRIBUTE_TYPE type, in set_extra_attr_to_object() 769 get_bool_attr_from_object(soft_object_t *object_p, CK_ULONG bool_flag, in get_bool_attr_from_object() 805 set_bool_attr_to_object(soft_object_t *object_p, CK_ULONG bool_flag, in set_bool_attr_to_object() 1015 soft_cleanup_object_bigint_attrs(soft_object_t *object_p) in soft_cleanup_object_bigint_attrs() 1274 soft_object_t *new_object, CK_ULONG mode, CK_KEY_TYPE key_type) [all …]
|
H A D | softKeystore.c | 349 soft_keystore_pack_obj(soft_object_t *obj, uchar_t **ks_buf, size_t *len) in soft_keystore_pack_obj() 441 soft_keystore_unpack_obj(soft_object_t *obj, ks_obj_t *ks_obj) in soft_keystore_unpack_obj() 578 soft_pack_object_size(soft_object_t *objp) in soft_pack_object_size() 776 soft_pack_object(soft_object_t *objp, uchar_t *buf) in soft_pack_object() 1338 soft_unpack_object(soft_object_t *objp, uchar_t *buf) in soft_unpack_object() 1865 soft_put_object_to_keystore(soft_object_t *objp) in soft_put_object_to_keystore() 1893 soft_modify_object_to_keystore(soft_object_t *objp) in soft_modify_object_to_keystore() 1923 soft_object_t *new_objp = NULL; in soft_get_token_objects_from_keystore() 1933 new_objp = calloc(1, sizeof (soft_object_t)); in soft_get_token_objects_from_keystore() 1994 soft_gen_crypt_key(uchar_t *pPIN, soft_object_t **key, CK_BYTE **saltdata) in soft_gen_crypt_key() [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSoftCommon.c | 107 soft_object_t keyobj; in do_soft_hmac_init() 109 soft_object_t *key_p; in do_soft_hmac_init() 128 bzero(key_p, sizeof (soft_object_t)); in do_soft_hmac_init()
|