Home
last modified time | relevance | path

Searched refs:hkey (Results 1 – 12 of 12) sorted by relevance

/freebsd/crypto/openssl/crypto/
H A Ddefaults.c70 HKEY hkey; in get_windows_regdirs() local
77 KEY_QUERY_VALUE, &hkey); in get_windows_regdirs()
82 ret = RegQueryValueExW(hkey, valuename, NULL, &ktype, NULL, in get_windows_regdirs()
100 if (RegQueryValueExW(hkey, valuename, in get_windows_regdirs()
112 RegCloseKey(hkey); in get_windows_regdirs()
/freebsd/sys/geom/eli/
H A Dg_eli_hmac.c46 g_eli_crypto_hmac_init(struct hmac_ctx *ctx, const char *hkey, in g_eli_crypto_hmac_init() argument
57 bcopy(hkey, key, hkeylen); in g_eli_crypto_hmac_init()
61 SHA512_Update(&lctx, hkey, hkeylen); in g_eli_crypto_hmac_init()
110 g_eli_crypto_hmac(const char *hkey, size_t hkeysize, const uint8_t *data, in g_eli_crypto_hmac() argument
115 g_eli_crypto_hmac_init(&ctx, hkey, hkeysize); in g_eli_crypto_hmac()
H A Dg_eli.h734 void g_eli_crypto_hmac_init(struct hmac_ctx *ctx, const char *hkey,
739 void g_eli_crypto_hmac(const char *hkey, size_t hkeysize,
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dccdefname.c48 HKEY hkey; in get_from_registry_indirect() local
67 KEY_QUERY_VALUE, &hkey) != ERROR_SUCCESS) in get_from_registry_indirect()
71 if (RegQueryValueEx(hkey, cp, 0, 0, in get_from_registry_indirect()
74 RegCloseKey(hkey); in get_from_registry_indirect()
78 RegCloseKey(hkey); in get_from_registry_indirect()
/freebsd/crypto/krb5/src/plugins/preauth/spake/
H A Dutil.c159 krb5_keyblock *hkey = NULL; in derive_key() local
198 ret = krb5_init_keyblock(context, ikey->enctype, keylen, &hkey); in derive_key()
202 ret = krb5_c_random_to_key(context, ikey->enctype, &d, hkey); in derive_key()
206 ret = krb5_c_fx_cf2_simple(context, ikey, "SPAKE", hkey, "keyderiv", out); in derive_key()
210 krb5_free_keyblock(context, hkey); in derive_key()
/freebsd/crypto/openssl/apps/
H A Denc.c154 char *hkey = NULL, *hiv = NULL, *hsalt = NULL, *p; in enc_main() local
316 hkey = opt_arg(); in enc_main()
438 if ((str == NULL) && (cipher != NULL) && (hkey == NULL) && (skeyopts == NULL)) { in enc_main()
663 if (hkey != NULL) { in enc_main()
664 if (!set_hex(hkey, key, EVP_CIPHER_get_key_length(cipher))) { in enc_main()
669 cleanse(hkey); in enc_main()
/freebsd/crypto/openssl/crypto/engine/
H A Deng_openssl.c515 ASN1_OCTET_STRING *hkey = NULL; in ossl_hmac_keygen() local
519 hkey = ASN1_OCTET_STRING_dup(&hctx->ktmp); in ossl_hmac_keygen()
520 if (!hkey) in ossl_hmac_keygen()
522 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, hkey); in ossl_hmac_keygen()
/freebsd/sys/dev/acpi_support/
H A Dacpi_ibm.c470 int hkey; in acpi_ibm_attach() local
527 if (ACPI_SUCCESS (acpi_GetInteger(sc->handle, "MHKV", &hkey))) { in acpi_ibm_attach()
528 device_printf(dev, "Firmware version is 0x%X\n", hkey); in acpi_ibm_attach()
529 switch (hkey >> 8) { in acpi_ibm_attach()
552 device_printf(dev, "Unknown firmware version 0x%x\n", hkey); in acpi_ibm_attach()
/freebsd/contrib/llvm-project/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp134 static bool readFullStringValue(HKEY hkey, const char *valueName, in readFullStringValue() argument
144 result = RegQueryValueExW(hkey, WideValueName.c_str(), NULL, &type, NULL, in readFullStringValue()
149 result = RegQueryValueExW(hkey, WideValueName.c_str(), NULL, NULL, &buffer[0], in readFullStringValue()
/freebsd/contrib/wpa/src/rsn_supp/
H A Dwpa.c7241 struct wpabuf *secret, *pub, *hkey; in owe_process_assoc_resp() local
7339 hkey = wpabuf_alloc(wpabuf_len(pub) + elems.owe_dh_len - 2 + 2); in owe_process_assoc_resp()
7340 if (!hkey) { in owe_process_assoc_resp()
7346 wpabuf_put_buf(hkey, pub); /* C */ in owe_process_assoc_resp()
7348 wpabuf_put_data(hkey, elems.owe_dh + 2, elems.owe_dh_len - 2); /* A */ in owe_process_assoc_resp()
7349 wpabuf_put_le16(hkey, sm->owe_group); /* group */ in owe_process_assoc_resp()
7351 res = hmac_sha256(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
7354 res = hmac_sha384(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
7357 res = hmac_sha512(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
7359 wpabuf_clear_free(hkey); in owe_process_assoc_resp()
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11.c5037 struct wpabuf *secret, *pub, *hkey; in owe_process_assoc_req() local
5127 hkey = wpabuf_alloc(owe_dh_len - 2 + wpabuf_len(pub) + 2); in owe_process_assoc_req()
5128 if (!hkey) { in owe_process_assoc_req()
5134 wpabuf_put_data(hkey, owe_dh + 2, owe_dh_len - 2); /* C */ in owe_process_assoc_req()
5135 wpabuf_put_buf(hkey, pub); /* A */ in owe_process_assoc_req()
5137 wpabuf_put_le16(hkey, group); /* group */ in owe_process_assoc_req()
5139 res = hmac_sha256(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
5142 res = hmac_sha384(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
5145 res = hmac_sha512(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
5147 wpabuf_clear_free(hkey); in owe_process_assoc_req()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_main.c3043 __be32 *hkey; in mlx5e_build_tir_ctx() local
3077 hkey = (__be32 *) MLX5_ADDR_OF(tirc, tirc, rx_hash_toeplitz_key); in mlx5e_build_tir_ctx()
3087 mlx5e_get_rss_key(hkey); in mlx5e_build_tir_ctx()