esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
ndnph::ec::detail Namespace Reference

Classes

struct  StoredKeyPair
 Key pair stored in KeyChain. More...
 

Typedefs

using PvtLen = port::Ec::Curve::PvtLen
 
using PubLen = port::Ec::Curve::PubLen
 

Functions

tlv::Value getSpkiHeader ()
 Return EC P-256 SPKI except the key. More...
 
tlv::Value getOid ()
 Return '1.2.840.10045.2.1 ecPublicKey' OID bytes. More...
 
const uint8_t * findPublicKeyInCertificate (const Data &data)
 Extract raw public key from a certificate. More...
 
bool generate (Region &region, const Name &name, EcPrivateKey &pvt, EcPublicKey &pub, KeyChain *keyChain, const char *id)
 

Typedef Documentation

◆ PubLen

using ndnph::ec::detail::PubLen = typedef port::Ec::Curve::PubLen

◆ PvtLen

using ndnph::ec::detail::PvtLen = typedef port::Ec::Curve::PvtLen

Function Documentation

◆ findPublicKeyInCertificate()

const uint8_t* ndnph::ec::detail::findPublicKeyInCertificate ( const Data data)
inline

Extract raw public key from a certificate.

Returns
pointer to the raw key, or nullptr on failure.

◆ generate()

bool ndnph::ec::detail::generate ( Region region,
const Name name,
EcPrivateKey pvt,
EcPublicKey pub,
KeyChain keyChain,
const char *  id 
)
inline

◆ getOid()

tlv::Value ndnph::ec::detail::getOid ( )
inline

Return '1.2.840.10045.2.1 ecPublicKey' OID bytes.

◆ getSpkiHeader()

tlv::Value ndnph::ec::detail::getSpkiHeader ( )
inline

Return EC P-256 SPKI except the key.