Home
last modified time | relevance | path

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

/minix/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Devp-crypt.c60 HCRYPTKEY *hKey; member
73 bResult = CryptSetKeyParam(gk->hKey, KP_IV, ctx->iv, 0); in generic_cbc_do_cipher()
79 bResult = CryptEncrypt(gk->hKey, 0, TRUE, 0, out, &length, size); in generic_cbc_do_cipher()
81 bResult = CryptDecrypt(gk->hKey, 0, TRUE, 0, out, &length); in generic_cbc_do_cipher()
91 CryptDestroyKey(gk->hKey); in generic_cleanup()
92 gk->hKey = NULL; in generic_cleanup()
117 &gk->hKey); in import_key()
121 return hKey; in import_key()
133 gk->hKey = import_key(CALG_3DES, in crypto_des_ede3_cbc_init()
/minix/external/bsd/bind/dist/bin/tests/pkcs11/benchmarks/
H A Dpubrsa.c121 CK_OBJECT_HANDLE *hKey; in main() local
190 hKey = (CK_SESSION_HANDLE *) in main()
192 if (hKey == NULL) { in main()
197 hKey[i] = CK_INVALID_HANDLE; in main()
214 free(hKey); in main()
234 rv = pkcs_C_CreateObject(hSession, kTemplate, 8, &hKey[i]); in main()
267 if (hKey[i] == CK_INVALID_HANDLE) in main()
269 rv = pkcs_C_DestroyObject(hSession, hKey[i]); in main()
278 free(hKey); in main()
H A Dprivrsa.c194 CK_OBJECT_HANDLE *hKey; in main() local
269 hKey = (CK_SESSION_HANDLE *) in main()
271 if (hKey == NULL) { in main()
276 hKey[i] = CK_INVALID_HANDLE; in main()
293 free(hKey); in main()
313 rv = pkcs_C_CreateObject(hSession, kTemplate, 14, &hKey[i]); in main()
346 if (hKey[i] == CK_INVALID_HANDLE) in main()
348 rv = pkcs_C_DestroyObject(hSession, hKey[i]); in main()
357 free(hKey); in main()
H A Dcreate.c101 CK_OBJECT_HANDLE *hKey; in main() local
164 hKey = (CK_SESSION_HANDLE *) in main()
166 if (hKey == NULL) { in main()
171 hKey[i] = CK_INVALID_HANDLE; in main()
214 rv = pkcs_C_CreateObject(hSession, kTemplate, 5, &hKey[i]); in main()
247 if (hKey[i] == CK_INVALID_HANDLE) in main()
249 rv = pkcs_C_DestroyObject(hSession, hKey[i]); in main()
258 free(hKey); in main()
H A Dverify.c123 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in main() local
218 rv = pkcs_C_CreateObject(hSession, kTemplate, 7, &hKey); in main()
240 rv = pkcs_C_VerifyInit(hSession, &mech, hKey); in main()
280 if (hKey != CK_INVALID_HANDLE) { in main()
281 rv = pkcs_C_DestroyObject(hSession, hKey); in main()
H A Dsign.c196 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in main() local
297 rv = pkcs_C_CreateObject(hSession, kTemplate, 13, &hKey); in main()
318 rv = pkcs_C_SignInit(hSession, &mech, hKey); in main()
358 if (hKey != CK_INVALID_HANDLE) { in main()
359 rv = pkcs_C_DestroyObject(hSession, hKey); in main()
/minix/external/bsd/bind/dist/lib/isc/win32/
H A Dntpaths.c56 HKEY hKey; in isc_ntpaths_init() local
60 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, BIND_SUBKEY, 0, KEY_READ, &hKey) in isc_ntpaths_init()
66 if (RegQueryValueEx(hKey, "InstallDir", NULL, NULL, in isc_ntpaths_init()
69 RegCloseKey(hKey); in isc_ntpaths_init()
H A Dpk11_api.c352 CK_OBJECT_HANDLE hKey) in pkcs_C_EncryptInit() argument
362 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_EncryptInit()
435 CK_OBJECT_HANDLE hKey) in pkcs_C_SignInit() argument
445 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_SignInit()
501 CK_OBJECT_HANDLE hKey) in pkcs_C_VerifyInit() argument
511 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_VerifyInit()
/minix/external/bsd/bind/dist/bin/win32/BINDInstall/
H A DBINDInstallDlg.cpp308 HKEY hKey; in BEGIN_MESSAGE_MAP() local
323 RegCloseKey(hKey); in BEGIN_MESSAGE_MAP()
582 HKEY hKey; in OnInstall() local
592 RegCloseKey(hKey); in OnInstall()
773 HKEY hKey; in GetCurrentServiceAccountName() local
796 RegCloseKey(hKey); in GetCurrentServiceAccountName()
1019 HKEY hKey; in RegisterMessages() local
1042 RegCloseKey(hKey); in RegisterMessages()
1049 HKEY hKey = NULL; in UnregisterMessages() local
1066 if (hKey) in UnregisterMessages()
[all …]
/minix/external/bsd/bind/dist/lib/lwres/win32/
H A Dlwconfig.c51 HKEY hKey; in get_win32_searchlist() local
62 if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TCPIP_SUBKEY, 0, KEY_READ, &hKey) in get_win32_searchlist()
68 if (RegQueryValueEx(hKey, "SearchList", NULL, NULL, in get_win32_searchlist()
71 RegCloseKey(hKey); in get_win32_searchlist()
/minix/external/bsd/bind/dist/bin/tests/pkcs11/
H A Dpkcs11-hmacmd5.c100 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in main() local
243 rv = pkcs_C_CreateObject(hSession, keyTemplate, (CK_ULONG) 6, &hKey); in main()
249 if (hKey == CK_INVALID_HANDLE) { in main()
255 rv = pkcs_C_SignInit(hSession, &mech, hKey); in main()
323 rv = pkcs_C_DestroyObject(hSession, hKey); in main()
/minix/external/bsd/bind/dist/lib/isc/include/pkcs11/
H A Dpkcs11f.h380 CK_OBJECT_HANDLE hKey /* handle of encryption key */
430 CK_OBJECT_HANDLE hKey /* handle of decryption key */
519 CK_OBJECT_HANDLE hKey /* secret key to digest */
548 CK_OBJECT_HANDLE hKey /* handle of signature key */
600 CK_OBJECT_HANDLE hKey /* handle of the signature key */
630 CK_OBJECT_HANDLE hKey /* verification key */
682 CK_OBJECT_HANDLE hKey /* verification key */
813 CK_OBJECT_HANDLE hKey, /* key to be wrapped */
H A Dpkcs11t.h1799 CK_OBJECT_HANDLE hKey; member
1938 CK_OBJECT_HANDLE hKey; member
/minix/external/bsd/llvm/dist/clang/lib/Driver/
H A DMSVCToolChain.cpp124 HKEY hKey = NULL; in getSystemRegistryString()
174 KEY_READ | KEY_WOW64_32KEY, &hKey); in getSystemRegistryString()
176 lResult = readFullStringValue(hKey, valueName, value); in getSystemRegistryString()
183 RegCloseKey(hKey); in getSystemRegistryString()
192 RegOpenKeyEx(hRootKey, keyPath, 0, KEY_READ | KEY_WOW64_32KEY, &hKey); in getSystemRegistryString()
194 lResult = readFullStringValue(hKey, valueName, value); in getSystemRegistryString()
199 RegCloseKey(hKey); in getSystemRegistryString()
/minix/external/bsd/bind/dist/lib/isc/include/pk11/
H A Dpk11.h215 CK_OBJECT_HANDLE hKey);
235 CK_OBJECT_HANDLE hKey);
252 CK_OBJECT_HANDLE hKey);
/minix/external/bsd/bind/dist/bin/python/
H A Ddnssec-checkds.py.in34 hKey = None
37 hKey = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE, bind_subkey)
42 (namedBase, _) = win32api.RegQueryValueEx(hKey, "InstallDir")
45 win32api.RegCloseKey(hKey)
H A Ddnssec-coverage.py.in40 hKey = None
43 hKey = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE, bind_subkey)
48 (namedBase, _) = win32api.RegQueryValueEx(hKey, "InstallDir")
51 win32api.RegCloseKey(hKey)
/minix/external/bsd/bind/dist/lib/dns/
H A Dpkcs11ecdsa_link.c164 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in pkcs11ecdsa_sign() local
244 &hKey), in pkcs11ecdsa_sign()
251 pk11_ctx->ontoken ? pk11_ctx->object : hKey), in pkcs11ecdsa_sign()
264 if (hKey != CK_INVALID_HANDLE) in pkcs11ecdsa_sign()
286 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in pkcs11ecdsa_verify() local
351 &hKey), in pkcs11ecdsa_verify()
355 (pk11_ctx->session, &mech, hKey), in pkcs11ecdsa_verify()
366 if (hKey != CK_INVALID_HANDLE) in pkcs11ecdsa_verify()
1035 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in pkcs11ecdsa_fromlabel() local
1108 (pk11_ctx->session, hKey, attr, 2), in pkcs11ecdsa_fromlabel()
[all …]
H A Dpkcs11dh_link.c83 CK_OBJECT_HANDLE *hKey) in pkcs11dh_loadpriv() argument
107 *hKey = priv->object; in pkcs11dh_loadpriv()
139 (session, keyTemplate, (CK_ULONG) 9, hKey), in pkcs11dh_loadpriv()
165 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in pkcs11dh_computesecret() local
210 ret = pkcs11dh_loadpriv(priv, ctx.session, &hKey); in pkcs11dh_computesecret()
215 (ctx.session, &mech, hKey, in pkcs11dh_computesecret()
252 if ((hKey != CK_INVALID_HANDLE) && !priv->keydata.pkey->ontoken) in pkcs11dh_computesecret()
253 (void) pkcs_C_DestroyObject(ctx.session, hKey); in pkcs11dh_computesecret()
H A Dpkcs11rsa_link.c1398 CK_OBJECT_HANDLE hKey = CK_INVALID_HANDLE; in pkcs11rsa_fromlabel() local
1461 (pk11_ctx->session, &hKey, (CK_ULONG) 1, &cnt), in pkcs11rsa_fromlabel()
1471 (pk11_ctx->session, hKey, attr, 2), in pkcs11rsa_fromlabel()
1480 (pk11_ctx->session, hKey, attr, 2), in pkcs11rsa_fromlabel()
/minix/external/bsd/bind/dist/lib/isc/unix/
H A Dpk11_api.c333 CK_OBJECT_HANDLE hKey) in pkcs_C_EncryptInit() argument
346 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_EncryptInit()
423 CK_OBJECT_HANDLE hKey) in pkcs_C_SignInit() argument
436 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_SignInit()
496 CK_OBJECT_HANDLE hKey) in pkcs_C_VerifyInit() argument
509 return (*sym)(hSession, pMechanism, hKey); in pkcs_C_VerifyInit()
/minix/crypto/external/bsd/heimdal/dist/lib/hx509/
H A Dsoftp11.c1405 const CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey, in commonInit() argument
1412 if ((ret = object_handle_to_object(hKey, o)) != CKR_OK) in commonInit()
1464 CK_OBJECT_HANDLE hKey) in C_SignInit() argument
1481 pMechanism, hKey, &o); in C_SignInit()
1597 CK_OBJECT_HANDLE hKey) in C_VerifyInit() argument
1614 pMechanism, hKey, &o); in C_VerifyInit()
/minix/external/bsd/bind/dist/bin/pkcs11/
H A Dopenssl-0.9.8zc-patch13381 + CK_OBJECT_HANDLE hKey /* handle of encryption key */
13431 + CK_OBJECT_HANDLE hKey /* handle of decryption key */
13520 + CK_OBJECT_HANDLE hKey /* secret key to digest */
13549 + CK_OBJECT_HANDLE hKey /* handle of signature key */
13601 + CK_OBJECT_HANDLE hKey /* handle of the signature key */
13631 + CK_OBJECT_HANDLE hKey /* verification key */
13683 + CK_OBJECT_HANDLE hKey /* verification key */
13814 + CK_OBJECT_HANDLE hKey, /* key to be wrapped */
15625 + CK_OBJECT_HANDLE hKey;
15764 + CK_OBJECT_HANDLE hKey;
H A Dopenssl-1.0.0o-patch13362 + CK_OBJECT_HANDLE hKey /* handle of encryption key */
13412 + CK_OBJECT_HANDLE hKey /* handle of decryption key */
13501 + CK_OBJECT_HANDLE hKey /* secret key to digest */
13530 + CK_OBJECT_HANDLE hKey /* handle of signature key */
13582 + CK_OBJECT_HANDLE hKey /* handle of the signature key */
13612 + CK_OBJECT_HANDLE hKey /* verification key */
13664 + CK_OBJECT_HANDLE hKey /* verification key */
13795 + CK_OBJECT_HANDLE hKey, /* key to be wrapped */
15606 + CK_OBJECT_HANDLE hKey;
15745 + CK_OBJECT_HANDLE hKey;
H A Dopenssl-1.0.1j-patch13257 + CK_OBJECT_HANDLE hKey /* handle of encryption key */
13307 + CK_OBJECT_HANDLE hKey /* handle of decryption key */
13396 + CK_OBJECT_HANDLE hKey /* secret key to digest */
13425 + CK_OBJECT_HANDLE hKey /* handle of signature key */
13477 + CK_OBJECT_HANDLE hKey /* handle of the signature key */
13507 + CK_OBJECT_HANDLE hKey /* verification key */
13559 + CK_OBJECT_HANDLE hKey /* verification key */
13690 + CK_OBJECT_HANDLE hKey, /* key to be wrapped */
15501 + CK_OBJECT_HANDLE hKey;
15640 + CK_OBJECT_HANDLE hKey;