security: Support ECDSA verification in all related classes.
This commit also addresses some old issues, such as "using namespace std".
Change-Id: I62b8ff97fb2b6f6cfe04b0ad5866bc0797e6e43b
Refs: #1660
diff --git a/src/signature.hpp b/src/signature.hpp
index 3546c4c..f7853dd 100644
--- a/src/signature.hpp
+++ b/src/signature.hpp
@@ -42,6 +42,7 @@
}
};
+ /// @deprecated use Tlv::SignatureTypeValue instead.
enum {
Sha256 = Tlv::DigestSha256,
Sha256WithRsa = Tlv::SignatureSha256WithRsa,
@@ -53,6 +54,7 @@
{
}
+ explicit
Signature(const Block& info, const Block& value = Block())
: m_value(value)
{