Fix gost OIDs.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 31 Mar 2006 10:57:32 +0000 (10:57 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 31 Mar 2006 10:57:32 +0000 (10:57 +0000)
crypto/objects/obj_dat.h
crypto/objects/obj_mac.h
crypto/objects/obj_mac.num
crypto/objects/objects.txt

index 18ac7f3..dbb3f4e 100644 (file)
@@ -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 */
index 20b13e7..112237a 100644 (file)
 #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
 
index 6428974..3a486b8 100644 (file)
@@ -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
index e4cc5a3..c9a1f00 100644 (file)
@@ -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