esp8266ndn
NDN Arduino library for ESP8266 and more
|
Namespaces | |
detail | |
Classes | |
class | EcPublicKey |
EC public key. More... | |
class | EcPrivateKey |
EC private key. More... | |
Functions | |
bool | generateRaw (uint8_t pvt[EcPrivateKey::KeyLen::value], uint8_t pub[EcPublicKey::KeyLen::value]) |
Generate key pair in raw format. More... | |
bool | generate (Region ®ion, const Name &name, EcPrivateKey &pvt, EcPublicKey &pub) |
Generate key pair. More... | |
bool | generate (Region ®ion, const Name &name, EcPrivateKey &pvt, EcPublicKey &pub, KeyChain &keyChain, const char *id) |
Generate key pair and save in KeyChain. More... | |
bool | load (KeyChain &keyChain, const char *id, Region ®ion, EcPrivateKey &pvt, EcPublicKey &pub) |
Load key pair from KeyChain. More... | |
bool | isCertificate (const Data &data) |
Determine if the Data packet is a certificate that contains an EC public key. More... | |
|
inline |
Generate key pair.
region | where to allocate key name. | |
name | subject name or key name; can be released afterwards. | |
[out] | pvt | the private key. |
[out] | pub | the public key. |
|
inline |
Generate key pair and save in KeyChain.
region | where to allocate key name. | |
name | subject name or key name; can be released afterwards. | |
[out] | pvt | the private key. |
[out] | pub | the public key. |
keyChain | where to save the key pair. | |
id | id within keyChain . |
|
inline |
Generate key pair in raw format.
|
inline |
Determine if the Data packet is a certificate that contains an EC public key.
It is unnecessary to call this function before EcPublicKey::import().
|
inline |
Load key pair from KeyChain.