Home
last modified time | relevance | path

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

123

/titanic_41/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()
106 rv = C_SignInit(hSession, &mechanism, 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()
188 rv = C_EncryptInit(hSession, &mechanism, hKey); in smb_auth_DES()
[all …]
/titanic_41/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()
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c25 CK_OBJECT_HANDLE *hKey) in setup_arcfour_crypto() argument
59 hKey)) != CKR_OK) { in setup_arcfour_crypto()
82 CK_OBJECT_HANDLE *kptr = NULL, hKey = CK_INVALID_HANDLE; in k5_arcfour_decrypt() local
117 kptr = (CK_OBJECT_HANDLE *)&hKey; in k5_arcfour_decrypt()
175 if (hKey != CK_INVALID_HANDLE) in k5_arcfour_decrypt()
176 (void)C_DestroyObject(session, hKey); in k5_arcfour_decrypt()
200 CK_OBJECT_HANDLE *kptr = NULL, hKey = CK_INVALID_HANDLE; in k5_arcfour_encrypt() local
221 kptr = (CK_OBJECT_HANDLE *)&hKey; in k5_arcfour_encrypt()
281 if (hKey != CK_INVALID_HANDLE) in k5_arcfour_encrypt()
282 (void)C_DestroyObject(session, hKey); in k5_arcfour_encrypt()
[all …]
/titanic_41/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Sign.c44 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
57 return (fast_funcs->C_SignInit(hSession, pMechanism, hKey)); in C_SignInit()
80 pMechanism, hKey); in C_SignInit()
222 CK_OBJECT_HANDLE hKey) in C_SignRecoverInit() argument
235 hKey)); in C_SignRecoverInit()
258 pMechanism, hKey); in C_SignRecoverInit()
H A Dpkcs11Verify.c44 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
56 return (fast_funcs->C_VerifyInit(hSession, pMechanism, hKey)); in C_VerifyInit()
79 pMechanism, hKey); in C_VerifyInit()
220 CK_OBJECT_HANDLE hKey) in C_VerifyRecoverInit() argument
233 hKey)); in C_VerifyRecoverInit()
256 pMechanism, hKey); in C_VerifyRecoverInit()
H A Dpkcs11Crypt.c46 CK_OBJECT_HANDLE hKey) in C_EncryptInit() argument
58 return (fast_funcs->C_EncryptInit(hSession, pMechanism, hKey)); in C_EncryptInit()
81 pMechanism, hKey); in C_EncryptInit()
229 CK_OBJECT_HANDLE hKey) in C_DecryptInit() argument
241 return (fast_funcs->C_DecryptInit(hSession, pMechanism, hKey)); in C_DecryptInit()
264 pMechanism, hKey); in C_DecryptInit()
H A DmetaSign.c42 CK_OBJECT_HANDLE hKey) in meta_SignInit() argument
55 rv = meta_handle2object(hKey, &key); in meta_SignInit()
166 CK_OBJECT_HANDLE hKey) in meta_SignRecoverInit() argument
179 rv = meta_handle2object(hKey, &key); in meta_SignRecoverInit()
H A DmetaVerify.c42 CK_OBJECT_HANDLE hKey) in meta_VerifyInit() argument
55 rv = meta_handle2object(hKey, &key); in meta_VerifyInit()
171 CK_OBJECT_HANDLE hKey) in meta_VerifyRecoverInit() argument
184 rv = meta_handle2object(hKey, &key); in meta_VerifyRecoverInit()
H A DmetaCrypt.c42 CK_OBJECT_HANDLE hKey) in meta_EncryptInit() argument
55 rv = meta_handle2object(hKey, &key); in meta_EncryptInit()
168 CK_OBJECT_HANDLE hKey) in meta_DecryptInit() argument
181 rv = meta_handle2object(hKey, &key); in meta_DecryptInit()
H A Dpkcs11Digest.c176 C_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in C_DigestKey() argument
183 return (fast_funcs->C_DigestKey(hSession, hKey)); in C_DigestKey()
198 rv = FUNCLIST(sessp->se_slotid)->C_DigestKey(sessp->se_handle, hKey); in C_DigestKey()
H A Dpkcs11Keys.c159 CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey, in C_WrapKey() argument
173 hWrappingKey, hKey, pWrappedKey, in C_WrapKey()
197 pMechanism, hWrappingKey, hKey, pWrappedKey, pulWrappedKeyLen); in C_WrapKey()
H A DmetaDigest.c128 meta_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey) in meta_DigestKey() argument
138 rv = meta_handle2object(hKey, &key); in meta_DigestKey()
H A DmetaGlobal.h751 CK_OBJECT_HANDLE hKey);
761 CK_OBJECT_HANDLE hKey);
775 CK_RV meta_DigestKey(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey);
779 CK_OBJECT_HANDLE hKey);
788 CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey);
792 CK_OBJECT_HANDLE hKey);
800 CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey);
823 CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey,
/titanic_41/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()
298 ret = Tspi_GetAttribUint32(hKey, TSS_TSPATTRIB_KEY_INFO, in print_key_info()
307 ret = Tspi_GetAttribUint32(hKey, TSS_TSPATTRIB_KEY_INFO, in print_key_info()
316 ret = Tspi_GetAttribUint32(hKey, TSS_TSPATTRIB_KEY_INFO, in print_key_info()
325 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()
[all …]
/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c488 set_public_modulus(TSS_HCONTEXT hContext, TSS_HKEY hKey, in set_public_modulus() argument
498 result = Tspi_GetAttribData(hKey, TSS_TSPATTRIB_KEY_BLOB, in set_public_modulus()
527 result = Tspi_SetAttribData(hKey, TSS_TSPATTRIB_KEY_BLOB, in set_public_modulus()
927 TSS_HKEY hKey, CK_CHAR *passHash) in tss_assign_secret_key_policy() argument
938 if ((result = Tspi_Policy_AssignToObject(hPolicy, hKey))) { in tss_assign_secret_key_policy()
1046 BYTE *hash, TSS_HKEY *hKey) in tss_find_and_load_key() argument
1056 TSS_PS_TYPE_USER, *uuid, hKey); in tss_find_and_load_key()
1065 TSS_POLICY_USAGE, *hKey, (CK_BYTE *)hash); in tss_find_and_load_key()
1070 result = Tspi_Key_LoadKey(*hKey, hParent); in tss_find_and_load_key()
1101 set_legacy_key_params(TSS_HKEY hKey) in set_legacy_key_params() argument
[all …]
H A Dapi_interface.c638 CK_OBJECT_HANDLE hKey) in C_DecryptInit() argument
653 rv = FuncList.ST_DecryptInit(rSession, pMechanism, hKey); in C_DecryptInit()
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
986 rv = FuncList.ST_EncryptInit(rSession, pMechanism, hKey); in C_EncryptInit()
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
2059 rv = FuncList.ST_SignRecoverInit(rSession, pMechanism, hKey); in C_SignRecoverInit()
[all …]
/titanic_41/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()
/titanic_41/usr/src/lib/pkcs11/include/
H A Dpkcs11f.h378 CK_OBJECT_HANDLE hKey /* handle of encryption key */
428 CK_OBJECT_HANDLE hKey /* handle of decryption key */
517 CK_OBJECT_HANDLE hKey /* secret key to digest */
546 CK_OBJECT_HANDLE hKey /* handle of signature key */
598 CK_OBJECT_HANDLE hKey /* handle of the signature key */
628 CK_OBJECT_HANDLE hKey /* verification key */
680 CK_OBJECT_HANDLE hKey /* verification key */
811 CK_OBJECT_HANDLE hKey, /* key to be wrapped */
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
/titanic_41/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