All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
tpm-key-handle-memory.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
23 #ifndef NDN_TPM_KEY_HANDLE_MEMORY_HPP
24 #define NDN_TPM_KEY_HANDLE_MEMORY_HPP
25 
26 #include "tpm-key-handle.hpp"
27 
28 namespace ndn {
29 
30 class TpmPrivateKey;
31 
37 {
38 public:
43  TpmKeyHandleMemory(const ptr_lib::shared_ptr<TpmPrivateKey>& key);
44 
45 private:
46  virtual Blob
47  doSign
48  (DigestAlgorithm digestAlgorithm, const uint8_t* data, size_t dataLength) const;
49 
50  virtual Blob
51  doDecrypt(const uint8_t* cipherText, size_t cipherTextLength) const;
52 
53  virtual Blob
54  doDerivePublicKey() const;
55 
56  ptr_lib::shared_ptr<TpmPrivateKey> key_;
57 };
58 
59 }
60 
61 #endif
TpmKeyHandle is an abstract base class for a TPM key handle, which provides an interface to perform c...
Definition: tpm-key-handle.hpp:35
TpmKeyHandleMemory extends TpmKeyHandle to implement a TPM key handle that keeps the private key in m...
Definition: tpm-key-handle-memory.hpp:36
A Blob holds a pointer to an immutable byte array implemented as const std::vector<uint8_t>.
Definition: blob.hpp:42
TpmKeyHandleMemory(const ptr_lib::shared_ptr< TpmPrivateKey > &key)
Create a TpmKeyHandleMemory to use the given in-memory key.
Definition: tpm-key-handle-memory.cpp:32