softhsm

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoftHSMSetup

type SoftHSMSetup struct {
	// contains filtered or unexported fields
}

func NewSoftHSMSetup

func NewSoftHSMSetup() *SoftHSMSetup

func (*SoftHSMSetup) GetConfigFilename

func (s *SoftHSMSetup) GetConfigFilename() string

GetConfigFilename returns the path to the softhsm configuration file; this function may only be called after RunSoftHSMSetup

func (*SoftHSMSetup) RunSoftHSMGetPubkey

func (s *SoftHSMSetup) RunSoftHSMGetPubkey(softhsmSetup string) (string, error)

RunSoftHSMGetPubkey runs 'softhsm_setup getpubkey' and returns the public key

func (*SoftHSMSetup) RunSoftHSMSetup

func (s *SoftHSMSetup) RunSoftHSMSetup(softhsmSetup string) (string, error)

RunSoftHSMSetup runs 'softhsm_setup setup' and returns the public key that was displayed

func (*SoftHSMSetup) RunSoftHSMTeardown

func (s *SoftHSMSetup) RunSoftHSMTeardown(softhsmSetup string)

RunSoftHSMTeardown runs 'softhsm_setup teardown

Jump to

Keyboard shortcuts

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