context

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	options.Options
	SymAlgMode
	SigCreationTime *values.DateTime
	KeyCreationTime *values.DateTime
}

Context class fir parsing packets

func New added in v0.4.0

func New(o options.Options) *Context

New returns Context instance

type SymAlgMode

type SymAlgMode int

SymAlgMode as Sym. algorithm mode

const (
	//ModeNotSpecified as Not Specified
	ModeNotSpecified SymAlgMode = iota
	//ModeSymEnc as Sym. Encryption Mode
	ModeSymEnc
	//ModePubEnc as Pubkey Encryption Mode
	ModePubEnc
)

func (SymAlgMode) AlgMode

func (mode SymAlgMode) AlgMode() SymAlgMode

AlgMode returns SymAlgMode

func (SymAlgMode) IsPubEnc

func (mode SymAlgMode) IsPubEnc() bool

IsPubEnc is true when mode is ModePubEnc

func (SymAlgMode) IsSymEnc

func (mode SymAlgMode) IsSymEnc() bool

IsSymEnc is true when mode is ModeSymEnc

func (*SymAlgMode) ResetAlg

func (mode *SymAlgMode) ResetAlg()

ResetAlg resets SymAlgMode

func (*SymAlgMode) SetAlgPubEnc

func (mode *SymAlgMode) SetAlgPubEnc()

SetAlgPubEnc sets SymAlgMode to SymAlgModePubEnc

func (*SymAlgMode) SetAlgSymEnc

func (mode *SymAlgMode) SetAlgSymEnc()

SetAlgSymEnc sets SymAlgMode to SymAlgModeSymEnc

func (SymAlgMode) String added in v0.3.2

func (mode SymAlgMode) String() string

Jump to

Keyboard shortcuts

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