aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1/oids.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asn1/oids.cpp')
-rw-r--r--src/lib/asn1/oids.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/asn1/oids.cpp b/src/lib/asn1/oids.cpp
index 794f0f6f0..1fcbe456d 100644
--- a/src/lib/asn1/oids.cpp
+++ b/src/lib/asn1/oids.cpp
@@ -1,7 +1,7 @@
/*
* OID maps
*
-* This file was automatically generated by ./src/scripts/oids.py on 2017-06-12
+* This file was automatically generated by ./src/scripts/oids.py on 2017-06-22
*
* All manual edits to this file will be lost. Edit the script
* then regenerate this source file.
@@ -19,6 +19,10 @@ std::string lookup(const OID& oid)
{
const std::string oid_str = oid.as_string();
if(oid_str == "1.0.14888.3.0.5") return "ECKCDSA";
+ if(oid_str == "1.2.156.10197.1.301") return "sm2p256v1";
+ if(oid_str == "1.2.156.10197.1.301.1") return "SM2_Sig";
+ if(oid_str == "1.2.156.10197.1.301.2") return "SM2_Kex";
+ if(oid_str == "1.2.156.10197.1.301.3") return "SM2_Enc";
if(oid_str == "1.2.156.10197.1.401") return "SM3";
if(oid_str == "1.2.156.10197.1.504") return "RSA/EMSA3(SM3)";
if(oid_str == "1.2.250.1.223.101.256.1") return "frp256v1";
@@ -327,6 +331,9 @@ OID lookup(const std::string& name)
if(name == "SHA-512-256") return OID("2.16.840.1.101.3.4.2.6");
if(name == "SHAKE-128") return OID("2.16.840.1.101.3.4.2.11");
if(name == "SHAKE-256") return OID("2.16.840.1.101.3.4.2.12");
+ if(name == "SM2_Enc") return OID("1.2.156.10197.1.301.3");
+ if(name == "SM2_Kex") return OID("1.2.156.10197.1.301.2");
+ if(name == "SM2_Sig") return OID("1.2.156.10197.1.301.1");
if(name == "SM3") return OID("1.2.156.10197.1.401");
if(name == "Serpent/CBC") return OID("1.3.6.1.4.1.25258.3.1");
if(name == "Serpent/GCM") return OID("1.3.6.1.4.1.25258.3.101");
@@ -388,6 +395,7 @@ OID lookup(const std::string& name)
if(name == "secp256r1") return OID("1.2.840.10045.3.1.7");
if(name == "secp384r1") return OID("1.3.132.0.34");
if(name == "secp521r1") return OID("1.3.132.0.35");
+ if(name == "sm2p256v1") return OID("1.2.156.10197.1.301");
if(name == "x962_p192v2") return OID("1.2.840.10045.3.1.2");
if(name == "x962_p192v3") return OID("1.2.840.10045.3.1.3");
if(name == "x962_p239v1") return OID("1.2.840.10045.3.1.4");