aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-11-13 11:05:37 (GMT)
committerJouni Malinen <j@w1.fi>2019-11-23 15:46:15 (GMT)
commit0432237a4d11f0f12f12f325965362cd052c8124 (patch)
tree32fa44666ee3ee909ce22fe6ee1cf57c61ab95ec
parent5b50265e133d2ce111211e69d584ba71bf0551e4 (diff)
downloadhostap-0432237a4d11f0f12f12f325965362cd052c8124.zip
hostap-0432237a4d11f0f12f12f325965362cd052c8124.tar.gz
hostap-0432237a4d11f0f12f12f325965362cd052c8124.tar.bz2
SAE H2E: Update SSWU curve-specific parameter z values
Update the values based on 11-19-1817-02-000m-hash-to-curve-changes.docx Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/common/sae.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/common/sae.c b/src/common/sae.c
index 2ab168b..bf8cc9d 100644
--- a/src/common/sae.c
+++ b/src/common/sae.c
@@ -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;
}