Documentation ¶
Overview ¶
Generated by the generator, DO NOT modify manually
Index ¶
- type CaProfile
- type CaProfileEncoder
- type CaProfileParsingContext
- type ChallengeDataPlain
- type ChallengeDataPlainEncoder
- type ChallengeDataPlainParsingContext
- type ChallengeIntPlain
- type ChallengeIntPlainEncoder
- type ChallengeIntPlainParsingContext
- type CipherMsg
- type CmdNewData
- type CmdNewDataEncoder
- type CmdNewDataParsingContext
- type CmdNewInt
- type CmdNewIntEncoder
- type CmdNewIntParsingContext
- type KeyNode
- type MemTpm
- type Param
- type ParamEncoder
- type ParamParsingContext
- type ProbeInt
- type ProbeIntEncoder
- type ProbeIntParsingContext
- type ProbeRes
- type ProbeResEncoder
- type ProbeResParsingContext
- type SignedBy
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 ParamKey []string `tlv:"0x85"` //+field:natural MaxValidPeriod uint64 `tlv:"0x8B"` //+field:wire CaCert enc.Wire `tlv:"0x89"` }
func ParseCaProfile ¶
func ParseCaProfile(reader enc.ParseReader, ignoreCritical bool) (*CaProfile, error)
type CaProfileEncoder ¶
type CaProfileEncoder struct { CaPrefix_length uint ParamKey_subencoder []struct { } CaCert_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 ChallengeDataPlain ¶
type ChallengeDataPlain struct { //+field:natural Status uint64 `tlv:"0x9B"` //+field:natural:optional ChalStatus *uint64 `tlv:"0xA3"` //+field:natural:optional RemainTries *uint64 `tlv:"0xA5"` //+field:natural:optional RemainTime *uint64 `tlv:"0xA7"` //+field:name CertName enc.Name `tlv:"0xA9"` //+field:name ForwardingHint enc.Name `tlv:"0x1e"` //+field:sequence:*Param:struct:Param Params []*Param `tlv:"0xC1"` }
func ParseChallengeDataPlain ¶
func ParseChallengeDataPlain(reader enc.ParseReader, ignoreCritical bool) (*ChallengeDataPlain, error)
func (*ChallengeDataPlain) Bytes ¶
func (value *ChallengeDataPlain) Bytes() []byte
func (*ChallengeDataPlain) Encode ¶
func (value *ChallengeDataPlain) Encode() enc.Wire
type ChallengeDataPlainEncoder ¶
type ChallengeDataPlainEncoder struct { CertName_length uint ForwardingHint_length uint Params_subencoder []struct { Params_encoder ParamEncoder } // contains filtered or unexported fields }
func (*ChallengeDataPlainEncoder) Encode ¶
func (encoder *ChallengeDataPlainEncoder) Encode(value *ChallengeDataPlain) enc.Wire
func (*ChallengeDataPlainEncoder) EncodeInto ¶
func (encoder *ChallengeDataPlainEncoder) EncodeInto(value *ChallengeDataPlain, buf []byte)
func (*ChallengeDataPlainEncoder) Init ¶
func (encoder *ChallengeDataPlainEncoder) Init(value *ChallengeDataPlain)
type ChallengeDataPlainParsingContext ¶
type ChallengeDataPlainParsingContext struct {
Params_context ParamParsingContext
}
func (*ChallengeDataPlainParsingContext) Init ¶
func (context *ChallengeDataPlainParsingContext) Init()
func (*ChallengeDataPlainParsingContext) Parse ¶
func (context *ChallengeDataPlainParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ChallengeDataPlain, error)
type ChallengeIntPlain ¶
type ChallengeIntPlain struct { //+field:string SelectedChal string `tlv:"0xA1"` //+field:sequence:*Param:struct:Param Params []*Param `tlv:"0xC1"` }
func ParseChallengeIntPlain ¶
func ParseChallengeIntPlain(reader enc.ParseReader, ignoreCritical bool) (*ChallengeIntPlain, error)
func (*ChallengeIntPlain) Bytes ¶
func (value *ChallengeIntPlain) Bytes() []byte
func (*ChallengeIntPlain) Encode ¶
func (value *ChallengeIntPlain) Encode() enc.Wire
type ChallengeIntPlainEncoder ¶
type ChallengeIntPlainEncoder struct { Params_subencoder []struct { Params_encoder ParamEncoder } // contains filtered or unexported fields }
func (*ChallengeIntPlainEncoder) Encode ¶
func (encoder *ChallengeIntPlainEncoder) Encode(value *ChallengeIntPlain) enc.Wire
func (*ChallengeIntPlainEncoder) EncodeInto ¶
func (encoder *ChallengeIntPlainEncoder) EncodeInto(value *ChallengeIntPlain, buf []byte)
func (*ChallengeIntPlainEncoder) Init ¶
func (encoder *ChallengeIntPlainEncoder) Init(value *ChallengeIntPlain)
type ChallengeIntPlainParsingContext ¶
type ChallengeIntPlainParsingContext struct {
Params_context ParamParsingContext
}
func (*ChallengeIntPlainParsingContext) Init ¶
func (context *ChallengeIntPlainParsingContext) Init()
func (*ChallengeIntPlainParsingContext) Parse ¶
func (context *ChallengeIntPlainParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ChallengeIntPlain, error)
type CmdNewData ¶
type CmdNewData struct { //+field:binary EcdhPub []byte `tlv:"0x91"` //+field:binary Salt []byte `tlv:"0x95"` //+field:binary ReqId []byte `tlv:"0x97"` //+field:sequence:string:string Challenge []string `tlv:"0x99"` }
func ParseCmdNewData ¶
func ParseCmdNewData(reader enc.ParseReader, ignoreCritical bool) (*CmdNewData, error)
func (*CmdNewData) Bytes ¶
func (value *CmdNewData) Bytes() []byte
func (*CmdNewData) Encode ¶
func (value *CmdNewData) Encode() enc.Wire
type CmdNewDataEncoder ¶
type CmdNewDataEncoder struct { Challenge_subencoder []struct { } // contains filtered or unexported fields }
func (*CmdNewDataEncoder) Encode ¶
func (encoder *CmdNewDataEncoder) Encode(value *CmdNewData) enc.Wire
func (*CmdNewDataEncoder) EncodeInto ¶
func (encoder *CmdNewDataEncoder) EncodeInto(value *CmdNewData, buf []byte)
func (*CmdNewDataEncoder) Init ¶
func (encoder *CmdNewDataEncoder) Init(value *CmdNewData)
type CmdNewDataParsingContext ¶
type CmdNewDataParsingContext struct { }
func (*CmdNewDataParsingContext) Init ¶
func (context *CmdNewDataParsingContext) Init()
func (*CmdNewDataParsingContext) Parse ¶
func (context *CmdNewDataParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CmdNewData, error)
type CmdNewInt ¶
type CmdNewInt struct { //+field:binary EcdhPub []byte `tlv:"0x91"` //+field:binary CertReq []byte `tlv:"0x93"` }
func ParseCmdNewInt ¶
func ParseCmdNewInt(reader enc.ParseReader, ignoreCritical bool) (*CmdNewInt, error)
type CmdNewIntEncoder ¶
type CmdNewIntEncoder struct {
// contains filtered or unexported fields
}
func (*CmdNewIntEncoder) Encode ¶
func (encoder *CmdNewIntEncoder) Encode(value *CmdNewInt) enc.Wire
func (*CmdNewIntEncoder) EncodeInto ¶
func (encoder *CmdNewIntEncoder) EncodeInto(value *CmdNewInt, buf []byte)
func (*CmdNewIntEncoder) Init ¶
func (encoder *CmdNewIntEncoder) Init(value *CmdNewInt)
type CmdNewIntParsingContext ¶
type CmdNewIntParsingContext struct { }
func (*CmdNewIntParsingContext) Init ¶
func (context *CmdNewIntParsingContext) Init()
func (*CmdNewIntParsingContext) Parse ¶
func (context *CmdNewIntParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*CmdNewInt, error)
type Param ¶
type Param struct { //+field:string ParamKey string `tlv:"0x85"` //+field:binary ParamValue []byte `tlv:"0x87"` }
The original definition in the spec cannot be organized into a struct So I modified it
func ParseParam ¶
func ParseParam(reader enc.ParseReader, ignoreCritical bool) (*Param, error)
type ParamEncoder ¶
type ParamEncoder struct {
// contains filtered or unexported fields
}
func (*ParamEncoder) EncodeInto ¶
func (encoder *ParamEncoder) EncodeInto(value *Param, buf []byte)
func (*ParamEncoder) Init ¶
func (encoder *ParamEncoder) Init(value *Param)
type ParamParsingContext ¶
type ParamParsingContext struct { }
func (*ParamParsingContext) Init ¶
func (context *ParamParsingContext) Init()
func (*ParamParsingContext) Parse ¶
func (context *ParamParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Param, error)
type ProbeInt ¶
type ProbeInt struct { //+field:sequence:*Param:struct:Param Params []*Param `tlv:"0xC1"` }
func ParseProbeInt ¶
func ParseProbeInt(reader enc.ParseReader, ignoreCritical bool) (*ProbeInt, error)
type ProbeIntEncoder ¶
type ProbeIntEncoder struct { Params_subencoder []struct { Params_encoder ParamEncoder } // contains filtered or unexported fields }
func (*ProbeIntEncoder) EncodeInto ¶
func (encoder *ProbeIntEncoder) EncodeInto(value *ProbeInt, buf []byte)
func (*ProbeIntEncoder) Init ¶
func (encoder *ProbeIntEncoder) Init(value *ProbeInt)
type ProbeIntParsingContext ¶
type ProbeIntParsingContext struct {
Params_context ParamParsingContext
}
func (*ProbeIntParsingContext) Init ¶
func (context *ProbeIntParsingContext) Init()
func (*ProbeIntParsingContext) Parse ¶
func (context *ProbeIntParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ProbeInt, error)
type ProbeRes ¶
type ProbeRes struct { //+field:name Response enc.Name `tlv:"0x8D"` //+field:natural:optional MaxSuffixLength *uint64 }
func ParseProbeRes ¶
func ParseProbeRes(reader enc.ParseReader, ignoreCritical bool) (*ProbeRes, error)
type ProbeResEncoder ¶
type ProbeResEncoder struct { Response_length uint // contains filtered or unexported fields }
func (*ProbeResEncoder) EncodeInto ¶
func (encoder *ProbeResEncoder) EncodeInto(value *ProbeRes, buf []byte)
func (*ProbeResEncoder) Init ¶
func (encoder *ProbeResEncoder) Init(value *ProbeRes)
type ProbeResParsingContext ¶
type ProbeResParsingContext struct { }
func (*ProbeResParsingContext) Init ¶
func (context *ProbeResParsingContext) Init()
func (*ProbeResParsingContext) Parse ¶
func (context *ProbeResParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*ProbeRes, error)
Click to show internal directories.
Click to hide internal directories.