Documentation
¶
Index ¶
- type Config
- func (c *Config) ContainsKeyById(keyId string) bool
- func (c *Config) CreateAndAddInPlacePotp(size int, cn string) (*Potp, error)
- func (c *Config) CreateAndAddKey(keyType cryptoutil.KeyType, cn string) (*Key, error)
- func (c *Config) DeleteKeyByUUID(uuid string) bool
- func (c *Config) DeletePotpByUUID(uuid string) bool
- func (c *Config) GetKeyByCN(cn string) (*Key, error)
- func (c *Config) GetKeyByID(keyId string) (*Key, error)
- func (c *Config) GetPotpByCN(cn string) (*Potp, error)
- func (c *Config) GetPotpByID(potpId string) (*Potp, error)
- func (c *Config) HasDiskEncryptionPassword() bool
- func (c *Config) NextSequentialKeyCN() int64
- func (c *Config) NextSequentialPotpCN() int64
- func (c *Config) SaveTo(file string) (err error)
- func (c *Config) SetDiskEncryptionPassword(password string)
- type Key
- type Potp
- type TripleAES256Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Keys []Key Potps []Potp PreferredKeyCN string PreferredPotpCN string PuzzleDifficulty int TripleAES256 TripleAES256Config // contains filtered or unexported fields }
func LoadFromInteractive ¶
It will ask for a password, if required
func (*Config) ContainsKeyById ¶
func (*Config) CreateAndAddInPlacePotp ¶
func (*Config) CreateAndAddKey ¶
func (*Config) DeleteKeyByUUID ¶
func (*Config) DeletePotpByUUID ¶
func (*Config) HasDiskEncryptionPassword ¶
func (*Config) NextSequentialKeyCN ¶
func (*Config) NextSequentialPotpCN ¶
func (*Config) SetDiskEncryptionPassword ¶
type Key ¶
func (*Key) GetKeyType ¶
func (k *Key) GetKeyType() cryptoutil.KeyType
func (*Key) IdAs32Byte ¶
type Potp ¶
func (*Potp) IdAs32Byte ¶
type TripleAES256Config ¶
type TripleAES256Config string
const ( TripleAES256Required TripleAES256Config = "required" TripleAES256Allowed TripleAES256Config = "allowed" TripleAES256Disabled TripleAES256Config = "disabled" )
Click to show internal directories.
Click to hide internal directories.