From bd1b2c234ea8ef2bdfe8f303f6002525d6d69bc7 Mon Sep 17 00:00:00 2001 From: Nikolay Morozov Date: Tue, 4 Feb 2020 14:54:36 +0300 Subject: [PATCH] Move NID_id_tc26_gost_3410_2012_256_paramSetA to 256-bit --- gost_params.c | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/gost_params.c b/gost_params.c index b5684b6..9f9806e 100644 --- a/gost_params.c +++ b/gost_params.c @@ -82,6 +82,25 @@ R3410_ec_params R3410_2001_paramset[] = { "41ECE55743711A8C3CBF3783CD08C0EE4D4DC440D4641A8F366E550DFDB3BB67", "1"} , + /* + * 1.2.643.7.1.2.1.1.1 Edvards + */ + {NID_id_tc26_gost_3410_2012_256_paramSetA, + /* a */ + "C2173F1513981673AF4892C23035A27CE25E2013BF95AA33B22C656F277E7335", + /* b */ + "295F9BAE7428ED9CCC20E7C359A9D41A22FCCD9108E17BF7BA9337A6F8AE9513", + /* p */ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97", + /* q */ + "400000000000000000000000000000000FD8CDDFC87B6635C115AF556C360C67", + /* x */ + "91E38443A5E82C0D880923425712B2BB658B9196932E02C78B2582FE742DAA28", + /* y */ + "32879423AB1A0375895786C4BB46E9565FDE0B5344766740AF268ADB32322E5C", + /* cofactor */ + "4"} + , {NID_undef, NULL, NULL, NULL, NULL, NULL, NULL, NULL} }; @@ -150,21 +169,6 @@ R3410_ec_params R3410_2012_512_paramset[] = { "DCB228FD1EDF4A39152CBCAAF8C0398828041055F94CEEEC7E21340780FE41BD", "1"} , - {NID_id_tc26_gost_3410_2012_256_paramSetA, - /* a */ - "C2173F1513981673AF4892C23035A27CE25E2013BF95AA33B22C656F277E7335", - /* b */ - "295F9BAE7428ED9CCC20E7C359A9D41A22FCCD9108E17BF7BA9337A6F8AE9513", - /* p */ - "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD97", - /* q */ - "400000000000000000000000000000000FD8CDDFC87B6635C115AF556C360C67", - /* x */ - "91E38443A5E82C0D880923425712B2BB658B9196932E02C78B2582FE742DAA28", - /* y */ - "32879423AB1A0375895786C4BB46E9565FDE0B5344766740AF268ADB32322E5C", - "4"} - , {NID_id_tc26_gost_3410_2012_512_paramSetC, /* a */ "DC9203E514A721875485A529D2C722FB187BC8980EB866644DE41C68E1430645" -- 2.39.5