22 #ifndef NDN_CXX_SECURITY_TRANSFORM_PUBLIC_KEY_HPP 23 #define NDN_CXX_SECURITY_TRANSFORM_PUBLIC_KEY_HPP 25 #include "../security-common.hpp" 26 #include "../../encoding/buffer.hpp" 38 class Error :
public std::runtime_error
43 :
std::runtime_error(what)
68 loadPkcs8(
const uint8_t* buf,
size_t size);
106 encrypt(
const uint8_t* plainText,
size_t plainLen)
const;
124 rsaEncrypt(
const uint8_t* plainText,
size_t plainLen)
const;
128 const unique_ptr<Impl> m_impl;
135 #endif // NDN_CXX_SECURITY_TRANSFORM_PUBLIC_KEY_HPP Copyright (c) 2013-2017 Regents of the University of California.
KeyType
The type of a cryptographic key.
shared_ptr< const Buffer > ConstBufferPtr