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 <<
"Unknown(" <<
static_cast<uint32_t
>(st) <<
')';
61 return os <<
"Manifest";
63 return os <<
"PrefixAnn";
68 if (ct >= 6 && ct <= 1023) {
71 else if (ct >= 9000 && ct <= 9999) {
72 os <<
"Experimental(";
77 return os << static_cast<uint32_t>(ct) <<
')';
Represents a signature of Sha256WithRsa type.
std::ostream & operator<<(std::ostream &os, SignatureTypeValue st)
Represents a signature of DigestSha256 type.
File-Like ICN Collection.
another name that identifies the actual data content
Represents a signature of Sha256WithEcdsa type.
ContentTypeValue
ContentType values.
SignatureTypeValue
SignatureType values.
std::string to_string(const V &v)
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding