28 :
Error(
"Expecting "s + expectedType +
" element, but TLV has type " +
to_string(actualType))
37 return os <<
"DigestSha256";
39 return os <<
"SignatureSha256WithRsa";
41 return os <<
"SignatureSha256WithEcdsa";
43 return os <<
"SignatureHmacWithSha256";
45 return os <<
"NullSignature";
47 return os <<
"Unknown(" <<
static_cast<uint32_t
>(st) <<
')';
63 return os <<
"Manifest";
65 return os <<
"PrefixAnn";
73 else if (ct >= 9000 && ct <= 9999) {
74 os <<
"Experimental(";
79 return os << static_cast<uint32_t>(ct) <<
')';
represents an error in TLV encoding or decoding
Error(const char *expectedType, uint32_t actualType)
std::string to_string(const errinfo_stacktrace &x)
ContentTypeValue
ContentType values.
@ ContentType_Key
public key, certificate
@ ContentType_Link
another name that identifies the actual data content
@ ContentType_Blob
payload
@ ContentType_Flic
File-Like ICN Collection.
@ ContentType_PrefixAnn
prefix announcement
@ ContentType_Nack
application-level nack
std::ostream & operator<<(std::ostream &os, SignatureTypeValue st)
SignatureTypeValue
SignatureType values.
@ SignatureHmacWithSha256
@ SignatureSha256WithEcdsa