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) <<
')';
std::ostream & operator<<(std::ostream &os, SignatureTypeValue st)
std::string to_string(const T &val)
File-Like ICN Collection.
another name that identifies the actual data content
ContentTypeValue
ContentType values.
SignatureTypeValue
SignatureType values.
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding