security: Adding supports to signed interest
refs: #1161
Change-Id: I042381b171d44417f296397d872cd639935a89e9
diff --git a/src/security/verifier.hpp b/src/security/verifier.hpp
index 07c1494..a9bded4 100644
--- a/src/security/verifier.hpp
+++ b/src/security/verifier.hpp
@@ -83,10 +83,13 @@
/*****************************************
* verifySignature method set *
*****************************************/
- static bool
+ static bool
verifySignature(const Data &data, const Signature &sig, const PublicKey &publicKey);
static bool
+ verifySignature(const Interest &interest, const PublicKey &publicKey);
+
+ static bool
verifySignature(const Buffer &data, const Signature &sig, const PublicKey &publicKey);
static bool
@@ -94,6 +97,10 @@
static bool
verifySignature(const Buffer &data, const SignatureSha256WithRsa &sig, const PublicKey &publicKey);
+
+ static bool
+ verifySignature(const uint8_t* buf, const size_t size, const SignatureSha256WithRsa &sig, const PublicKey &publicKey);
+
public:
static const ptr_lib::shared_ptr<SecPolicy> DefaultPolicy;