Key: in setKeyData, just support const Blob& since the Blob constructor makes the necessary conversions.
diff --git a/include/ndn-cpp/key.hpp b/include/ndn-cpp/key.hpp
index 83230f6..6350a32 100644
--- a/include/ndn-cpp/key.hpp
+++ b/include/ndn-cpp/key.hpp
@@ -66,23 +66,9 @@
void
setType(ndn_KeyLocatorType type) { type_ = type; }
-
+
void
- setKeyData(const std::vector<uint8_t>& keyData) { keyData_ = keyData; }
-
- void
- setKeyData(const uint8_t *keyData, size_t keyDataLength)
- {
- keyData_ = Blob(keyData, keyDataLength);
- }
-
- /**
- * Set keyData to point to an existing byte array. IMPORTANT: After calling this,
- * if you keep a pointer to the array then you must treat the array as immutable and promise not to change it.
- * @param keyData A pointer to a vector with the byte array. This takes another reference and does not copy the bytes.
- */
- void
- setKeyData(const ptr_lib::shared_ptr<std::vector<uint8_t> > &keyData) { keyData_ = keyData; }
+ setKeyData(const Blob& keyData) { keyData_ = keyData; }
void setKeyName(const Name &keyName) { keyName_ = keyName; }