]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FT: Accept 512-bit PMK-R1 from RRB
authorJouni Malinen <quic_jouni@quicinc.com>
Sun, 16 Oct 2022 13:38:27 +0000 (16:38 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Oct 2022 13:41:12 +0000 (16:41 +0300)
This will be needed for FT-SAE-KEY-EXT.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/wpa_auth_ft.c

index 1b1324b8d1ba878766359ac74050e9f1da5b72a8..b9f451d52a8c165e94bcab69ed1f70164792c9ba 100644 (file)
@@ -4105,7 +4105,8 @@ static int wpa_ft_rrb_rx_r1(struct wpa_authenticator *wpa_auth,
        pmk_r1_len = PMK_LEN;
        if (wpa_ft_rrb_get_tlv(plain, plain_len, FT_RRB_PMK_R1, &f_pmk_r1_len,
                               &f_pmk_r1) == 0 &&
-           (f_pmk_r1_len == PMK_LEN || f_pmk_r1_len == SHA384_MAC_LEN))
+           (f_pmk_r1_len == PMK_LEN || f_pmk_r1_len == SHA384_MAC_LEN ||
+            f_pmk_r1_len == SHA512_MAC_LEN))
                pmk_r1_len = f_pmk_r1_len;
        RRB_GET(FT_RRB_PMK_R1, pmk_r1, msgtype, pmk_r1_len);
        wpa_hexdump_key(MSG_DEBUG, "FT: PMK-R1", f_pmk_r1, pmk_r1_len);