ndncert

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Generated by the generator, DO NOT modify manually

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaProfile

type CaProfile struct {
	//+field:name
	CaPrefix enc.Name `tlv:"0x81"`
	//+field:string
	CaInfo string `tlv:"0x83"`
	//+field:sequence:string:string
	ParameterKey []string `tlv:"0x85"`
	//+field:natural
	MaxValidPeriod uint64 `tlv:"0x8B"`
	//+field:wire
	CaCertificate enc.Wire `tlv:"0x89"`
}

func ParseCaProfile

func ParseCaProfile(reader enc.ParseReader, ignoreCritical bool) (*CaProfile, error)

func (*CaProfile) Bytes

func (value *CaProfile) Bytes() []byte

func (*CaProfile) Encode

func (value *CaProfile) Encode() enc.Wire

type CaProfileEncoder

type CaProfileEncoder struct {
	CaPrefix_length uint

	ParameterKey_subencoder []struct {
	}

	CaCertificate_length uint
	// contains filtered or unexported fields
}

func (*CaProfileEncoder) Encode

func (encoder *CaProfileEncoder) Encode(value *CaProfile) enc.Wire

func (*CaProfileEncoder) EncodeInto

func (encoder *CaProfileEncoder) EncodeInto(value *CaProfile, buf []byte)

func (*CaProfileEncoder) Init

func (encoder *CaProfileEncoder) Init(value *CaProfile)

type CaProfileParsingContext

type CaProfileParsingContext struct {
}

func (*CaProfileParsingContext) Init

func (context *CaProfileParsingContext) Init()

func (*CaProfileParsingContext) Parse

func (context *CaProfileParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CaProfile, error)

type CertificateName

type CertificateName struct {
	//+field:name
	Name enc.Name `tlv:"0x07"`
}

func ParseCertificateName

func ParseCertificateName(reader enc.ParseReader, ignoreCritical bool) (*CertificateName, error)

func (*CertificateName) Bytes

func (value *CertificateName) Bytes() []byte

func (*CertificateName) Encode

func (value *CertificateName) Encode() enc.Wire

type CertificateNameEncoder

type CertificateNameEncoder struct {
	Name_length uint
	// contains filtered or unexported fields
}

func (*CertificateNameEncoder) Encode

func (encoder *CertificateNameEncoder) Encode(value *CertificateName) enc.Wire

func (*CertificateNameEncoder) EncodeInto

func (encoder *CertificateNameEncoder) EncodeInto(value *CertificateName, buf []byte)

func (*CertificateNameEncoder) Init

func (encoder *CertificateNameEncoder) Init(value *CertificateName)

type CertificateNameParsingContext

type CertificateNameParsingContext struct {
}

func (*CertificateNameParsingContext) Init

func (context *CertificateNameParsingContext) Init()

func (*CertificateNameParsingContext) Parse

func (context *CertificateNameParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CertificateName, error)

type ChallengeDataPlaintext

type ChallengeDataPlaintext struct {
	//+field:natural
	Status uint64 `tlv:"0x9B"`
	//+field:string:optional
	ChallengeStatus *string `tlv:"0xA3"`
	//+field:struct:CertificateName
	IssuedCertificateName *CertificateName `tlv:"0xA9"`
	//+field:struct:Links
	ForwardingHint *Links `tlv:"0x1e"`
	//+field:natural:optional
	RemainingTries *uint64 `tlv:"0xA5"`
	//+field:natural:optional
	RemainingTime *uint64 `tlv:"0xA7"`
	//+field:map:string:string:0x87:[]byte:binary
	Parameters map[string][]byte `tlv:"0x85"`
}

func ParseChallengeDataPlaintext

func ParseChallengeDataPlaintext(reader enc.ParseReader, ignoreCritical bool) (*ChallengeDataPlaintext, error)

func (*ChallengeDataPlaintext) Bytes

func (value *ChallengeDataPlaintext) Bytes() []byte

func (*ChallengeDataPlaintext) Encode

func (value *ChallengeDataPlaintext) Encode() enc.Wire

type ChallengeDataPlaintextEncoder

type ChallengeDataPlaintextEncoder struct {
	IssuedCertificateName_encoder CertificateNameEncoder
	ForwardingHint_encoder        LinksEncoder

	Parameters_valencoder map[string]*struct {
	}
	// contains filtered or unexported fields
}

func (*ChallengeDataPlaintextEncoder) Encode

