Home
last modified time | relevance | path

Searched refs:KMF_KEY_HANDLE (Results 1 – 25 of 25) sorted by relevance

/titanic_41/usr/src/cmd/cmd-crypto/pktool/
H A Dgenkeypair.c51 KMF_KEY_HANDLE *outPriKey, KMF_KEY_HANDLE *outPubKey) in genkeypair_pkcs11()
54 KMF_KEY_HANDLE pubk, prik; in genkeypair_pkcs11()
100 sizeof (KMF_KEY_HANDLE)); in genkeypair_pkcs11()
105 sizeof (KMF_KEY_HANDLE)); in genkeypair_pkcs11()
135 KMF_KEY_HANDLE *outPriKey, KMF_KEY_HANDLE *outPubKey) in genkeypair_file()
138 KMF_KEY_HANDLE pubk, prik; in genkeypair_file()
196 sizeof (KMF_KEY_HANDLE)); in genkeypair_file()
201 sizeof (KMF_KEY_HANDLE)); in genkeypair_file()
230 KMF_KEY_HANDLE *outPriKey, KMF_KEY_HANDLE *outPubKey) in genkeypair_nss()
233 KMF_KEY_HANDLE pubk, prik; in genkeypair_nss()
[all …]
H A Dcommon.h133 KMF_KEY_HANDLE *, KMF_KEY_HANDLE *);
137 char *, KMF_KEY_HANDLE *, KMF_KEY_HANDLE *);
142 KMF_OID *, KMF_KEY_HANDLE *, KMF_KEY_HANDLE *);
H A Dgenkey.c43 KMF_KEY_HANDLE key; in genkey_nss()
60 (void) memset(&key, 0, sizeof (KMF_KEY_HANDLE)); in genkey_nss()
70 KMF_KEY_HANDLE_ATTR, &key, sizeof (KMF_KEY_HANDLE)); in genkey_nss()
114 KMF_KEY_HANDLE key; in genkey_pkcs11()
164 (void) memset(&key, 0, sizeof (KMF_KEY_HANDLE)); in genkey_pkcs11()
174 KMF_KEY_HANDLE_ATTR, &key, sizeof (KMF_KEY_HANDLE)); in genkey_pkcs11()
259 KMF_KEY_HANDLE key; in genkey_file()
283 (void) memset(&key, 0, sizeof (KMF_KEY_HANDLE)); in genkey_file()
295 KMF_KEY_HANDLE_ATTR, &key, sizeof (KMF_KEY_HANDLE)); in genkey_file()
H A Dgencsr.c56 KMF_KEY_HANDLE pubk, prik; in gencsr_pkcs11()
127 &pubk, sizeof (KMF_KEY_HANDLE)); in gencsr_pkcs11()
149 KMF_KEY_HANDLE_ATTR, &prik, sizeof (KMF_KEY_HANDLE)); in gencsr_pkcs11()
177 KMF_KEY_HANDLE pubk, prik; in gencsr_file()
272 KMF_KEY_HANDLE pubk, prik; in gencsr_nss()
344 &pubk, sizeof (KMF_KEY_HANDLE)); in gencsr_nss()
H A Ddelete.c46 KMF_KEY_HANDLE *keys = NULL; in pk_destroy_keys()
125 KMF_KEY_HANDLE_ATTR, &keys[i], sizeof (KMF_KEY_HANDLE)); in pk_destroy_keys()
151 KMF_KEY_HANDLE *keys = NULL; in pk_delete_keys()
165 keys = (KMF_KEY_HANDLE *)malloc(numkeys * in pk_delete_keys()
166 sizeof (KMF_KEY_HANDLE)); in pk_delete_keys()
170 sizeof (KMF_KEY_HANDLE)); in pk_delete_keys()
173 KMF_KEY_HANDLE_ATTR, keys, sizeof (KMF_KEY_HANDLE)); in pk_delete_keys()
H A Dlist.c120 describeKey(KMF_KEY_HANDLE *key) in describeKey()
159 pk_show_keys(void *handle, KMF_KEY_HANDLE *keys, int numkeys) in pk_show_keys()
259 KMF_KEY_HANDLE *keys; in pk_list_keys()
277 keys = (KMF_KEY_HANDLE *)malloc(numkeys * in pk_list_keys()
278 sizeof (KMF_KEY_HANDLE)); in pk_list_keys()
282 sizeof (KMF_KEY_HANDLE)); in pk_list_keys()
286 keys, sizeof (KMF_KEY_HANDLE)); in pk_list_keys()
H A Dgencert.c56 KMF_KEY_HANDLE pubk, prik; in gencert_pkcs11()
207 KMF_KEY_HANDLE_ATTR, &pubk, sizeof (KMF_KEY_HANDLE)); in gencert_pkcs11()
227 KMF_KEY_HANDLE_ATTR, &prik, sizeof (KMF_KEY_HANDLE)); in gencert_pkcs11()
255 KMF_KEY_HANDLE pubk, prik; in gencert_file()
420 KMF_KEY_HANDLE pubk, prik; in gencert_nss()
H A Dsigncsr.c208 KMF_KEY_HANDLE *key, KMF_OID *sigoid, KMF_DATA *outdata) in pk_sign_cert()
267 KMF_KEY_HANDLE cakey; in pk_signcsr_files()
366 KMF_KEY_HANDLE casignkey; in pk_signcsr_pk11_nss()
375 (void) memset(&casignkey, 0, sizeof (KMF_KEY_HANDLE)); in pk_signcsr_pk11_nss()
H A Dimport.c620 KMF_KEY_HANDLE key; in pk_import_keys()
711 KMF_KEY_HANDLE rawkey; in pk_import_rawkey()
H A Dexport.c448 KMF_KEY_HANDLE key; in pk_export_pk11_keys()
/titanic_41/usr/src/lib/libkmf/libkmf/common/
H A Dkeyop.c50 {KMF_PRIVKEY_HANDLE_ATTR, FALSE, sizeof (KMF_KEY_HANDLE), in kmf_create_keypair()
51 sizeof (KMF_KEY_HANDLE)}, in kmf_create_keypair()
52 {KMF_PUBKEY_HANDLE_ATTR, FALSE, sizeof (KMF_KEY_HANDLE), in kmf_create_keypair()
53 sizeof (KMF_KEY_HANDLE)}, in kmf_create_keypair()
94 KMF_KEY_HANDLE *key; in kmf_delete_key_from_keystore()
99 {KMF_KEY_HANDLE_ATTR, FALSE, sizeof (KMF_KEY_HANDLE), in kmf_delete_key_from_keystore()
100 sizeof (KMF_KEY_HANDLE)}, in kmf_delete_key_from_keystore()
148 (void) memset(key, 0, sizeof (KMF_KEY_HANDLE)); in kmf_delete_key_from_keystore()
210 {KMF_KEY_HANDLE_ATTR, FALSE, sizeof (KMF_KEY_HANDLE), in kmf_create_sym_key()
211 sizeof (KMF_KEY_HANDLE)}, in kmf_create_sym_key()
[all …]
H A Dcertop.c43 sign_cert(KMF_HANDLE_T, const KMF_DATA *, KMF_KEY_HANDLE *,
111 KMF_KEY_HANDLE *key = NULL; in kmf_find_prikey_by_cert()
117 {KMF_KEY_HANDLE_ATTR, TRUE, sizeof (KMF_KEY_HANDLE), in kmf_find_prikey_by_cert()
118 sizeof (KMF_KEY_HANDLE)} in kmf_find_prikey_by_cert()
329 KMF_ATTRIBUTE **new_attrlist, int *new_num, KMF_KEY_HANDLE *key, in setup_findprikey_attrlist()
359 KMF_KEY_HANDLE_ATTR, key, sizeof (KMF_KEY_HANDLE)); in setup_findprikey_attrlist()
364 KMF_KEY_HANDLE_ATTR, key, sizeof (KMF_KEY_HANDLE)); in setup_findprikey_attrlist()
390 get_default_signoid(KMF_KEY_HANDLE *key) in get_default_signoid()
517 KMF_KEY_HANDLE sign_key, *sign_key_ptr; in kmf_sign_cert()
667 KMF_KEY_HANDLE sign_key, *sign_key_ptr; in kmf_sign_data()
[all …]
H A Dcsrcrlop.c67 KMF_KEY_HANDLE *KMFKey, in kmf_set_csr_pubkey()
363 KMF_KEY_HANDLE *Signkey, in sign_csr()
401 KMF_KEY_HANDLE_ATTR, Signkey, sizeof (KMF_KEY_HANDLE)); in sign_csr()
499 KMF_KEY_HANDLE *Signkey, in kmf_sign_csr()
H A Dgeneralop.c1282 kmf_free_kmf_key(KMF_HANDLE_T handle, KMF_KEY_HANDLE *key) in kmf_free_kmf_key()
1298 KMF_KEY_HANDLE_ATTR, key, sizeof (KMF_KEY_HANDLE)); in kmf_free_kmf_key()
1318 (void) memset(key, 0, sizeof (KMF_KEY_HANDLE)); in kmf_free_kmf_key()
H A Dcertgetsetop.c1756 KMF_KEY_HANDLE *KMFKey, in kmf_set_cert_pubkey()
/titanic_41/usr/src/lib/libkmf/include/
H A Dkmfapi.h60 extern KMF_RETURN kmf_get_sym_key_value(KMF_HANDLE_T, KMF_KEY_HANDLE *,
119 KMF_KEY_HANDLE *, KMF_CSR_DATA *);
130 KMF_KEY_HANDLE *, KMF_DATA *);
201 extern KMF_RETURN kmf_set_cert_pubkey(KMF_HANDLE_T, KMF_KEY_HANDLE *,
244 int, KMF_KEY_HANDLE *, KMF_CREDENTIAL *, char *);
315 extern void kmf_free_kmf_key(KMF_HANDLE_T, KMF_KEY_HANDLE *);
H A DkmfapiP.h82 KMF_KEY_HANDLE *,
87 KMF_KEY_HANDLE *,
120 KMF_KEY_HANDLE *,
137 KMF_KEY_HANDLE *,
H A Dkmftypes.h230 } KMF_KEY_HANDLE; typedef
/titanic_41/usr/src/lib/libelfsign/common/
H A Dlibelfsign.h64 KMF_KEY_HANDLE c_privatekey;
93 KMF_KEY_HANDLE es_privatekey;
H A Delfcertlib.c341 KMF_KEY_HANDLE keybuf[2]; in elfcertlib_loadprivatekey()
360 keybuf, sizeof (KMF_KEY_HANDLE)); in elfcertlib_loadprivatekey()
441 &cert->c_privatekey, sizeof (KMF_KEY_HANDLE)); in elfcertlib_loadtokenkey()
543 KMF_KEY_HANDLE_ATTR, &cert->c_privatekey, sizeof (KMF_KEY_HANDLE)); in elfcertlib_sign()
/titanic_41/usr/src/lib/libkmf/plugins/kmf_nss/common/
H A Dnss_spi.c84 NSS_EncodePubKeyData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_DATA *);
87 NSS_SignData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
115 NSS_DecryptData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
125 NSS_GetSymKeyValue(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_RAW_SYM_KEY *);
825 KMF_KEY_HANDLE *pubkey = NULL; in NSS_CreateKeypair()
826 KMF_KEY_HANDLE *privkey = NULL; in NSS_CreateKeypair()
868 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); in NSS_CreateKeypair()
869 (void) memset(privkey, 0, sizeof (KMF_KEY_HANDLE)); in NSS_CreateKeypair()
1014 NSS_SignData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *key, in NSS_SignData()
1086 NSS_EncodePubKeyData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *keyp, in NSS_EncodePubKeyData()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/
H A Dkssladm_create.c305 char *idstr, KMF_KEY_HANDLE *key, KMF_KEY_HANDLE *rawkey) in get_sensitive_key_data()
433 key, sizeof (KMF_KEY_HANDLE)); in get_sensitive_key_data()
578 KMF_KEY_HANDLE key, rawkey; in load_from_pkcs11()
602 (void) memset(&key, 0, sizeof (KMF_KEY_HANDLE)); in load_from_pkcs11()
603 (void) memset(&rawkey, 0, sizeof (KMF_KEY_HANDLE)); in load_from_pkcs11()
704 &key, sizeof (KMF_KEY_HANDLE)); in load_from_pkcs11()
/titanic_41/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c63 keyObj2RawKey(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_RAW_KEY_DATA **);
98 KMFPK11_EncodePubKeyData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_DATA *);
101 KMFPK11_SignData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
111 KMFPK11_DecryptData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
121 KMFPK11_GetSymKeyValue(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_RAW_SYM_KEY *);
771 KMFPK11_EncodePubKeyData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *pKey, in KMFPK11_EncodePubKeyData()
1659 KMF_KEY_HANDLE *pubkey, *privkey; in KMFPK11_CreateKeypair()
1704 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); in KMFPK11_CreateKeypair()
1705 (void) memset(privkey, 0, sizeof (KMF_KEY_HANDLE)); in KMFPK11_CreateKeypair()
1949 KMF_KEY_HANDLE *key; in KMFPK11_DeleteKey()
[all …]
/titanic_41/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c163 int, KMF_KEY_HANDLE *, char *);
207 OpenSSL_EncodePubKeyData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_DATA *);
210 OpenSSL_SignData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
239 OpenSSL_DecryptData(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_OID *,
258 OpenSSL_GetSymKeyValue(KMF_HANDLE_T, KMF_KEY_HANDLE *, KMF_RAW_SYM_KEY *);
1366 OpenSSL_EncodePubKeyData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *key, in OpenSSL_EncodePubKeyData()
1487 KMF_KEY_HANDLE *pubkey = NULL, *privkey = NULL; in OpenSSL_CreateKeypair()
1514 (void) memset(pubkey, 0, sizeof (KMF_KEY_HANDLE)); in OpenSSL_CreateKeypair()
1515 (void) memset(privkey, 0, sizeof (KMF_KEY_HANDLE)); in OpenSSL_CreateKeypair()
1779 OpenSSL_SignData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *key, in OpenSSL_SignData()
[all …]
/titanic_41/usr/src/cmd/cmd-crypto/elfsign/
H A Delfsign.c735 KMF_KEY_HANDLE pubk, prik; in create_csr()
814 KMF_PRIVKEY_HANDLE_ATTR, &prik, sizeof (KMF_KEY_HANDLE)); in create_csr()
816 KMF_PUBKEY_HANDLE_ATTR, &pubk, sizeof (KMF_KEY_HANDLE)); in create_csr()