esp8266ndn
NDN Arduino library for ESP8266 and more
|
Validation policy for SigInfo fields in signed Interest. More...
#include <sig-info.hpp>
Public Member Functions | |
Policy (const R0 &r0=R0(), const R1 &r1=R1(), const R2 &r2=R2()) | |
bool | create (Region ®ion, ISigInfo &si) |
Assign SigInfo extension fields. More... | |
bool | check (const ISigInfo &si) |
Check that SigInfo fields fulfill current policy. More... | |
Validation policy for SigInfo fields in signed Interest.
The Policy instance internally keeps state. Therefore, each Policy instance can be used either for signing outgoing packets, or for verifying incoming packets signed by one public key. Separate Policy instances should be used for different public keys.
|
inlineexplicit |
|
inline |
Check that SigInfo fields fulfill current policy.
|
inline |
Assign SigInfo extension fields.
region | where to allocate memory for encoding extension fields. |
si | SigInfo to receive extension fields. Existing extensions will be overwritten. |