Home
last modified time | relevance | path

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

123

/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/
H A Dobj_rsakey.c246 obj_rsakey_set_flags(TSS_HKEY hKey, UINT32 flags) in obj_rsakey_set_flags() argument
252 if ((obj = obj_list_get_obj(&rsakey_list, hKey)) == NULL) in obj_rsakey_set_flags()
269 obj_rsakey_set_size(TSS_HKEY hKey, UINT32 len) in obj_rsakey_set_size() argument
275 if ((obj = obj_list_get_obj(&rsakey_list, hKey)) == NULL) in obj_rsakey_set_size()
292 obj_rsakey_set_key_parms(TSS_HKEY hKey, TCPA_KEY_PARMS *parms) in obj_rsakey_set_key_parms() argument
298 if ((obj = obj_list_get_obj(&rsakey_list, hKey)) == NULL) in obj_rsakey_set_key_parms()
333 obj_rsakey_set_policy(TSS_HKEY hKey, TSS_HPOLICY hPolicy) in obj_rsakey_set_policy() argument
343 if ((obj = obj_list_get_obj(&rsakey_list, hKey)) == NULL) in obj_rsakey_set_policy()
365 obj_rsakey_set_pstype(TSS_HKEY hKey, UINT32 type) in obj_rsakey_set_pstype() argument
369 if ((obj = obj_list_get_obj(&rsakey_list, hKey)) == NULL) in obj_rsakey_set_pstype()
[all …]
H A Dtspi_key.c33 Tspi_Key_UnloadKey(TSS_HKEY hKey) /* in */ in Tspi_Key_UnloadKey() argument
39 if ((result = obj_rsakey_get_tsp_context(hKey, &tspContext))) in Tspi_Key_UnloadKey()
42 if ((result = obj_rsakey_get_tcs_handle(hKey, &hTcsKey))) in Tspi_Key_UnloadKey()
49 Tspi_Key_LoadKey(TSS_HKEY hKey, /* in */ in Tspi_Key_LoadKey() argument
69 if ((result = obj_rsakey_get_tsp_context(hKey, &tspContext))) in Tspi_Key_LoadKey()
75 if ((result = obj_rsakey_get_blob(hKey, &keySize, &keyBlob))) in Tspi_Key_LoadKey()
127 return obj_rsakey_set_tcs_handle(hKey, tcsKey); in Tspi_Key_LoadKey()
131 Tspi_Key_GetPubKey(TSS_HKEY hKey, /* in */ in Tspi_Key_GetPubKey() argument
148 if ((result = obj_rsakey_get_tsp_context(hKey, &tspContext))) in Tspi_Key_GetPubKey()
151 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, in Tspi_Key_GetPubKey()
[all …]
H A Dtspi_sign.c26 TSS_HKEY hKey, /* in */ in Tspi_Hash_Sign() argument
48 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, &hPolicy, &usesAuth))) in Tspi_Hash_Sign()
54 if ((result = obj_rsakey_get_tcs_handle(hKey, &tcsKeyHandle))) in Tspi_Hash_Sign()
67 if ((result = secret_PerformAuth_OIAP(hKey, TPM_ORD_Sign, hPolicy, FALSE, &digest, in Tspi_Hash_Sign()
105 TSS_HKEY hKey, /* in */ in Tspi_Hash_VerifySignature() argument
120 if ((result = obj_rsakey_get_tsp_context(hKey, &tspContext))) in Tspi_Hash_VerifySignature()
123 if ((result = obj_rsakey_get_modulus(hKey, &pubKeySize, &pubKey))) in Tspi_Hash_VerifySignature()
126 if ((result = obj_rsakey_get_ss(hKey, &sigScheme))) { in Tspi_Hash_VerifySignature()
H A Dtsp_key.c107 TCS_KEY_HANDLE hKey) in Transport_EvictKey() argument
121 if ((result = obj_tcskey_get_pubkeyhash(hKey, pubKeyHash.digest))) in Transport_EvictKey()
130 handle = hKey; in Transport_EvictKey()
141 TCS_KEY_HANDLE hKey, in Transport_GetPubKey() argument
159 if ((result = obj_tcskey_get_pubkeyhash(hKey, pubKeyHash.digest))) in Transport_GetPubKey()
168 handle = hKey; in Transport_GetPubKey()
297 TCS_KEY_HANDLE hKey, /* in */ in Transport_OwnerReadInternalPub() argument
315 if ((result = obj_tcskey_get_pubkeyhash(hKey, pubKeyHash.digest))) in Transport_OwnerReadInternalPub()
324 Trspi_LoadBlob_UINT32(&offset, hKey, data); in Transport_OwnerReadInternalPub()
H A Dtspi_certify.c27 Tspi_Key_CertifyKey(TSS_HKEY hKey, /* in */ in Tspi_Key_CertifyKey() argument
51 if ((result = obj_rsakey_get_tsp_context(hKey, &tspContext))) in Tspi_Key_CertifyKey()
54 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, in Tspi_Key_CertifyKey()
65 if ((result = obj_rsakey_get_tcs_handle(hKey, &keyTCSKeyHandle))) in Tspi_Key_CertifyKey()
95 if ((result = secret_PerformAuth_OIAP(hKey, TPM_ORD_CertifyKey, hPolicy, FALSE, in Tspi_Key_CertifyKey()
H A Dtspi_audit.c27 TSS_HKEY hKey, /* in */ in Tspi_TPM_GetAuditDigest() argument
46 if (hKey == NULL_HKEY) in Tspi_TPM_GetAuditDigest()
53 if (hKey == NULL_HKEY) { in Tspi_TPM_GetAuditDigest()
171 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, &hPolicy, &usesAuth))) in Tspi_TPM_GetAuditDigest()
174 if ((result = obj_rsakey_get_tcs_handle(hKey, &tcsKeyHandle))) in Tspi_TPM_GetAuditDigest()
186 if ((result = secret_PerformAuth_OIAP(hKey, TPM_ORD_GetAuditDigestSigned, in Tspi_TPM_GetAuditDigest()
250 if ((result = __tspi_rsa_verify(hKey, TSS_HASH_SHA1, sizeof(digest.digest), in Tspi_TPM_GetAuditDigest()
H A Dtspi_selftest.c39 TSS_HKEY hKey, /* in */ in Tspi_TPM_CertifySelfTest() argument
63 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, in Tspi_TPM_CertifySelfTest()
67 if ((result = obj_rsakey_get_tcs_handle(hKey, &keyTCSKeyHandle))) in Tspi_TPM_CertifySelfTest()
93 if ((result = secret_PerformAuth_OIAP(hKey, TPM_ORD_CertifySelfTest, hPolicy, FALSE, in Tspi_TPM_CertifySelfTest()
121 if ((result = Tspi_GetAttribData(hKey, TSS_TSPATTRIB_KEY_BLOB, in Tspi_TPM_CertifySelfTest()
H A Dtsp_tick.c54 TCS_KEY_HANDLE hKey, /* in */ in Transport_TickStampBlob() argument
77 if ((result = obj_tcskey_get_pubkeyhash(hKey, pubKeyHash.digest))) in Transport_TickStampBlob()
86 handle = hKey; in Transport_TickStampBlob()
H A Dtspi_bind.c140 TSS_HKEY hKey, /* in */ in Tspi_Data_Unbind() argument
162 if ((result = obj_rsakey_get_policy(hKey, TSS_POLICY_USAGE, &hPolicy, &usesAuth))) in Tspi_Data_Unbind()
170 if ((result = obj_rsakey_get_tcs_handle(hKey, &tcsKeyHandle))) in Tspi_Data_Unbind()
181 if ((result = secret_PerformAuth_OIAP(hKey, TPM_ORD_UnBind, hPolicy, FALSE, &digest, in Tspi_Data_Unbind()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Devp-crypt.c57 HCRYPTKEY *hKey; member
70 bResult = CryptSetKeyParam(gk->hKey, KP_IV, ctx->iv, 0); in generic_cbc_do_cipher()
76 bResult = CryptEncrypt(gk->hKey, 0, TRUE, 0, out, &length, size); in generic_cbc_do_cipher()
78 bResult = CryptDecrypt(gk->hKey, 0, TRUE, 0, out, &length); in generic_cbc_do_cipher()
88 CryptDestroyKey(gk->hKey); in generic_cleanup()
89 gk->hKey = NULL; in generic_cleanup()
114 &gk->hKey); in import_key()
118 return hKey; in import_key()
130 gk->hKey = import_key(CALG_3DES, in crypto_des_ede3_cbc_init()
H A Devp-wincng.c49 BCRYPT_KEY_HANDLE hKey; member
70 status = BCryptEncrypt(cng->hKey, in wincng_do_cipher()
81 status = BCryptDecrypt(cng->hKey, in wincng_do_cipher()
101 if (cng->hKey) in wincng_cleanup()
102 BCryptDestroyKey(cng->hKey); in wincng_cleanup()
201 if (cng->hKey) { in wincng_key_init()
202 BCryptDestroyKey(cng->hKey); /* allow reinitialization */ in wincng_key_init()
203 cng->hKey = (BCRYPT_KEY_HANDLE)0; in wincng_key_init()
211 &cng->hKey, in wincng_key_init()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcsi_key.c149 TCS_KEY_HANDLE hKey) /* in */ in TCSP_EvictKey_Internal() argument
157 tpm_handle = mc_get_slot_by_handle(hKey); in TCSP_EvictKey_Internal()
226 TCS_KEY_HANDLE hKey, /* in */ in TCSP_GetPubKey_Internal() argument
249 if (ensureKeyIsLoaded(hContext, hKey, &keySlot)) { in TCSP_GetPubKey_Internal()
254 LogDebug("GetPubKey: handle: 0x%x, slot: 0x%x", hKey, keySlot); in TCSP_GetPubKey_Internal()
276 TCS_KEY_HANDLE hKey, /* in */ in TCSP_OwnerReadInternalPub_Internal() argument
290 LogDebug("OwnerReadInternalPub: handle: 0x%x", hKey); in TCSP_OwnerReadInternalPub_Internal()
291 if (hKey != TPM_KH_SRK && hKey != TPM_KH_EK) { in TCSP_OwnerReadInternalPub_Internal()
300 if ((result = tpm_rqu_build(TPM_ORD_OwnerReadInternalPub, &offset, txBlob, hKey, in TCSP_OwnerReadInternalPub_Internal()
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/
H A Dpex-win32.c167 HKEY hKey, hTmp; in openkey() local
168 for (hKey = hStart; *keys; keys++) in openkey()
171 hTmp = hKey; in openkey()
172 res = RegOpenKey (hTmp, *keys, &hKey); in openkey()
180 return hKey; in openkey()
187 HKEY hKey, hTmp; in mingw_rootify() local
194 hKey = openkey (HKEY_LOCAL_MACHINE, mingw_keys); in mingw_rootify()
197 if (!hKey) in mingw_rootify()
202 if (RegQueryInfoKey (hKey, NULL, NULL, NULL, NULL, &maxlen, NULL, NULL, in mingw_rootify()
205 RegCloseKey (hKey); in mingw_rootify()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/
H A Dpex-win32.c167 HKEY hKey, hTmp; in openkey() local
168 for (hKey = hStart; *keys; keys++) in openkey()
171 hTmp = hKey; in openkey()
172 res = RegOpenKey (hTmp, *keys, &hKey); in openkey()
180 return hKey; in openkey()
187 HKEY hKey, hTmp; in mingw_rootify() local
194 hKey = openkey (HKEY_LOCAL_MACHINE, mingw_keys); in mingw_rootify()
197 if (!hKey) in mingw_rootify()
202 if (RegQueryInfoKey (hKey, NULL, NULL, NULL, NULL, &maxlen, NULL, NULL, in mingw_rootify()
205 RegCloseKey (hKey); in mingw_rootify()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libiberty/
H A Dpex-win32.c167 HKEY hKey, hTmp; in openkey() local
168 for (hKey = hStart; *keys; keys++) in openkey()
171 hTmp = hKey; in openkey()
172 res = RegOpenKey (hTmp, *keys, &hKey); in openkey()
180 return hKey; in openkey()
187 HKEY hKey, hTmp; in mingw_rootify() local
194 hKey = openkey (HKEY_LOCAL_MACHINE, mingw_keys); in mingw_rootify()
197 if (!hKey) in mingw_rootify()
202 if (RegQueryInfoKey (hKey, NULL, NULL, NULL, NULL, &maxlen, NULL, NULL, in mingw_rootify()
205 RegCloseKey (hKey); in mingw_rootify()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/tss/
H A Dtspi.h170 TSS_HKEY hKey // in
200 TSS_HKEY hKey, // in
278 TSS_HKEY hKey, // in
287 TSS_HKEY hKey, // in
294 TSS_HKEY hKey, // in
422 TSS_HKEY hKey, // in
439 TSS_HKEY hKey, // in
705 TSS_HKEY hKey, // in
771 TSS_HKEY hKey, // in
777 TSS_HKEY hKey // in
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
H A Drpc_key.c34 TCS_KEY_HANDLE hKey; in tcs_wrap_EvictKey() local
45 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_EvictKey()
50 result = key_mgr_evict(hContext, hKey); in tcs_wrap_EvictKey()
64 TCS_KEY_HANDLE hKey; in tcs_wrap_GetPubkey() local
80 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_GetPubkey()
93 result = TCSP_GetPubKey_Internal(hContext, hKey, pAuth, &pubKeySize, &pubKey); in tcs_wrap_GetPubkey()
387 TCS_KEY_HANDLE hKey; in tcs_wrap_OwnerReadInternalPub() local
401 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_OwnerReadInternalPub()
408 result = TCSP_OwnerReadInternalPub_Internal(hContext, hKey, &ownerAuth, &pubKeySize, &pubKeyData); in tcs_wrap_OwnerReadInternalPub()
431 TCS_KEY_HANDLE hKey; in tcs_wrap_KeyControlOwner() local
[all …]
H A Drpc_cmk.c119 TCS_KEY_HANDLE hKey; in tcs_wrap_CMK_CreateKey() local
139 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_CMK_CreateKey()
176 result = TCSP_CMK_CreateKey_Internal(hContext, hKey, keyUsageAuth, migAuthorityApproval, in tcs_wrap_CMK_CreateKey()
296 TCS_KEY_HANDLE hKey; in tcs_wrap_CMK_CreateBlob() local
320 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_CMK_CreateBlob()
446 result = TCSP_CMK_CreateBlob_Internal(hContext, hKey, migrationType, migKeyAuthSize, in tcs_wrap_CMK_CreateBlob()
504 TCS_KEY_HANDLE hKey; in tcs_wrap_CMK_ConvertMigration() local
526 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_CMK_ConvertMigration()
599 result = TCSP_CMK_ConvertMigration_Internal(hContext, hKey, restrictTicket, sigTicket, in tcs_wrap_CMK_ConvertMigration()
H A Drpc_sign.c34 TCS_KEY_HANDLE hKey; in tcs_wrap_Sign() local
55 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_Sign()
80 result = TCSP_Sign_Internal(hContext, hKey, areaToSignSize, areaToSign, pAuth, &sigSize, in tcs_wrap_Sign()
H A Drpc_quote.c34 TCS_KEY_HANDLE hKey; in tcs_wrap_Quote() local
58 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_Quote()
85 result = TCSP_Quote_Internal(hContext, hKey, antiReplay, pcrDataSizeIn, pcrDataIn, in tcs_wrap_Quote()
H A Drpc_tick.c72 TCS_KEY_HANDLE hKey; in tcs_wrap_TickStampBlob() local
88 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &data->comm)) in tcs_wrap_TickStampBlob()
101 result = TCSP_TickStampBlob_Internal(hContext, hKey, &nonce, &digest, pAuth, &sigSize, &sig, in tcs_wrap_TickStampBlob()
/netbsd-src/external/gpl3/binutils/dist/libiberty/
H A Dpex-win32.c168 HKEY hKey, hTmp; in openkey() local
169 for (hKey = hStart; *keys; keys++) in openkey()
172 hTmp = hKey; in openkey()
173 res = RegOpenKey (hTmp, *keys, &hKey); in openkey()
181 return hKey; in openkey()
188 HKEY hKey, hTmp; in mingw_rootify() local
195 hKey = openkey (HKEY_LOCAL_MACHINE, mingw_keys); in mingw_rootify()
198 if (!hKey) in mingw_rootify()
203 if (RegQueryInfoKey (hKey, NULL, NULL, NULL, NULL, &maxlen, NULL, NULL, in mingw_rootify()
206 RegCloseKey (hKey); in mingw_rootify()
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Dntservice.c63 HKEY hKey; in lutil_srv_install() local
95 "REG_SZ", REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, in lutil_srv_install()
99 RegCloseKey(hKey); in lutil_srv_install()
103 …if ( RegSetValueEx(hKey, "EventMessageFile", 0, REG_EXPAND_SZ, lpszBinaryPathName, strlen(lpszBina… in lutil_srv_install()
106 RegCloseKey(hKey); in lutil_srv_install()
111 …if ( RegSetValueEx(hKey, "TypesSupported", 0, REG_DWORD, (LPBYTE) &dwValue, sizeof(DWORD)) != ERRO… in lutil_srv_install()
114 RegCloseKey(hKey); in lutil_srv_install()
117 RegCloseKey(hKey); in lutil_srv_install()
/netbsd-src/crypto/external/cpl/tpm-tools/dist/src/cmds/
H A Dtpm_sealdata.c94 TSS_HKEY hSrk, hKey; in main() local
238 &hKey) != TSS_SUCCESS) in main()
250 if (policyAssign(hPolicy, hKey) != TSS_SUCCESS) in main()
254 if (keyCreateKey(hKey, hSrk, NULL_HPCRS) != TSS_SUCCESS) in main()
258 if (keyLoadKey(hKey, hSrk) != TSS_SUCCESS) in main()
282 (hEncdata, hKey, EVP_CIPHER_key_length(EVP_aes_256_cbc()), in main()
292 (hKey, TSS_TSPATTRIB_KEY_BLOB, TSS_TSPATTRIB_KEYBLOB_BLOB, in main()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
H A Drpc_key.c83 TCS_KEY_HANDLE hKey) /* in */ in RPC_EvictKey_TP() argument
93 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &hte->comm)) in RPC_EvictKey_TP()
174 TCS_KEY_HANDLE hKey, /* in */ in RPC_GetPubKey_TP() argument
188 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &hte->comm)) in RPC_GetPubKey_TP()
254 TCS_KEY_HANDLE hKey, /* in */ in RPC_OwnerReadInternalPub_TP() argument
267 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &hte->comm)) in RPC_OwnerReadInternalPub_TP()
304 TCS_KEY_HANDLE hKey, // in in RPC_KeyControlOwner_TP() argument
321 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &hKey, 0, &hte->comm)) in RPC_KeyControlOwner_TP()

123