HomeSort by relevance Sort by last modified time
    Searched refs:pmk (Results 1 - 17 of 17) sorted by null

  /external/wpa_supplicant/
pmksa_cache.h 24 u8 pmk[PMK_LEN]; member in struct:rsn_pmksa_cache_entry
48 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
92 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
pmksa_cache.c 43 * rsn_pmkid - Calculate PMK identifier
44 * @pmk: Pairwise master key
45 * @pmk_len: Length of pmk in bytes
50 * PMKID = HMAC-SHA1-128(PMK, "PMK Name" || AA || SPA)
52 static void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa,
55 char *title = "PMK Name";
64 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash);
145 * @pmk: The new pairwise master key
146 * @pmk_len: PMK length in bytes, usually PMK_LEN (32
    [all...]
preauth.c 88 u8 pmk[PMK_LEN]; local
93 res = eapol_sm_get_key(eapol, pmk, PMK_LEN);
97 * uses only 16-byte PMK.
99 res = eapol_sm_get_key(eapol, pmk, 16);
103 wpa_hexdump_key(MSG_DEBUG, "RSN: PMK from pre-auth",
104 pmk, pmk_len);
106 pmksa_cache_add(sm->pmksa, pmk, pmk_len,
wpa.h 115 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len);
170 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk,
eapol_test.c 294 u8 pmk[PMK_LEN]; local
297 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) {
298 wpa_hexdump(MSG_DEBUG, "PMK from EAPOL", pmk, PMK_LEN);
299 if (os_memcmp(pmk, e->authenticator_pmk, PMK_LEN) != 0) {
300 printf("WARNING: PMK mismatch\n");
301 wpa_hexdump(MSG_DEBUG, "PMK from AS",
306 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) {
307 wpa_hexdump(MSG_DEBUG, "LEAP PMK from EAPOL", pmk, 16)
    [all...]
wpa.c 859 * wpa_pmk_to_ptk - Calculate PTK from PMK, addresses, and nonces
860 * @pmk: Pairwise master key
861 * @pmk_len: Length of PMK
871 * PTK = PRF-X(PMK, "Pairwise key expansion",
879 static void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
903 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk, ptk_len);
905 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len);
    [all...]
wpa_i.h 79 u8 pmk[PMK_LEN]; member in struct:wpa_sm
  /external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/
pmksa_cache.h 24 u8 pmk[PMK_LEN]; member in struct:rsn_pmksa_cache_entry
58 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
102 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
pmksa_cache.c 42 * rsn_pmkid - Calculate PMK identifier
43 * @pmk: Pairwise master key
44 * @pmk_len: Length of pmk in bytes
50 * PMKID = HMAC-SHA1-128(PMK, "PMK Name" || AA || SPA)
52 static void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa,
55 char *title = "PMK Name";
66 hmac_sha256_vector(pmk, pmk_len, 3, addr, len, hash);
69 hmac_sha1_vector(pmk, pmk_len, 3, addr, len, hash);
150 * @pmk: The new pairwise master ke
    [all...]
preauth.c 87 u8 pmk[PMK_LEN]; local
92 res = eapol_sm_get_key(eapol, pmk, PMK_LEN);
96 * uses only 16-byte PMK.
98 res = eapol_sm_get_key(eapol, pmk, 16);
102 wpa_hexdump_key(MSG_DEBUG, "RSN: PMK from pre-auth",
103 pmk, pmk_len);
105 pmksa_cache_add(sm->pmksa, pmk, pmk_len,
wpa.c 217 wpa_hexdump_key(MSG_DEBUG, "RSN: PMK from PMKSA cache",
218 sm->pmk, sm->pmk_len);
226 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN);
230 * uses only 16-byte PMK.
232 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16);
246 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK from EAPOL state "
247 "machines", sm->pmk, pmk_len);
249 pmksa_cache_add(sm->pmksa, sm->pmk, pmk_len, src_addr,
254 wpa_printf(MSG_DEBUG, "RSN: the new PMK "
368 wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion"
    [all...]
wpa.h 97 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len);
150 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk,
wpa_i.h 26 u8 pmk[PMK_LEN]; member in struct:wpa_sm
  /external/wpa_supplicant_6/wpa_supplicant/src/common/
wpa_common.c 72 * wpa_pmk_to_ptk - Calculate PTK from PMK, addresses, and nonces
73 * @pmk: Pairwise master key
74 * @pmk_len: Length of PMK
85 * PTK = PRF-X(PMK, "Pairwise key expansion",
93 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
120 sha256_prf(pmk, pmk_len, label, data, sizeof(data),
124 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk,
129 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len);
409 * wpa_derive_pmk_r0 - Derive PMK-R0 and PMKR0Nam
    [all...]
wpa_common.h 294 void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label,
  /external/wpa_supplicant_6/wpa_supplicant/
eapol_test.c 337 u8 pmk[PMK_LEN]; local
340 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) {
341 wpa_hexdump(MSG_DEBUG, "PMK from EAPOL", pmk, PMK_LEN);
342 if (os_memcmp(pmk, e->authenticator_pmk, PMK_LEN) != 0) {
343 printf("WARNING: PMK mismatch\n");
344 wpa_hexdump(MSG_DEBUG, "PMK from AS",
349 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) {
350 wpa_hexdump(MSG_DEBUG, "LEAP PMK from EAPOL", pmk, 16)
    [all...]
wpas_glue.c 227 u8 pmk[PMK_LEN]; local
250 wpa_printf(MSG_DEBUG, "Configure PMK for driver-based RSN 4-way "
254 res = eapol_sm_get_key(eapol, pmk, PMK_LEN);
258 * uses only 16-byte PMK.
260 res = eapol_sm_get_key(eapol, pmk, 16);
265 wpa_printf(MSG_DEBUG, "Failed to get PMK from EAPOL state "
270 if (wpa_drv_set_key(wpa_s, WPA_ALG_PMK, NULL, 0, 0, NULL, 0, pmk,
272 wpa_printf(MSG_DEBUG, "Failed to set PMK to the driver");

Completed in 282 milliseconds