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 <<
"SignatureEd25519";
47 return os <<
"NullSignature";
49 return os <<
"Unknown(" <<
static_cast<uint32_t
>(st) <<
')';
65 return os <<
"Manifest";
67 return os <<
"PrefixAnn";
75 else if (ct >= 9000 && ct <= 9999) {
76 os <<
"Experimental(";
81 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