]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE H2E: Update SSWU curve-specific parameter z values
authorJouni Malinen <jouni@codeaurora.org>
Wed, 13 Nov 2019 11:05:37 +0000 (13:05 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 23 Nov 2019 15:46:15 +0000 (17:46 +0200)
Update the values based on
11-19-1817-02-000m-hash-to-curve-changes.docx

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/sae.c

index 2ab168b8a957a7858f04eb012a88dda69f7c2184..bf8cc9deaa54047248d0acbb6b49d03fd6d28232 100644 (file)
@@ -579,20 +579,26 @@ static int sswu_curve_param(int group, int *z)
 {
        switch (group) {
        case 19:
+               *z = -10;
+               return 0;
        case 20:
+               *z = -12;
+               return 0;
        case 21:
-       case 28:
-               *z = -2;
+               *z = -4;
                return 0;
        case 25:
        case 29:
                *z = -5;
                return 0;
        case 26:
-               *z = -11;
+               *z = 31;
+               return 0;
+       case 28:
+               *z = -2;
                return 0;
        case 30:
-               *z = 2;
+               *z = 7;
                return 0;
        }