From a7d664192a7dce877225e6fbe35c3ad4a1d3cceb Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 4 Mar 2018 22:17:38 -0500 Subject: Support decoding of ECC groups with seed parameter Closes GH #874 --- src/lib/pubkey/ec_group/ec_group.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/pubkey/ec_group/ec_group.cpp') diff --git a/src/lib/pubkey/ec_group/ec_group.cpp b/src/lib/pubkey/ec_group/ec_group.cpp index 6064f869c..9da1cd81f 100644 --- a/src/lib/pubkey/ec_group/ec_group.cpp +++ b/src/lib/pubkey/ec_group/ec_group.cpp @@ -264,6 +264,7 @@ std::shared_ptr EC_Group::BER_decode_EC_group(const uint8_t bits[ { BigInt p, a, b, order, cofactor; std::vector base_pt; + std::vector seed; BER_Decoder(bits, len) .start_cons(SEQUENCE) @@ -276,6 +277,7 @@ std::shared_ptr EC_Group::BER_decode_EC_group(const uint8_t bits[ .start_cons(SEQUENCE) .decode_octet_string_bigint(a) .decode_octet_string_bigint(b) + .decode_optional_string(seed, BIT_STRING, BIT_STRING) .end_cons() .decode(base_pt, OCTET_STRING) .decode(order) -- cgit v1.2.3