func (*ChallengeDataPlaintextEncoder) EncodeInto

func (encoder *ChallengeDataPlaintextEncoder) EncodeInto(value *ChallengeDataPlaintext, buf []byte)

func (*ChallengeDataPlaintextEncoder) Init

type ChallengeDataPlaintextParsingContext

type ChallengeDataPlaintextParsingContext struct {
	IssuedCertificateName_context CertificateNameParsingContext
	ForwardingHint_context        LinksParsingContext
}

func (*ChallengeDataPlaintextParsingContext) Init

func (context *ChallengeDataPlaintextParsingContext) Init()

func (*ChallengeDataPlaintextParsingContext) Parse

func (context *ChallengeDataPlaintextParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ChallengeDataPlaintext, error)

type ChallengeInterestPlaintext

type ChallengeInterestPlaintext struct {
	//+field:string
	SelectedChallenge string `tlv:"0xA1"`
	//+field:map:string:string:0x87:[]byte:binary
	Parameters map[string][]byte `tlv:"0x85"`
}

func ParseChallengeInterestPlaintext

func ParseChallengeInterestPlaintext(reader enc.ParseReader, ignoreCritical bool) (*ChallengeInterestPlaintext, error)

func (*ChallengeInterestPlaintext) Bytes

func (value *ChallengeInterestPlaintext) Bytes() []byte

func (*ChallengeInterestPlaintext) Encode

func (value *ChallengeInterestPlaintext) Encode() enc.Wire

type ChallengeInterestPlaintextEncoder

type ChallengeInterestPlaintextEncoder struct {
	Parameters_valencoder map[string]*struct {
	}
	// contains filtered or unexported fields
}

func (*ChallengeInterestPlaintextEncoder) Encode

func (*ChallengeInterestPlaintextEncoder) EncodeInto

func (encoder *ChallengeInterestPlaintextEncoder) EncodeInto(value *ChallengeInterestPlaintext, buf []byte)

func (*ChallengeInterestPlaintextEncoder) Init

type ChallengeInterestPlaintextParsingContext

type ChallengeInterestPlaintextParsingContext struct {
}

func (*ChallengeInterestPlaintextParsingContext) Init

func (*ChallengeInterestPlaintextParsingContext) Parse

type EncryptedMessage

type EncryptedMessage struct {
	//+field:binary
	InitializationVector []byte `tlv:"0x9D"`
	//+field:binary
	AuthenticationTag []byte `tlv:"0xAF"`
	//+field:binary
	EncryptedPayload []byte `tlv:"0x9F"`
}

func ParseEncryptedMessage

func ParseEncryptedMessage(reader enc.ParseReader, ignoreCritical bool) (*EncryptedMessage, error)

func (*EncryptedMessage) Bytes

func (value *EncryptedMessage) Bytes() []byte

func (*EncryptedMessage) Encode

func (value *EncryptedMessage) Encode() enc.Wire

type EncryptedMessageEncoder

type EncryptedMessageEncoder struct {
	// contains filtered or unexported fields
}

func (*EncryptedMessageEncoder) Encode

func (encoder *EncryptedMessageEncoder) Encode(value *EncryptedMessage) enc.Wire

func (*EncryptedMessageEncoder) EncodeInto

func (encoder *EncryptedMessageEncoder) EncodeInto(value *EncryptedMessage, buf []byte)

func (*EncryptedMessageEncoder) Init

func (encoder *EncryptedMessageEncoder) Init(value *EncryptedMessage)

type EncryptedMessageParsingContext

type EncryptedMessageParsingContext struct {
}

func (*EncryptedMessageParsingContext) Init

func (context *EncryptedMessageParsingContext) Init()

func (*EncryptedMessageParsingContext) Parse

func (context *EncryptedMessageParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*EncryptedMessage, error)

type ErrorMessage

type ErrorMessage struct {
	//+field:natural
	ErrorCode uint64 `tlv:"0xAB"`
	//+field:string
	ErrorInfo string `tlv:"0xAD"`
}

func ParseErrorMessage

func ParseErrorMessage(reader enc.ParseReader, ignoreCritical bool) (*ErrorMessage, error)

func (*ErrorMessage) Bytes

func (value *ErrorMessage) Bytes() []byte

func (*ErrorMessage) Encode

func (value *ErrorMessage) Encode() enc.Wire

type ErrorMessageEncoder

type ErrorMessageEncoder struct {
	// contains filtered or unexported fields
}

