diff options
author | Jack Lloyd <[email protected]> | 2017-05-19 12:13:42 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-05-19 12:13:42 -0400 |
commit | b0fbcf8d24fb1c677aad3d2cfdd0c18274493f07 (patch) | |
tree | f3a64f226ef505df925dae82b8d376d418f8f9c7 /src/lib/asn1 | |
parent | b517f47683a6aef6badd97374446ffb7797657d3 (diff) |
Add SM3 OIDs and PKCSv1.5 hash prefix
Diffstat (limited to 'src/lib/asn1')
-rw-r--r-- | src/lib/asn1/oids.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/asn1/oids.cpp b/src/lib/asn1/oids.cpp index eb5101e85..17bfb9f1c 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 2016-11-21 +* This file was automatically generated by ./src/scripts/oids.py on 2017-05-19 * * All manual edits to this file will be lost. Edit the script * then regenerate this source file. @@ -19,6 +19,8 @@ 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.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"; if(oid_str == "1.2.410.200004.1.100.4.3") return "ECKCDSA/EMSA1(SHA-1)"; if(oid_str == "1.2.410.200004.1.100.4.4") return "ECKCDSA/EMSA1(SHA-224)"; @@ -309,6 +311,7 @@ OID lookup(const std::string& name) if(name == "RSA/EMSA3(SHA-3(512))") return OID("2.16.840.1.101.3.4.3.16"); if(name == "RSA/EMSA3(SHA-384)") return OID("1.2.840.113549.1.1.12"); if(name == "RSA/EMSA3(SHA-512)") return OID("1.2.840.113549.1.1.13"); + if(name == "RSA/EMSA3(SM3)") return OID("1.2.156.10197.1.504"); if(name == "SEED/CBC") return OID("1.2.410.200004.1.4"); if(name == "SHA-160") return OID("1.3.14.3.2.26"); if(name == "SHA-224") return OID("2.16.840.1.101.3.4.2.4"); @@ -322,6 +325,7 @@ 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 == "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"); if(name == "Serpent/OCB") return OID("1.3.6.1.4.1.25258.3.2.4"); |