esp8266ndn
NDN Arduino library for ESP8266 and more
|
Functions | |
Component | getKeyComponent () |
Return 'KEY' component. | |
Component | getIssuerDefault () |
Return 'NDNph' component as default issuerId. | |
Component | getIssuerSelf () |
Return 'self' component as self-signed issuerId. | |
bool | isKeyName (const Name &name) |
Determine if the input is a key name. | |
bool | isCertName (const Name &name) |
Determine if the input is a certificate name. | |
Name | toSubjectName (Region ®ion, const Name &input, bool mustCopy=false) |
Convert to subject name. | |
Name | toKeyName (Region ®ion, const Name &input, bool mustCopy=false) |
Convert to key name. | |
Name | toCertName (Region ®ion, const Name &input, bool mustCopy=false) |
Convert to certificate name. | |
Name | makeKeyName (Region ®ion, const Name &input, const Component &keyId) |
Construct key name with specified keyId. | |
Name | makeCertName (Region ®ion, const Name &input, const Component &issuerId, const Component &version) |
Construct certificate name with specified issuerId and version. | |
Name | makeCertName (Region ®ion, const Name &input, const Component &issuerId, uint64_t version=0) |
Construct certificate name with specified issuerId and version. | |
bool | isCertificate (const Data &data) |
Determine if the Data packet is a certificate. | |
Name | getIssuer (const Data &data) |
ValidityPeriod | getValidity (const Data &data) |
|
inline |
Return 'NDNph' component as default issuerId.
|
inline |
Return 'self' component as self-signed issuerId.
|
inline |
Return 'KEY' component.
|
inline |
|
inline |
Determine if the Data packet is a certificate.
|
inline |
Determine if the input is a certificate name.
|
inline |
Determine if the input is a key name.
|
inline |
Construct certificate name with specified issuerId and version.
region | where to allocate memory. |
input | subject name, key name, or certificate name; only key name is taken. |
issuerId | specified issuerId. |
version | specified version. |
|
inline |
Construct certificate name with specified issuerId and version.
region | where to allocate memory. |
input | subject name, key name, or certificate name; only key name is taken. |
issuerId | specified issuerId. |
version | version number; default is current Unix timestamp or a random number. |
|
inline |
Construct key name with specified keyId.
region | where to allocate memory. |
input | subject name, key name, or certificate name; only subject name is taken. |
keyId | specified keyId. |
|
inline |
Convert to certificate name.
region | where to allocate memory if needed. |
input | subject name, key name, or certificate name. |
mustCopy | if true, the returned name is always copied and does not reference input; otherwise, the returned name may reference input name. |
input
does not contain keyId component, it is randomly generated. If input
does not contain issuerId component, it is set to 'NDNph'. If input
does not contain version component, it is set to current timestamp.
|
inline |
Convert to key name.
region | where to allocate memory if needed. |
input | subject name, key name, or certificate name. |
mustCopy | if true, the returned name is always copied and does not reference input; otherwise, the returned name may reference input name. |
input
does not contain keyId component, it is randomly generated.
|
inline |
Convert to subject name.
region | where to allocate memory if needed. |
input | subject name, key name, or certificate name. |
mustCopy | if true, the returned name is always copied and does not reference input; otherwise, the returned name may reference input name. |