hfactory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SoftwareBasedFactoryName is the name of the factory of the software-based BCCSP implementation
	SMSoftwareBasedFactoryName = "SM"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SMDummyKeystoreOpts

type SMDummyKeystoreOpts struct{}

type SMFactory

type SMFactory struct{}

SMFactory is the factory of the software-based BCCSP.

func (*SMFactory) Get

func (f *SMFactory) Get(smOpts *SmOpts) (bccsp.BCCSP, error)

Get returns an instance of BCCSP using Opts.

func (*SMFactory) Name

func (f *SMFactory) Name() string

Name returns the name of this factory

type SMFileKeystoreOpts

type SMFileKeystoreOpts struct {
	KeyStorePath string `mapstructure:"keystore" yaml:"KeyStore"`
}

Pluggable Keystores, could add JKS, P12, etc..

type SmOpts

type SmOpts struct {
	// Default algorithms when not specified (Deprecated?)
	SecLevel   int    `mapstructure:"security" json:"security" yaml:"Security"`
	HashFamily string `mapstructure:"hash" json:"hash" yaml:"Hash"`

	// Keystore Options
	Ephemeral     bool                 `mapstructure:"tempkeys,omitempty" json:"tempkeys,omitempty"`
	FileKeystore  *SMFileKeystoreOpts  `mapstructure:"filekeystore,omitempty" json:"filekeystore,omitempty" yaml:"FileKeyStore"`
	DummyKeystore *SMDummyKeystoreOpts `mapstructure:"dummykeystore,omitempty" json:"dummykeystore,omitempty"`
}

SMOpts contains options for the SMFactory

Jump to

Keyboard shortcuts

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