Home
last modified time | relevance | path

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

/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/openssl/apps/
H A Denc.c124 char *hkey = NULL, *hiv = NULL, *hsalt = NULL, *p; in enc_main() local
263 hkey = opt_arg(); in enc_main()
357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main()
546 if (hkey != NULL) { in enc_main()
547 if (!set_hex(hkey, key, EVP_CIPHER_get_key_length(cipher))) { in enc_main()
552 cleanse(hkey); in enc_main()
/freebsd/crypto/openssl/crypto/engine/
H A Deng_openssl.c511 ASN1_OCTET_STRING *hkey = NULL; in ossl_hmac_keygen() local
515 hkey = ASN1_OCTET_STRING_dup(&hctx->ktmp); in ossl_hmac_keygen()
516 if (!hkey) in ossl_hmac_keygen()
518 EVP_PKEY_assign(pkey, EVP_PKEY_HMAC, hkey); in ossl_hmac_keygen()
/freebsd/sys/dev/acpi_support/
H A Dacpi_ibm.c469 int hkey; in acpi_ibm_attach() local
525 if (ACPI_SUCCESS (acpi_GetInteger(sc->handle, "MHKV", &hkey))) { in acpi_ibm_attach()
526 device_printf(dev, "Firmware version is 0x%X\n", hkey); in acpi_ibm_attach()
527 switch (hkey >> 8) { in acpi_ibm_attach()
550 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.c6493 struct wpabuf *secret, *pub, *hkey; in owe_process_assoc_resp() local
6591 hkey = wpabuf_alloc(wpabuf_len(pub) + elems.owe_dh_len - 2 + 2); in owe_process_assoc_resp()
6592 if (!hkey) { in owe_process_assoc_resp()
6598 wpabuf_put_buf(hkey, pub); /* C */ in owe_process_assoc_resp()
6600 wpabuf_put_data(hkey, elems.owe_dh + 2, elems.owe_dh_len - 2); /* A */ in owe_process_assoc_resp()
6601 wpabuf_put_le16(hkey, sm->owe_group); /* group */ in owe_process_assoc_resp()
6603 res = hmac_sha256(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
6606 res = hmac_sha384(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
6609 res = hmac_sha512(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_resp()
6611 wpabuf_clear_free(hkey); in owe_process_assoc_resp()
/freebsd/contrib/wpa/src/ap/
H A Dieee802_11.c3613 struct wpabuf *secret, *pub, *hkey; in owe_process_assoc_req() local
3703 hkey = wpabuf_alloc(owe_dh_len - 2 + wpabuf_len(pub) + 2); in owe_process_assoc_req()
3704 if (!hkey) { in owe_process_assoc_req()
3710 wpabuf_put_data(hkey, owe_dh + 2, owe_dh_len - 2); /* C */ in owe_process_assoc_req()
3711 wpabuf_put_buf(hkey, pub); /* A */ in owe_process_assoc_req()
3713 wpabuf_put_le16(hkey, group); /* group */ in owe_process_assoc_req()
3715 res = hmac_sha256(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
3718 res = hmac_sha384(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
3721 res = hmac_sha512(wpabuf_head(hkey), wpabuf_len(hkey), in owe_process_assoc_req()
3723 wpabuf_clear_free(hkey); in owe_process_assoc_req()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_main.c3008 __be32 *hkey; in mlx5e_build_tir_ctx() local
3042 hkey = (__be32 *) MLX5_ADDR_OF(tirc, tirc, rx_hash_toeplitz_key); in mlx5e_build_tir_ctx()
3055 mlx5e_get_rss_key(hkey); in mlx5e_build_tir_ctx()