security: Export/Import Identity from/into KeyChain
Change-Id: I757f51f1408cf08b9fb1b1927834889fd29c0231
diff --git a/src/security/sec-tpm-file.hpp b/src/security/sec-tpm-file.hpp
index 7a92ec1..f1e6fa8 100644
--- a/src/security/sec-tpm-file.hpp
+++ b/src/security/sec-tpm-file.hpp
@@ -106,15 +106,22 @@
virtual bool
doesKeyExistInTpm(const Name& keyName, KeyClass keyClass);
- std::string
- nameTransform(const std::string &keyName, const std::string &extension);
virtual bool
generateRandomBlock(uint8_t* res, size_t size);
-private:
- void
- maintainMapping(std::string str1, std::string str2);
+protected:
+ /******************************
+ * From TrustedPlatformModule *
+ ******************************/
+ virtual ConstBufferPtr
+ exportPrivateKeyPkcs1FromTpm(const Name& keyName);
+
+ virtual bool
+ importPrivateKeyPkcs1IntoTpm(const Name& keyName, const uint8_t* buf, size_t size);
+ virtual bool
+ importPublicKeyPkcs1IntoTpm(const Name& keyName, const uint8_t* buf, size_t size);
+
private:
class Impl;
shared_ptr<Impl> m_impl;