aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-13 14:05:36 -0400
committerJack Lloyd <[email protected]>2017-09-13 14:05:36 -0400
commit751a3d36bd6072a1e042c8c2c6662fc7ae7535be (patch)
tree4cbddf2bdce9be521fcd8ed4673f61c330b7a462 /src/lib
parent6cae09878e467aa0898863953e4b02f57439fef5 (diff)
parent8da78e708e35810ea35ad9f3bfcf3ff4e1f40063 (diff)
Merge GH #1208 Fix decoding of RFC 5915 ECC keys
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pubkey/ecc_key/ecc_key.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/pubkey/ecc_key/ecc_key.cpp b/src/lib/pubkey/ecc_key/ecc_key.cpp
index ad62f6ae3..7274a3cd9 100644
--- a/src/lib/pubkey/ecc_key/ecc_key.cpp
+++ b/src/lib/pubkey/ecc_key/ecc_key.cpp
@@ -177,9 +177,6 @@ EC_PrivateKey::EC_PrivateKey(const AlgorithmIdentifier& alg_id,
.decode_optional_string(public_key_bits, BIT_STRING, 1, PRIVATE)
.end_cons();
- if(!key_parameters.empty() && key_parameters != alg_id.oid)
- throw Decoding_Error("EC_PrivateKey - inner and outer OIDs did not match");
-
if(public_key_bits.empty())
{
m_public_key = domain().get_base_point() *