21 #ifndef NDN_TLV_0_1_1_WIRE_FORMAT_H
22 #define NDN_TLV_0_1_1_WIRE_FORMAT_H
24 #include <ndn-cpp/c/common.h>
25 #include <ndn-cpp/c/errors.h>
54 ndn_Tlv0_1_1WireFormat_encodeName
55 (
const struct ndn_Name *name,
size_t *signedPortionBeginOffset,
57 size_t *encodingLength);
76 ndn_Tlv0_1_1WireFormat_decodeName
77 (
struct ndn_Name *name,
const uint8_t *input,
size_t inputLength,
78 size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
98 ndn_Tlv0_1_1WireFormat_encodeInterest
99 (
const struct ndn_Interest *interest,
size_t *signedPortionBeginOffset,
101 size_t *encodingLength);
120 ndn_Tlv0_1_1WireFormat_decodeInterest
121 (
struct ndn_Interest *interest,
const uint8_t *input,
size_t inputLength,
122 size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
140 ndn_Tlv0_1_1WireFormat_encodeData
141 (
const struct ndn_Data *data,
size_t *signedPortionBeginOffset,
143 size_t *encodingLength);
159 ndn_Tlv0_1_1WireFormat_decodeData
160 (
struct ndn_Data *data,
const uint8_t *input,
size_t inputLength,
161 size_t *signedPortionBeginOffset,
size_t *signedPortionEndOffset);
173 ndn_Tlv0_1_1WireFormat_encodeControlParameters
187 ndn_Tlv0_1_1WireFormat_decodeControlParameters
201 ndn_Tlv0_1_1WireFormat_encodeSignatureInfo
203 size_t *encodingLength);
216 ndn_Tlv0_1_1WireFormat_encodeSignatureValue
218 size_t *encodingLength);
231 ndn_Tlv0_1_1WireFormat_decodeSignatureInfoAndValue
232 (
struct ndn_Signature *signature,
const uint8_t *signatureInfo,
233 size_t signatureInfoLength,
const uint8_t *signatureValue,
234 size_t signatureValueLength);
Definition: data-types.h:74
An ndn_Interest holds an ndn_Name and other fields for an interest.
Definition: interest-types.h:61
A struct ndn_DynamicUInt8Array holds a pointer to an allocated array, the length of the allocated arr...
Definition: dynamic-uint8-array-types.h:40
An ndn_Name holds an array of ndn_NameComponent.
Definition: name-types.h:40
An ndn_ControlParameters holds fields for a ControlParameters which is used in the command interest s...
Definition: control-parameters-types.h:42
An ndn_Signature struct holds the signature bits and other info representing the signature in a data ...
Definition: data-types.h:58