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

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.
 
tlv::Value getOid ()
 Return '1.2.840.10045.2.1 ecPublicKey' OID bytes.
 
const uint8_t * findPublicKeyInCertificate (const Data &data)
 Extract raw public key from a certificate.
 

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.

◆ 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.