diff options
author | Jack Lloyd <[email protected]> | 2018-03-04 22:17:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-04 22:17:38 -0500 |
commit | a7d664192a7dce877225e6fbe35c3ad4a1d3cceb (patch) | |
tree | b09c2db1d6dd1ffa6791c4120baea034607f0248 /src/lib/pubkey | |
parent | 8fe96b9384017b6d0f496c02c367e66ae6617a17 (diff) |
Support decoding of ECC groups with seed parameter
Closes GH #874
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/ec_group/ec_group.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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_Data> EC_Group::BER_decode_EC_group(const uint8_t bits[ { BigInt p, a, b, order, cofactor; std::vector<uint8_t> base_pt; + std::vector<uint8_t> seed; BER_Decoder(bits, len) .start_cons(SEQUENCE) @@ -276,6 +277,7 @@ std::shared_ptr<EC_Group_Data> 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) |