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>
This commit is contained in:
Jouni Malinen 2019-11-13 13:05:37 +02:00 committed by Jouni Malinen
parent 5b50265e13
commit 0432237a4d

View 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;
}