From: Dr. Stephen Henson Date: Fri, 31 Mar 2006 10:57:32 +0000 (+0000) Subject: Fix gost OIDs. X-Git-Tag: OpenSSL_0_9_8k^2~1462 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=5a47825ece3503346a0d2825e770e02fe08cfd76 Fix gost OIDs. --- diff --git a/crypto/objects/obj_dat.h b/crypto/objects/obj_dat.h index 18ac7f3e0d..dbb3f4e708 100644 --- a/crypto/objects/obj_dat.h +++ b/crypto/objects/obj_dat.h @@ -782,8 +782,8 @@ static unsigned char lvalues[5040]={ 0x2A,0x85,0x03,0x02,0x02, /* [5010] OBJ_cryptopro */ 0x2A,0x85,0x03,0x02,0x02,0x03, /* [5015] OBJ_id_GostR3411_94_with_GostR3410_2001 */ 0x2A,0x85,0x03,0x02,0x02,0x04, /* [5021] OBJ_id_GostR3411_94_with_GostR3410_94 */ -0x2A,0x85,0x03,0x02,0x02,0x13, /* [5027] OBJ_id_GostR3411_2001 */ -0x2A,0x85,0x03,0x02,0x02,0x14, /* [5033] OBJ_id_GostR3411_94 */ +0x2A,0x85,0x03,0x02,0x02,0x13, /* [5027] OBJ_id_GostR3410_2001 */ +0x2A,0x85,0x03,0x02,0x02,0x14, /* [5033] OBJ_id_GostR3410_94 */ }; static ASN1_OBJECT nid_objs[NUM_NID]={ @@ -1962,10 +1962,9 @@ static ASN1_OBJECT nid_objs[NUM_NID]={ {"id-GostR3411-94-with-GostR3410-94", "GOST R 34.11-94 with GOST R 34.10-94", NID_id_GostR3411_94_with_GostR3410_94,6,&(lvalues[5021]),0}, -{"id-GostR3411-2001","GOST R 34.10-2001",NID_id_GostR3411_2001,6, +{"gost2001","GOST R 34.10-2001",NID_id_GostR3410_2001,6, &(lvalues[5027]),0}, -{"id-GostR3411-94","GOST R 34.10-94",NID_id_GostR3411_94,6, - &(lvalues[5033]),0}, +{"gost94","GOST R 34.10-94",NID_id_GostR3410_94,6,&(lvalues[5033]),0}, }; static ASN1_OBJECT *sn_objs[NUM_SN]={ @@ -2210,6 +2209,8 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={ &(nid_objs[490]),/* "friendlyCountryName" */ &(nid_objs[156]),/* "friendlyName" */ &(nid_objs[509]),/* "generationQualifier" */ +&(nid_objs[756]),/* "gost2001" */ +&(nid_objs[757]),/* "gost94" */ &(nid_objs[163]),/* "hmacWithSHA1" */ &(nid_objs[432]),/* "holdInstructionCallIssuer" */ &(nid_objs[430]),/* "holdInstructionCode" */ @@ -2219,8 +2220,6 @@ static ASN1_OBJECT *sn_objs[NUM_SN]={ &(nid_objs[473]),/* "homeTelephoneNumber" */ &(nid_objs[466]),/* "host" */ &(nid_objs[442]),/* "iA5StringSyntax" */ -&(nid_objs[756]),/* "id-GostR3411-2001" */ -&(nid_objs[757]),/* "id-GostR3411-94" */ &(nid_objs[754]),/* "id-GostR3411-94-with-GostR3410-2001" */ &(nid_objs[755]),/* "id-GostR3411-94-with-GostR3410-94" */ &(nid_objs[266]),/* "id-aca" */ @@ -3755,8 +3754,8 @@ static ASN1_OBJECT *obj_objs[NUM_OBJ]={ &(nid_objs[125]),/* OBJ_zlib_compression 1 1 1 1 666 2 */ &(nid_objs[754]),/* OBJ_id_GostR3411_94_with_GostR3410_2001 1 2 643 2 2 3 */ &(nid_objs[755]),/* OBJ_id_GostR3411_94_with_GostR3410_94 1 2 643 2 2 4 */ -&(nid_objs[756]),/* OBJ_id_GostR3411_2001 1 2 643 2 2 19 */ -&(nid_objs[757]),/* OBJ_id_GostR3411_94 1 2 643 2 2 20 */ +&(nid_objs[756]),/* OBJ_id_GostR3410_2001 1 2 643 2 2 19 */ +&(nid_objs[757]),/* OBJ_id_GostR3410_94 1 2 643 2 2 20 */ &(nid_objs[ 1]),/* OBJ_rsadsi 1 2 840 113549 */ &(nid_objs[185]),/* OBJ_X9cm 1 2 840 10040 4 */ &(nid_objs[127]),/* OBJ_id_pkix 1 3 6 1 5 5 7 */ diff --git a/crypto/objects/obj_mac.h b/crypto/objects/obj_mac.h index 20b13e73fa..112237a3f0 100644 --- a/crypto/objects/obj_mac.h +++ b/crypto/objects/obj_mac.h @@ -3326,13 +3326,13 @@ #define NID_id_GostR3411_94_with_GostR3410_94 755 #define OBJ_id_GostR3411_94_with_GostR3410_94 OBJ_cryptopro,4L -#define SN_id_GostR3411_2001 "id-GostR3411-2001" -#define LN_id_GostR3411_2001 "GOST R 34.10-2001" -#define NID_id_GostR3411_2001 756 -#define OBJ_id_GostR3411_2001 OBJ_cryptopro,19L - -#define SN_id_GostR3411_94 "id-GostR3411-94" -#define LN_id_GostR3411_94 "GOST R 34.10-94" -#define NID_id_GostR3411_94 757 -#define OBJ_id_GostR3411_94 OBJ_cryptopro,20L +#define SN_id_GostR3410_2001 "gost2001" +#define LN_id_GostR3410_2001 "GOST R 34.10-2001" +#define NID_id_GostR3410_2001 756 +#define OBJ_id_GostR3410_2001 OBJ_cryptopro,19L + +#define SN_id_GostR3410_94 "gost94" +#define LN_id_GostR3410_94 "GOST R 34.10-94" +#define NID_id_GostR3410_94 757 +#define OBJ_id_GostR3410_94 OBJ_cryptopro,20L diff --git a/crypto/objects/obj_mac.num b/crypto/objects/obj_mac.num index 6428974a90..3a486b8f2b 100644 --- a/crypto/objects/obj_mac.num +++ b/crypto/objects/obj_mac.num @@ -753,5 +753,5 @@ whirlpool 752 cryptopro 753 id_GostR3411_94_with_GostR3410_2001 754 id_GostR3411_94_with_GostR3410_94 755 -id_GostR3411_2001 756 -id_GostR3411_94 757 +id_GostR3410_2001 756 +id_GostR3410_94 757 diff --git a/crypto/objects/objects.txt b/crypto/objects/objects.txt index e4cc5a3e9d..c9a1f007fb 100644 --- a/crypto/objects/objects.txt +++ b/crypto/objects/objects.txt @@ -1057,5 +1057,7 @@ iso 0 10118 3 0 55 : whirlpool member-body 643 2 2 : cryptopro cryptopro 3 : id-GostR3411-94-with-GostR3410-2001 : GOST R 34.11-94 with GOST R 34.10-2001 cryptopro 4 : id-GostR3411-94-with-GostR3410-94 : GOST R 34.11-94 with GOST R 34.10-94 -cryptopro 19 : id-GostR3411-2001 : GOST R 34.10-2001 -cryptopro 20 : id-GostR3411-94 : GOST R 34.10-94 +!Cname id-GostR3410-2001 +cryptopro 19 : gost2001 : GOST R 34.10-2001 +!Cname id-GostR3410-94 +cryptopro 20 : gost94 : GOST R 34.10-94