encrypt-key.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
23 #ifndef NDN_ENCRYPT_KEY_HPP
24 #define NDN_ENCRYPT_KEY_HPP
25 
26 #include "../util/blob.hpp"
27 
28 namespace ndn {
29 
34 class EncryptKey {
35 public:
40  EncryptKey(const Blob& keyBits)
41  : keyBits_(keyBits)
42  {}
43 
48  const Blob&
49  getKeyBits() const { return keyBits_; }
50 
51 private:
52  Blob keyBits_;
53 };
54 
55 }
56 
57 #endif
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:36
An EncryptKey supplies the key for encrypt.
Definition: encrypt-key.hpp:34
const Blob & getKeyBits() const
Get the key value.
Definition: encrypt-key.hpp:49
A Blob holds a pointer to an immutable byte array implemented as const std::vector.
Definition: blob.hpp:42
EncryptKey(const Blob &keyBits)
Create an EncryptKey with the given key value.
Definition: encrypt-key.hpp:40