Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCSPFactoryWithOpts ¶
func InitCSPFactoryWithOpts(opts *FactoryOpts)
Types ¶
type CSPFactory ¶
type CSPFactory struct {
// contains filtered or unexported fields
}
type FactoryOpts ¶
type FactoryOpts struct { // Kind 目前仅支持:sw,即通过软件实现的密码方案。 Kind string `json:"kind" yaml:"Kind"` KeyStorePath string `json:"key_store_path" yaml:"KeyStorePath"` SecurityLevel int `json:"security_level" yaml:"SecurityLevel"` HashFamily string `json:"hash_family" yaml:"HashFamily"` ReadOnly bool `json:"read_only" yaml:"ReadOnly"` }
func ReadConfig ¶
func ReadConfig() (*FactoryOpts, error)
Click to show internal directories.
Click to hide internal directories.