From: Dmitry Eremin-Solenikov Date: Mon, 7 Oct 2019 22:32:38 +0000 (+0300) Subject: Add support for NID_id_tc26_gost_3410_2012_512_paramSetTest X-Git-Tag: v3.0.0~263^2~4^2^2 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=1d50ff581be1c6fc55990ab4ef6342a3eb858930;p=openssl-gost%2Fengine.git Add support for NID_id_tc26_gost_3410_2012_512_paramSetTest Add support for 512-bit curve parameters. Signed-off-by: Dmitry Eremin-Solenikov --- diff --git a/gost_params.c b/gost_params.c index b73d5a9..b5684b6 100644 --- a/gost_params.c +++ b/gost_params.c @@ -90,6 +90,26 @@ R3410_ec_params R3410_2001_paramset[] = { R3410_ec_params *R3410_2012_256_paramset = R3410_2001_paramset; R3410_ec_params R3410_2012_512_paramset[] = { + {NID_id_tc26_gost_3410_2012_512_paramSetTest, + /* a */ + "7", + /* b */ + "1CFF0806A31116DA29D8CFA54E57EB748BC5F377E49400FDD788B649ECA1AC43" + "61834013B2AD7322480A89CA58E0CF74BC9E540C2ADD6897FAD0A3084F302ADC", + /* p */ + "4531ACD1FE0023C7550D267B6B2FEE80922B14B2FFB90F04D4EB7C09B5D2D15D" + "F1D852741AF4704A0458047E80E4546D35B8336FAC224DD81664BBF528BE6373", + /* q */ + "4531ACD1FE0023C7550D267B6B2FEE80922B14B2FFB90F04D4EB7C09B5D2D15D" + "A82F2D7ECB1DBAC719905C5EECC423F1D86E25EDBE23C595D644AAF187E6E6DF", + /* x */ + "24D19CC64572EE30F396BF6EBBFD7A6C5213B3B3D7057CC825F91093A68CD762" + "FD60611262CD838DC6B60AA7EEE804E28BC849977FAC33B4B530F1B120248A9A", + /* y */ + "2BB312A43BD2CE6E0D020613C857ACDDCFBF061E91E5F2C3F32447C259F39B2C" + "83AB156D77F1496BF7EB3351E1EE4E43DC1A18B91B24640B6DBB92CB1ADD371E", + "1"} + , {NID_id_tc26_gost_3410_2012_512_paramSetA, /* a */ "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" diff --git a/gost_pmeth.c b/gost_pmeth.c index 41e53b6..b6f4543 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -351,6 +351,7 @@ static int pkey_gost2012_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) case NID_id_tc26_gost_3410_2012_512_paramSetA: case NID_id_tc26_gost_3410_2012_512_paramSetB: case NID_id_tc26_gost_3410_2012_512_paramSetC: + case NID_id_tc26_gost_3410_2012_512_paramSetTest: result = (EVP_PKEY_assign(pkey, NID_id_GostR3410_2012_512, ec)) ? 1 : 0; break;