diff options
author | Jack Lloyd <[email protected]> | 2017-12-19 14:19:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-19 14:19:32 -0500 |
commit | 1d728d6192a909e150bf2d9f89c1efbd70f51512 (patch) | |
tree | b944364910370dcd3f0a631a2d5a0d43dbd0b1ef /src/tests/unit_ecdsa.cpp | |
parent | 4ad5acf4e038f5dd296b0ac82922a1f2e3880324 (diff) | |
parent | f19ab7155d746fde5ce8b811576abb5a6ee0ff28 (diff) |
Merge GH #1365 Always set domain encoding correctly when loading an ECC key
Diffstat (limited to 'src/tests/unit_ecdsa.cpp')
-rw-r--r-- | src/tests/unit_ecdsa.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/unit_ecdsa.cpp b/src/tests/unit_ecdsa.cpp index 7ca2ff042..b4bafd7e4 100644 --- a/src/tests/unit_ecdsa.cpp +++ b/src/tests/unit_ecdsa.cpp @@ -216,6 +216,8 @@ Test::Result test_ecdsa_create_save_load() std::unique_ptr<Botan::Private_Key> loaded_key(Botan::PKCS8::load_key(pem_src, Test::rng())); Botan::ECDSA_PrivateKey* loaded_ec_key = dynamic_cast<Botan::ECDSA_PrivateKey*>(loaded_key.get()); result.confirm("the loaded key could be converted into an ECDSA_PrivateKey", loaded_ec_key); + result.confirm("the loaded key produces equal encoding", + (ecc_private_key_pem == Botan::PKCS8::PEM_encode(*loaded_ec_key))); if(loaded_ec_key) { |