Documentation
¶
Overview ¶
This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
Index ¶
- type Nanotdf
- type Nanotdf_BindingCfg
- type Nanotdf_CipherMode
- type Nanotdf_EccKey
- type Nanotdf_EccMode
- type Nanotdf_EccSignature
- type Nanotdf_EmbeddedPolicy
- type Nanotdf_Header
- type Nanotdf_NtdfSignature
- type Nanotdf_Payload
- type Nanotdf_Policy
- type Nanotdf_RemotePolicy
- type Nanotdf_ResourceLocator
- type Nanotdf_SignatureConfig
- type Nanotdf_UrlProtocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nanotdf ¶
type Nanotdf struct {
Header *Nanotdf_Header
Payload *Nanotdf_Payload
Signature *Nanotdf_NtdfSignature
Length uint64
// contains filtered or unexported fields
}
func NewNanotdf ¶
func NewNanotdf() *Nanotdf
type Nanotdf_BindingCfg ¶
type Nanotdf_BindingCfg struct {
UseEcdsaBinding bool
Padding uint64
BindingBody Nanotdf_EccMode
// contains filtered or unexported fields
}
func NewNanotdf_BindingCfg ¶
func NewNanotdf_BindingCfg() *Nanotdf_BindingCfg
func (*Nanotdf_BindingCfg) Read ¶
func (this *Nanotdf_BindingCfg) Read(io *kaitai.Stream, parent *Nanotdf_Header, root *Nanotdf) (err error)
type Nanotdf_CipherMode ¶
type Nanotdf_CipherMode int
const ( Nanotdf_CipherMode__Aes256gcm64Bit Nanotdf_CipherMode = 0 Nanotdf_CipherMode__Aes256gcm96Bit Nanotdf_CipherMode = 1 Nanotdf_CipherMode__Aes256gcm104Bit Nanotdf_CipherMode = 2 Nanotdf_CipherMode__Aes256gcm112Bit Nanotdf_CipherMode = 3 Nanotdf_CipherMode__Aes256gcm120Bit Nanotdf_CipherMode = 4 Nanotdf_CipherMode__Aes256gcm128Bit Nanotdf_CipherMode = 5 )
type Nanotdf_EccKey ¶
type Nanotdf_EccKey struct {
Key []byte
// contains filtered or unexported fields
}
func NewNanotdf_EccKey ¶
func NewNanotdf_EccKey() *Nanotdf_EccKey
type Nanotdf_EccMode ¶
type Nanotdf_EccMode int
const ( Nanotdf_EccMode__Secp256r1 Nanotdf_EccMode = 0 Nanotdf_EccMode__Secp384r1 Nanotdf_EccMode = 1 Nanotdf_EccMode__Secp521r1 Nanotdf_EccMode = 2 Nanotdf_EccMode__Secp256k1 Nanotdf_EccMode = 3 )
type Nanotdf_EccSignature ¶
type Nanotdf_EccSignature struct {
Value []byte
// contains filtered or unexported fields
}
func NewNanotdf_EccSignature ¶
func NewNanotdf_EccSignature() *Nanotdf_EccSignature
type Nanotdf_EmbeddedPolicy ¶
type Nanotdf_EmbeddedPolicy struct {
Length uint16
Body string
// contains filtered or unexported fields
}
func NewNanotdf_EmbeddedPolicy ¶
func NewNanotdf_EmbeddedPolicy() *Nanotdf_EmbeddedPolicy
func (*Nanotdf_EmbeddedPolicy) Read ¶
func (this *Nanotdf_EmbeddedPolicy) Read(io *kaitai.Stream, parent *Nanotdf_Policy, root *Nanotdf) (err error)
type Nanotdf_Header ¶
type Nanotdf_Header struct {
Length uint64
Magic []byte
Kas *Nanotdf_ResourceLocator
Binding *Nanotdf_BindingCfg
SigCfg *Nanotdf_SignatureConfig
Policy *Nanotdf_Policy
EphemeralPublicKey *Nanotdf_EccKey
// contains filtered or unexported fields
}
func NewNanotdf_Header ¶
func NewNanotdf_Header() *Nanotdf_Header
type Nanotdf_NtdfSignature ¶
type Nanotdf_NtdfSignature struct {
ClientKey *Nanotdf_EccKey
ClientSignature *Nanotdf_EccSignature
// contains filtered or unexported fields
}
func NewNanotdf_NtdfSignature ¶
func NewNanotdf_NtdfSignature() *Nanotdf_NtdfSignature
type Nanotdf_Payload ¶
type Nanotdf_Payload struct {
Length uint64
PayloadBody []byte
// contains filtered or unexported fields
}
func NewNanotdf_Payload ¶
func NewNanotdf_Payload() *Nanotdf_Payload
type Nanotdf_Policy ¶
type Nanotdf_Policy struct {
Mode uint8
Body interface{}
Binding *Nanotdf_EccSignature
// contains filtered or unexported fields
}
func NewNanotdf_Policy ¶
func NewNanotdf_Policy() *Nanotdf_Policy
func (*Nanotdf_Policy) Read ¶
func (this *Nanotdf_Policy) Read(io *kaitai.Stream, parent *Nanotdf_Header, root *Nanotdf) (err error)
type Nanotdf_RemotePolicy ¶
type Nanotdf_RemotePolicy struct {
Url *Nanotdf_ResourceLocator
// contains filtered or unexported fields
}
func NewNanotdf_RemotePolicy ¶
func NewNanotdf_RemotePolicy() *Nanotdf_RemotePolicy
func (*Nanotdf_RemotePolicy) Read ¶
func (this *Nanotdf_RemotePolicy) Read(io *kaitai.Stream, parent *Nanotdf_Policy, root *Nanotdf) (err error)
type Nanotdf_ResourceLocator ¶
type Nanotdf_ResourceLocator struct {
Protocol Nanotdf_UrlProtocol
Length uint8
Body string
// contains filtered or unexported fields
}
func NewNanotdf_ResourceLocator ¶
func NewNanotdf_ResourceLocator() *Nanotdf_ResourceLocator
type Nanotdf_SignatureConfig ¶
type Nanotdf_SignatureConfig struct {
HasSignature bool
SignatureMode Nanotdf_EccMode
Cipher Nanotdf_CipherMode
// contains filtered or unexported fields
}
func NewNanotdf_SignatureConfig ¶
func NewNanotdf_SignatureConfig() *Nanotdf_SignatureConfig
func (*Nanotdf_SignatureConfig) Read ¶
func (this *Nanotdf_SignatureConfig) Read(io *kaitai.Stream, parent *Nanotdf_Header, root *Nanotdf) (err error)
type Nanotdf_UrlProtocol ¶
type Nanotdf_UrlProtocol int
const ( Nanotdf_UrlProtocol__Http Nanotdf_UrlProtocol = 0 Nanotdf_UrlProtocol__Https Nanotdf_UrlProtocol = 1 )
Click to show internal directories.
Click to hide internal directories.