From: Dmitry Belyavskiy Date: Fri, 8 May 2020 11:17:11 +0000 (+0300) Subject: GOST-related objects changes X-Git-Tag: openssl-3.0.0-alpha3~84 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=0e139a02d59323e5d9c0ad87ea9c8c3914696b83;ds=sidebyside GOST-related objects changes Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/11442) --- diff --git a/crypto/objects/obj_dat.h b/crypto/objects/obj_dat.h index 6fa22174c0..decf33ef9b 100644 --- a/crypto/objects/obj_dat.h +++ b/crypto/objects/obj_dat.h @@ -1088,7 +1088,7 @@ static const unsigned char so[7845] = { 0x2B,0x06,0x01,0x05,0x05,0x07,0x08,0x08, /* [ 7836] OBJ_NAIRealm */ }; -#define NUM_NID 1218 +#define NUM_NID 1219 static const ASN1_OBJECT nid_objs[NUM_NID] = { {"UNDEF", "undefined", NID_undef}, {"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]}, @@ -2308,9 +2308,10 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = { {"modp_4096", "modp_4096", NID_modp_4096}, {"modp_6144", "modp_6144", NID_modp_6144}, {"modp_8192", "modp_8192", NID_modp_8192}, + {"KxGOST18", "kx-gost18", NID_kx_gost18}, }; -#define NUM_SN 1209 +#define NUM_SN 1210 static const unsigned int sn_objs[NUM_SN] = { 364, /* "AD_DVCS" */ 419, /* "AES-128-CBC" */ @@ -2489,6 +2490,7 @@ static const unsigned int sn_objs[NUM_SN] = { 1038, /* "KxECDHE" */ 1040, /* "KxECDHE-PSK" */ 1045, /* "KxGOST" */ + 1218, /* "KxGOST18" */ 1043, /* "KxPSK" */ 1037, /* "KxRSA" */ 1042, /* "KxRSA_PSK" */ @@ -3523,7 +3525,7 @@ static const unsigned int sn_objs[NUM_SN] = { 1093, /* "x509ExtAdmission" */ }; -#define NUM_LN 1209 +#define NUM_LN 1210 static const unsigned int ln_objs[NUM_LN] = { 363, /* "AD Time Stamping" */ 405, /* "ANSI X9.62" */ @@ -4334,6 +4336,7 @@ static const unsigned int ln_objs[NUM_LN] = { 1038, /* "kx-ecdhe" */ 1040, /* "kx-ecdhe-psk" */ 1045, /* "kx-gost" */ + 1218, /* "kx-gost18" */ 1043, /* "kx-psk" */ 1037, /* "kx-rsa" */ 1042, /* "kx-rsa-psk" */ diff --git a/crypto/objects/obj_mac.num b/crypto/objects/obj_mac.num index aaf77099b3..6d2c0d74a8 100644 --- a/crypto/objects/obj_mac.num +++ b/crypto/objects/obj_mac.num @@ -1215,3 +1215,4 @@ modp_3072 1214 modp_4096 1215 modp_6144 1216 modp_8192 1217 +kx_gost18 1218 diff --git a/crypto/objects/objects.txt b/crypto/objects/objects.txt index a9ccf7eded..b19454209b 100644 --- a/crypto/objects/objects.txt +++ b/crypto/objects/objects.txt @@ -1648,6 +1648,7 @@ id-pkinit 5 : pkInitKDC : Signing KDC Response : KxPSK : kx-psk : KxSRP : kx-srp : KxGOST : kx-gost + : KxGOST18 : kx-gost18 : KxANY : kx-any # NIDs for cipher authentication diff --git a/include/openssl/obj_mac.h b/include/openssl/obj_mac.h index 0f6741b590..0f9adc9b6a 100644 --- a/include/openssl/obj_mac.h +++ b/include/openssl/obj_mac.h @@ -5102,6 +5102,10 @@ #define LN_kx_gost "kx-gost" #define NID_kx_gost 1045 +#define SN_kx_gost18 "KxGOST18" +#define LN_kx_gost18 "kx-gost18" +#define NID_kx_gost18 1218 + #define SN_kx_any "KxANY" #define LN_kx_any "kx-any" #define NID_kx_any 1063