mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
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:
parent
5b50265e13
commit
0432237a4d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user