config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSecLv = errors.New("invalid security level")

Functions

This section is empty.

Types

type Config

type Config struct {
	SecLv       int
	KeyDirPath  string
	CertDirPath string
	KeyGenOpt   heimdall.KeyGenOpts
	EncOpt      *encryption.Opts
	KdfOpt      *kdf.Opts
	SigAlgo     string
	HashOpt     *hashing.HashOpt
}

func NewDefaultConfig

func NewDefaultConfig() (conf *Config, err error)

NewDefaultConfig makes configuration by security level 192

func NewDetailConfig

func NewDetailConfig() (conf *Config, err error)

todo: 받을 parameter 결정.. NewDetailConfig makes configuration by parameters corresponding to config struct members

func NewSimpleConfig

func NewSimpleConfig(secLv int) (conf *Config, err error)

NewSimpleConfig makes configuration by input security level

Jump to

Keyboard shortcuts

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