options

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SymAlgModeNotSpecified = SymAlgMode(0)
	SymAlgModeSymEnc       = SymAlgMode(1)
	SymAlgModePubEnc       = SymAlgMode(2)
)

constant

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Hflag           bool //output this help
	Vflag           bool //output version
	Aflag           bool //accepts ASCII input only
	Dflag           bool //for debug
	Gflag           bool //selects alternate dump format (not used)
	Iflag           bool //dumps multi-precision integers
	Jflag           bool //output with JSON format
	Lflag           bool //dumps literal packets (tag 11)
	Mflag           bool //dumps marker packets (tag 10)
	Pflag           bool //dumps private packets (tag 60-63)
	Uflag           bool //output UTC time
	SigCreationTime int64
	KeyCreationTime int64
	Mode            SymAlgMode
}

Options for gpgpdump

func (*Options) GetSymAlgMode

func (opt *Options) GetSymAlgMode() SymAlgMode

GetSymAlgMode get SymAlgMode

func (*Options) ResetSymAlgMode

func (opt *Options) ResetSymAlgMode()

ResetSymAlgMode reset SymAlgMode

func (*Options) SetSymAlgModePubEnc

func (opt *Options) SetSymAlgModePubEnc()

SetSymAlgModePubEnc set SymAlgMode to SymAlgModePubEnc

func (*Options) SetSymAlgModeSymEnc

func (opt *Options) SetSymAlgModeSymEnc()

SetSymAlgModeSymEnc set SymAlgMode to SymAlgModeSymEnc

type SymAlgMode

type SymAlgMode int

SymAlgMode -Sym. algorithm mode

func (SymAlgMode) IsPubEnc

func (m SymAlgMode) IsPubEnc() bool

IsPubEnc return boolean for PubEnc

func (SymAlgMode) IsSymEnc

func (m SymAlgMode) IsSymEnc() bool

IsSymEnc return boolean for SymEnc

func (SymAlgMode) String

func (m SymAlgMode) String() string

Jump to

Keyboard shortcuts

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