Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_crypt.c86 CK_OBJECT_HANDLE hKey; in smb_auth_hmac_md5() local
99 key, key_len, &hKey); in smb_auth_hmac_md5()
108 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
114 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
120 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
124 (void) C_DestroyObject(hSession, hKey); in smb_auth_hmac_md5()
139 CK_OBJECT_HANDLE hKey; in smb_auth_DES() local
182 des_key, 8, &hKey); in smb_auth_DES()
210 (void) C_DestroyObject(hSession, hKey); in smb_auth_DES()
251 CK_OBJECT_HANDLE hKey; in smb_auth_RC4() local
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dcrypt.c63 CK_OBJECT_HANDLE hKey; in smb_encrypt_DES() local
106 des_key, 8, &hKey); in smb_encrypt_DES()
112 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_encrypt_DES()
129 (void) C_DestroyObject(hSession, hKey); in smb_encrypt_DES()
134 (void) C_DestroyObject(hSession, hKey); in smb_encrypt_DES()
173 CK_OBJECT_HANDLE hKey; in smb_encrypt_RC4() local
192 Key, KeyLen, &hKey); in smb_encrypt_RC4()
197 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_encrypt_RC4()
209 (void) C_DestroyObject(hSession, hKey); in smb_encrypt_RC4()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c24 CK_OBJECT_HANDLE *hKey) in setup_arcfour_crypto() argument
58 hKey)) != CKR_OK) { in setup_arcfour_crypto()
81 CK_OBJECT_HANDLE *kptr = NULL, hKey = CK_INVALID_HANDLE; in k5_arcfour_decrypt() local
116 kptr = (CK_OBJECT_HANDLE *)&hKey; in k5_arcfour_decrypt()
174 if (hKey != CK_INVALID_HANDLE) in k5_arcfour_decrypt()
175 (void)C_DestroyObject(session, hKey); in k5_arcfour_decrypt()
199 CK_OBJECT_HANDLE *kptr = NULL, hKey = CK_INVALID_HANDLE; in k5_arcfour_encrypt() local
220 kptr = (CK_OBJECT_HANDLE *)&hKey; in k5_arcfour_encrypt()
280 if (hKey != CK_INVALID_HANDLE) in k5_arcfour_encrypt()
281 (void)C_DestroyObject(session, hKey); in k5_arcfour_encrypt()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dadmin_cmds.c274 print_key_info(TSS_HCONTEXT hContext, TSS_HOBJECT hKey) in print_key_info() argument
282 ret = Tspi_GetAttribUint32(hKey, TSS_TSPATTRIB_KEY_INFO, in print_key_info()
290 ret = Tspi_GetAttribUint32(hKey, TSS_TSPATTRIB_KEY_INFO, in print_key_info()
334 ret = Tspi_GetAttribData(hKey, TSS_TSPATTRIB_KEY_BLOB, in print_key_info()
425 TSS_HKEY hKey; in cmd_keyinfo() local
464 uuid.tss_uuid, &hKey); in cmd_keyinfo()
467 TSS_PS_TYPE_SYSTEM, uuid.tss_uuid, &hKey); in cmd_keyinfo()
473 print_key_info(hContext, hKey); in cmd_keyinfo()
488 TSS_HOBJECT hKey; in cmd_deletekey() local
502 uuid.tss_uuid, &hKey); in cmd_deletekey()
[all …]
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Sign.c42 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
55 return (fast_funcs->C_SignInit(hSession, pMechanism, hKey)); in C_SignInit()
78 pMechanism, hKey); in C_SignInit()
220 CK_OBJECT_HANDLE hKey) in C_SignRecoverInit() argument
233 hKey)); in C_SignRecoverInit()
256 pMechanism, hKey); in C_SignRecoverInit()
H A Dpkcs11Verify.c42 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
54 return (fast_funcs->C_VerifyInit(hSession, pMechanism, hKey)); in C_VerifyInit()
77 pMechanism, hKey); in C_VerifyInit()
218 CK_OBJECT_HANDLE hKey) in C_VerifyRecoverInit() argument
231 hKey)); in C_VerifyRecoverInit()
254 pMechanism, hKey); in C_VerifyRecoverInit()
H A Dpkcs11Crypt.c44 CK_OBJECT_HANDLE hKey) in C_EncryptInit() argument
56 return (fast_funcs->C_EncryptInit(hSession, pMechanism, hKey)); in C_EncryptInit()
79 pMechanism, hKey); in C_EncryptInit()
227 CK_OBJECT_HANDLE hKey) in C_DecryptInit() argument
239 return (fast_funcs->C_DecryptInit(hSession, pMechanism, hKey)); in C_DecryptInit()
262 pMechanism, hKey); in C_DecryptInit()
H A DmetaSign.c40 CK_OBJECT_HANDLE hKey) in meta_SignInit() argument
53 rv = meta_handle2object(hKey, &key); in meta_SignInit()
164 CK_OBJECT_HANDLE hKey) in meta_SignRecoverInit() argument
177 rv = meta_handle2object(hKey, &key); in meta_SignRecoverInit()
H A DmetaVerify.c40 CK_OBJECT_HANDLE hKey) in meta_VerifyInit() argument
53 rv = meta_handle2object(hKey, &key); in meta_VerifyInit()
169 CK_OBJECT_HANDLE hKey) in meta_VerifyRecoverInit() argument
182 rv = meta_handle2object(hKey, &key); in meta_VerifyRecoverInit()
H A DmetaCrypt.c41 CK_OBJECT_HANDLE hKey) in meta_EncryptInit() argument
54 rv = meta_handle2object(hKey, &key); in meta_EncryptInit()
178 CK_OBJECT_HANDLE hKey) in meta_DecryptInit() argument
191 rv = meta_handle2object(hKey, &key); in meta_DecryptInit()
H A Dpkcs11Digest.c174 C_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in C_DigestKey() argument
181 return (fast_funcs->C_DigestKey(hSession, hKey)); in C_DigestKey()
196 rv = FUNCLIST(sessp->se_slotid)->C_DigestKey(sessp->se_handle, hKey); in C_DigestKey()
H A Dpkcs11Keys.c157 CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey, in C_WrapKey() argument
171 hWrappingKey, hKey, pWrappedKey, in C_WrapKey()
195 pMechanism, hWrappingKey, hKey, pWrappedKey, pulWrappedKeyLen); in C_WrapKey()
H A DmetaDigest.c127 meta_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in meta_DigestKey() argument
137 rv = meta_handle2object(hKey, &key); in meta_DigestKey()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c1050 BYTE *hash, TSS_HKEY *hKey) in tss_find_and_load_key() argument
1060 TSS_PS_TYPE_USER, *uuid, hKey); in tss_find_and_load_key()
2133 TSS_HKEY hKey = NULL_HKEY; in token_specific_rsa_generate_keypair() local
2196 hParentKey, &hKey))) { in token_specific_rsa_generate_keypair()
2407 TSS_HKEY hKey, in tpm_decrypt_data() argument
2491 TSS_HKEY hKey; in token_specific_rsa_decrypt() local
2514 TSS_HKEY hKey; in token_specific_rsa_verify() local
2567 TSS_HKEY hKey; in token_specific_rsa_sign() local
2612 TSS_HKEY hKey, in tpm_encrypt_data() argument
2729 TSS_HKEY hKey; in token_specific_rsa_encrypt() local
[all …]
H A Dapi_interface.c638 CK_OBJECT_HANDLE hKey) in C_DecryptInit() argument
878 CK_OBJECT_HANDLE hKey) in C_DigestKey() argument
890 rv = FuncList.ST_DigestKey(rSession, hKey); in C_DigestKey()
971 CK_OBJECT_HANDLE hKey) in C_EncryptInit() argument
1994 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
2009 rv = FuncList.ST_SignInit(rSession, pMechanism, hKey); in C_SignInit()
2044 CK_OBJECT_HANDLE hKey) in C_SignRecoverInit() argument
2175 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
2226 CK_OBJECT_HANDLE hKey) in C_VerifyRecoverInit() argument
2286 CK_OBJECT_HANDLE hKey, in C_WrapKey() argument
[all …]
H A Dnew_host.c1183 CK_OBJECT_HANDLE hKey) in SC_EncryptInit() argument
1219 pMechanism, hKey); in SC_EncryptInit()
1366 CK_OBJECT_HANDLE hKey) in SC_DecryptInit() argument
1401 OP_DECRYPT_INIT, pMechanism, hKey); in SC_DecryptInit()
1587 CK_OBJECT_HANDLE hKey) in SC_DigestKey() argument
1665 CK_OBJECT_HANDLE hKey) in SC_SignInit() argument
1837 CK_OBJECT_HANDLE hKey) in SC_SignRecoverInit() argument
1925 CK_OBJECT_HANDLE hKey) in SC_VerifyInit() argument
2085 CK_OBJECT_HANDLE hKey) in SC_VerifyRecoverInit() argument
2221 CK_OBJECT_HANDLE hKey, in SC_WrapKey() argument
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Dpbkdf2.c62 CK_OBJECT_HANDLE hKey; in krb5int_pbkdf2_hmac_sha1() local
115 attrs, &hKey); in krb5int_pbkdf2_hmac_sha1()
124 rv = C_GetAttributeValue(krb_ctx_hSession(context), hKey, in krb5int_pbkdf2_hmac_sha1()
128 (void) C_DestroyObject(krb_ctx_hSession(context), hKey); in krb5int_pbkdf2_hmac_sha1()
/illumos-gate/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h388 CK_OBJECT_HANDLE hKey /* handle of encryption key */
440 CK_OBJECT_HANDLE hKey /* handle of decryption key */
533 CK_OBJECT_HANDLE hKey /* secret key to digest */
564 CK_OBJECT_HANDLE hKey /* handle of signature key */
620 CK_OBJECT_HANDLE hKey /* handle of the signature key */
652 CK_OBJECT_HANDLE hKey /* verification key */
708 CK_OBJECT_HANDLE hKey /* verification key */
834 CK_OBJECT_HANDLE hKey, /* key to be wrapped */
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/des/
H A Dafsstring2key.c161 if (usekey.hKey != CK_INVALID_HANDLE) { in mit_afs_string_to_key()
162 (void) C_DestroyObject(krb_ctx_hSession(context), usekey.hKey); in mit_afs_string_to_key()
163 usekey.hKey = CK_INVALID_HANDLE; in mit_afs_string_to_key()
174 if (usekey.hKey != CK_INVALID_HANDLE) { in mit_afs_string_to_key()
175 (void) C_DestroyObject(krb_ctx_hSession(context), usekey.hKey); in mit_afs_string_to_key()
176 usekey.hKey = CK_INVALID_HANDLE; in mit_afs_string_to_key()
H A Dstring2key.c175 if (keyblock->hKey != CK_INVALID_HANDLE) { in mit_des_string_to_key_int()
176 (void)C_DestroyObject(krb_ctx_hSession(context), keyblock->hKey); in mit_des_string_to_key_int()
177 keyblock->hKey = CK_INVALID_HANDLE; in mit_des_string_to_key_int()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/os/
H A Dinit_os_ctx.c124 HKEY hKey = 0; in get_from_registry() local
142 &hKey)) != ERROR_SUCCESS) in get_from_registry()
147 rc = RegQueryValueEx(hKey, value_name, 0, 0, 0, &size); in get_from_registry()
159 if ((rc = RegQueryValueEx(hKey, value_name, 0, 0, *pbuffer, &size)) != in get_from_registry()
171 if (hKey) in get_from_registry()
172 RegCloseKey(hKey); in get_from_registry()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftVerify.c36 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
58 HANDLE2OBJECT(hKey, key_p, rv); in C_VerifyInit()
264 CK_OBJECT_HANDLE hKey) in C_VerifyRecoverInit() argument
286 HANDLE2OBJECT(hKey, key_p, rv); in C_VerifyRecoverInit()
H A DsoftSign.c36 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
58 HANDLE2OBJECT(hKey, key_p, rv); in C_SignInit()
293 CK_OBJECT_HANDLE hKey) in C_SignRecoverInit() argument
315 HANDLE2OBJECT(hKey, key_p, rv); in C_SignRecoverInit()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/
H A Dd3_cbc.c69 rv = C_EncryptInit(krb_ctx_hSession(context), &mechanism, key->hKey); in mit_des3_cbc_encrypt()
71 rv = C_DecryptInit(krb_ctx_hSession(context), &mechanism, key->hKey); in mit_des3_cbc_encrypt()
H A Df_cbc.c72 rv = C_EncryptInit(krb_ctx_hSession(context), &mechanism, key->hKey);
74 rv = C_DecryptInit(krb_ctx_hSession(context), &mechanism, key->hKey);

123