/external/boringssl/src/ssl/test/runner/ |
D | hkdf_test.go | 27 ikm, salt, info, prk, okm []byte 91 prk := hkdfExtract(tt.hash.New, tt.salt, tt.ikm) 92 if !bytes.Equal(prk, tt.prk) { 93 t.Errorf("%d. got hkdfExtract(%x, %x) = %x; wanted %x", i+1, tt.salt, tt.ikm, prk, tt.prk) 96 okm := hkdfExpand(tt.hash.New, tt.prk, tt.info, len(tt.okm)) 98 …t.Errorf("%d. got hkdfExpand(%x, %x, %d) = %x; wanted %x", i+1, tt.prk, tt.info, len(tt.okm), okm,…
|
D | hkdf.go | 33 func hkdfExpand(hash func() hash.Hash, prk, info []byte, length int) []byte { argument 38 if len(prk) < hashSize { 44 hmac := hmac.New(hash, prk)
|
/external/boringssl/src/crypto/hkdf/ |
D | hkdf_test.cc | 32 const uint8_t prk[EVP_MAX_MD_SIZE]; member 252 uint8_t prk[EVP_MAX_MD_SIZE]; in TEST() local 254 ASSERT_TRUE(HKDF_extract(prk, &prk_len, test->md_func(), test->ikm, in TEST() 256 EXPECT_EQ(Bytes(test->prk, test->prk_len), Bytes(prk, prk_len)); in TEST() 259 ASSERT_TRUE(HKDF_expand(buf, test->out_len, test->md_func(), prk, prk_len, in TEST()
|
D | hkdf.c | 30 uint8_t prk[EVP_MAX_MD_SIZE]; in HKDF() local 33 if (!HKDF_extract(prk, &prk_len, digest, secret, secret_len, salt, in HKDF() 35 !HKDF_expand(out_key, out_len, digest, prk, prk_len, info, info_len)) { in HKDF() 60 const uint8_t *prk, size_t prk_len, const uint8_t *info, in HKDF_expand() argument 78 if (!HMAC_Init_ex(&hmac, prk, prk_len, digest, NULL)) { in HKDF_expand()
|
/external/scapy/scapy/layers/tls/crypto/ |
D | hkdf.py | 32 def expand(self, prk, info, L): argument 35 return hkdf.derive(prk)
|
/external/boringssl/src/include/openssl/ |
D | hkdf.h | 53 const EVP_MD *digest, const uint8_t *prk,
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_module_tests.c | 1917 u8 prk[SHA256_MAC_LEN]; in test_extract_expand_hkdf() local 2009 if (hmac_sha256(salt1, sizeof(salt1), ikm1, sizeof(ikm1), prk) < 0) in test_extract_expand_hkdf() 2011 if (os_memcmp(prk, prk1, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf() 2024 if (hmac_sha256(salt2, sizeof(salt2), ikm2, sizeof(ikm2), prk) < 0) in test_extract_expand_hkdf() 2026 if (os_memcmp(prk, prk2, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
|
/external/wpa_supplicant_8/src/common/ |
D | dpp.c | 1380 u8 salt[DPP_MAX_HASH_LEN], prk[DPP_MAX_HASH_LEN]; in dpp_derive_k1() local 1388 if (dpp_hmac(hash_len, salt, hash_len, Mx, Mx_len, prk) < 0) in dpp_derive_k1() 1391 prk, hash_len); in dpp_derive_k1() 1394 res = dpp_hkdf_expand(hash_len, prk, hash_len, info, k1, hash_len); in dpp_derive_k1() 1395 os_memset(prk, 0, hash_len); in dpp_derive_k1() 1408 u8 salt[DPP_MAX_HASH_LEN], prk[DPP_MAX_HASH_LEN]; in dpp_derive_k2() local 1416 res = dpp_hmac(hash_len, salt, hash_len, Nx, Nx_len, prk); in dpp_derive_k2() 1420 prk, hash_len); in dpp_derive_k2() 1423 res = dpp_hkdf_expand(hash_len, prk, hash_len, info, k2, hash_len); in dpp_derive_k2() 1424 os_memset(prk, 0, hash_len); in dpp_derive_k2() [all …]
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa.c | 4513 u8 prk[SHA512_MAC_LEN], pmkid[SHA512_MAC_LEN]; in owe_process_assoc_resp() local 4622 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_resp() 4625 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_resp() 4628 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_resp() 4634 wpa_hexdump_key(MSG_DEBUG, "OWE: prk", prk, hash_len); in owe_process_assoc_resp() 4639 res = hmac_sha256_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_resp() 4642 res = hmac_sha384_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_resp() 4645 res = hmac_sha512_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_resp() 4647 os_memset(prk, 0, SHA512_MAC_LEN); in owe_process_assoc_resp()
|
/external/wpa_supplicant_8/src/ap/ |
D | ieee802_11.c | 2655 u8 prk[SHA512_MAC_LEN], pmkid[SHA512_MAC_LEN]; in owe_process_assoc_req() local 2743 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_req() 2746 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_req() 2749 wpabuf_head(secret), wpabuf_len(secret), prk); in owe_process_assoc_req() 2755 wpa_hexdump_key(MSG_DEBUG, "OWE: prk", prk, hash_len); in owe_process_assoc_req() 2762 os_memset(prk, 0, SHA512_MAC_LEN); in owe_process_assoc_req() 2767 res = hmac_sha256_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_req() 2770 res = hmac_sha384_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_req() 2773 res = hmac_sha512_kdf(prk, hash_len, NULL, (const u8 *) info, in owe_process_assoc_req() 2775 os_memset(prk, 0, SHA512_MAC_LEN); in owe_process_assoc_req()
|
/external/cldr/tools/java/org/unicode/cldr/util/data/external/ |
D | alternate_language_names.txt | 472 prk ; Va
|
/external/cldr/tools/java/org/unicode/cldr/util/data/languages/ |
D | entityToCode.tsv | 1056 http://www.wikidata.org/entity/Q3363719 prk
|
/external/cldr/tools/java/org/unicode/cldr/util/data/ |
D | iso-639-3_Name_Index.tab | 5586 prk Parauk Parauk
|
D | iso-639-3.tab | 5363 prk I L Parauk
|
D | language-subtag-registry | 29061 Subtag: prk
|
/external/icu/icu4c/source/data/misc/ |
D | supplementalData.txt | 6302 "prk~r",
|