codegen

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause-Clear Imports: 2 Imported by: 0

Documentation

Overview

This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild

Index

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

func (*Nanotdf) Read

func (this *Nanotdf) Read(io *kaitai.Stream, parent interface{}, root *Nanotdf) (err error)

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

func (*Nanotdf_EccKey) Read

func (this *Nanotdf_EccKey) Read(io *kaitai.Stream, parent interface{}, root *Nanotdf) (err error)

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

func (*Nanotdf_EccSignature) Read

func (this *Nanotdf_EccSignature) Read(io *kaitai.Stream, parent interface{}, root *Nanotdf) (err error)

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

func (*Nanotdf_Header) Read

func (this *Nanotdf_Header) Read(io *kaitai.Stream, parent *Nanotdf, root *Nanotdf) (err error)

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

func (*Nanotdf_NtdfSignature) Read

func (this *Nanotdf_NtdfSignature) Read(io *kaitai.Stream, parent *Nanotdf, root *Nanotdf) (err error)

type Nanotdf_Payload

type Nanotdf_Payload struct {
	Length      uint64
	PayloadBody []byte
	// contains filtered or unexported fields
}

func NewNanotdf_Payload

func NewNanotdf_Payload() *Nanotdf_Payload

func (*Nanotdf_Payload) Read

func (this *Nanotdf_Payload) Read(io *kaitai.Stream, parent *Nanotdf, root *Nanotdf) (err error)

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

func (*Nanotdf_ResourceLocator) Read

func (this *Nanotdf_ResourceLocator) Read(io *kaitai.Stream, parent interface{}, root *Nanotdf) (err error)

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
	Nanotdf_UrlProtocol__Shared Nanotdf_UrlProtocol = 255
)

Jump to

Keyboard shortcuts

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