Documentation
¶
Overview ¶
Code generated by ndn tlv codegen DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T1 ¶
type T1 struct {
//+field:natural
H1 uint64 `tlv:"0x01"`
//+field:natural:optional
H2 optional.Optional[uint64] `tlv:"0x02"`
//+field:wire
C enc.Wire `tlv:"0x03"`
//+field:signature:sigCoverStart:sigCovered
Sig enc.Wire `tlv:"0x04"`
//+field:natural:optional
H3 optional.Optional[uint64] `tlv:"0x06"`
// contains filtered or unexported fields
}
+tlv-model:nocopy,private,ordered
type T1Encoder ¶
type T1Encoder struct {
Length uint
C_length uint
Sig_wireIdx int
Sig_estLen uint
// contains filtered or unexported fields
}
func (*T1Encoder) Encode ¶
Encodes a T1 value into a structured byte slice layout defined by the encoder's wire plan, returning a segmented wire representation.
func (*T1Encoder) EncodeInto ¶
Encodes a T1 data structure into a wire format, handling required/optional fields, sequences of elements, and signature coverage tracking for cryptographic operations.
type T1ParsingContext ¶
type T1ParsingContext struct {
// contains filtered or unexported fields
}
func (*T1ParsingContext) Init ¶
func (context *T1ParsingContext) Init()
Initializes the `sigCovered` field as an empty byte slice to store signature-covered data during parsing.
type T2 ¶
type T2 struct {
//+field:interestName:sigCovered
Name enc.Name `tlv:"0x01"`
//+field:wire
C enc.Wire `tlv:"0x03"`
//+field:signature:sigCoverStart:sigCovered
Sig enc.Wire `tlv:"0x04"`
// contains filtered or unexported fields
}
+tlv-model:nocopy,private,ordered
type T2Encoder ¶
type T2Encoder struct {
Length uint
Name_length uint
Name_needDigest bool
Name_wireIdx int
Name_pos uint
C_length uint
Sig_wireIdx int
Sig_estLen uint
// contains filtered or unexported fields
}
func (*T2Encoder) Encode ¶
Encodes a T2 value into a byte buffer partitioned according to the encoder's wire plan and returns the resulting wire segments.
func (*T2Encoder) EncodeInto ¶
Encodes a T2 data structure into NDN wire format, handling signature coverage tracking for Name, Content, and Signature fields while managing wire buffer indices and positions for subsequent signing/digest computation.
type T2ParsingContext ¶
type T2ParsingContext struct {
Name_wireIdx int
Name_pos uint
// contains filtered or unexported fields
}
func (*T2ParsingContext) Init ¶
func (context *T2ParsingContext) Init()
Initializes the parsing context by resetting the signature-covered data to an empty encoded structure.