|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
22 #ifndef NDN_CXX_SECURITY_TRANSFORM_PRIVATE_KEY_HPP
23 #define NDN_CXX_SECURITY_TRANSFORM_PRIVATE_KEY_HPP
41 class Error :
public std::runtime_error
44 using std::runtime_error::runtime_error;
124 loadPkcs8(
const uint8_t*
buf,
size_t size,
const char* pw,
size_t pwLen);
140 loadPkcs8(std::istream& is,
const char* pw,
size_t pwLen);
201 savePkcs8(std::ostream& os,
const char* pw,
size_t pwLen)
const;
239 decrypt(
const uint8_t* cipherText,
size_t cipherLen)
const;
258 toPkcs8(
const char* pw,
size_t pwLen)
const;
264 rsaDecrypt(
const uint8_t* cipherText,
size_t cipherLen)
const;
269 static unique_ptr<PrivateKey>
270 generateRsaKey(uint32_t keySize);
272 static unique_ptr<PrivateKey>
273 generateEcKey(uint32_t keySize);
275 static unique_ptr<PrivateKey>
276 generateHmacKey(uint32_t keySize);
280 const unique_ptr<Impl> m_impl;
291 unique_ptr<PrivateKey>
298 #endif // NDN_CXX_SECURITY_TRANSFORM_PRIVATE_KEY_HPP
KeyType
The type of a cryptographic key.
Base class for key parameters.
shared_ptr< const Buffer > ConstBufferPtr
Copyright (c) 2011-2015 Regents of the University of California.