func (*ErrorMessageEncoder) Encode

func (encoder *ErrorMessageEncoder) Encode(value *ErrorMessage) enc.Wire

func (*ErrorMessageEncoder) EncodeInto

func (encoder *ErrorMessageEncoder) EncodeInto(value *ErrorMessage, buf []byte)

func (*ErrorMessageEncoder) Init

func (encoder *ErrorMessageEncoder) Init(value *ErrorMessage)

type ErrorMessageParsingContext

type ErrorMessageParsingContext struct {
}

func (*ErrorMessageParsingContext) Init

func (context *ErrorMessageParsingContext) Init()

func (*ErrorMessageParsingContext) Parse

func (context *ErrorMessageParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ErrorMessage, error)
type Links struct {
	//+field:sequence:enc.Name:name
	Names []enc.Name `tlv:"0x07"`
}
func ParseLinks(reader enc.ParseReader, ignoreCritical bool) (*Links, error)

func (*Links) Bytes

func (value *Links) Bytes() []byte

func (*Links) Encode

func (value *Links) Encode() enc.Wire

type LinksEncoder

type LinksEncoder struct {
	Names_subencoder []struct {
		Names_length uint
	}
	// contains filtered or unexported fields
}

func (*LinksEncoder) Encode

func (encoder *LinksEncoder) Encode(value *Links) enc.Wire

func (*LinksEncoder) EncodeInto

func (encoder *LinksEncoder) EncodeInto(value *Links, buf []byte)

func (*LinksEncoder) Init

func (encoder *LinksEncoder) Init(value *Links)

type LinksParsingContext

type LinksParsingContext struct {
}

func (*LinksParsingContext) Init

func (context *LinksParsingContext) Init()

func (*LinksParsingContext) Parse

func (context *LinksParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Links, error)

type NewData

type NewData struct {
	//+field:binary
	EcdhPub []byte `tlv:"0x91"`
	//+field:binary
	Salt []byte `tlv:"0x95"`
	//+field:binary
	RequestId []byte `tlv:"0x97"`
	//+field:sequence:string:string
	Challenge []string `tlv:"0x99"`
}

func ParseNewData

func ParseNewData(reader enc.ParseReader, ignoreCritical bool) (*NewData, error)

func (*NewData) Bytes

func (value *NewData) Bytes() []byte

func (*NewData) Encode

func (value *NewData) Encode() enc.Wire

type NewDataEncoder

type NewDataEncoder struct {
	Challenge_subencoder []struct {
	}
	// contains filtered or unexported fields
}

func (*NewDataEncoder) Encode

func (encoder *NewDataEncoder) Encode(value *NewData) enc.Wire

func (*NewDataEncoder) EncodeInto

func (encoder *NewDataEncoder) EncodeInto(value *NewData, buf []byte)

func (*NewDataEncoder) Init

func (encoder *NewDataEncoder) Init(value *NewData)

type NewDataParsingContext

type NewDataParsingContext struct {
}

func (*NewDataParsingContext) Init

func (context *NewDataParsingContext) Init()

func (*NewDataParsingContext) Parse

func (context *NewDataParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NewData, error)

type NewInterestAppParameters

type NewInterestAppParameters struct {
	//+field:binary
	EcdhPub []byte `tlv:"0x91"`
	//+field:binary
	CertRequest []byte `tlv:"0x93"`
}

func ParseNewInterestAppParameters

func ParseNewInterestAppParameters(reader enc.ParseReader, ignoreCritical bool) (*NewInterestAppParameters, error)

func (*NewInterestAppParameters) Bytes

func (value *NewInterestAppParameters) Bytes() []byte

func (*NewInterestAppParameters) Encode

func (value *NewInterestAppParameters) Encode() enc.Wire

type NewInterestAppParametersEncoder

type NewInterestAppParametersEncoder struct {
	// contains filtered or unexported fields
}

func (*NewInterestAppParametersEncoder) Encode

func (*NewInterestAppParametersEncoder) EncodeInto

func (encoder *NewInterestAppParametersEncoder) EncodeInto(value *NewInterestAppParameters, buf []byte)

func (*NewInterestAppParametersEncoder) Init

type NewInterestAppParametersParsingContext

type NewInterestAppParametersParsingContext struct {
}

func (*NewInterestAppParametersParsingContext) Init

func (*NewInterestAppParametersParsingContext) Parse

func (context *NewInterestAppParametersParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*NewInterestAppParameters, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL