hsm

package
v0.0.0-...-62278bf Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HsmClient

type HsmClient struct {
	Ctx     context.Context
	KeyName string
	Gclient *kms.KeyManagementClient
}

func NewHSMClient

func NewHSMClient(ctx context.Context, keyPath string, keyName string) (*HsmClient, error)

func (*HsmClient) CreateKeyPair

func (hsm *HsmClient) CreateKeyPair(projectID, locationID, keyRingID, keyID, method string) (string, error)

func (*HsmClient) CreateKeyRing

func (hsm *HsmClient) CreateKeyRing(projectID, locationID, keyRingID string) (string, error)

func (*HsmClient) SignTransaction

func (hsm *HsmClient) SignTransaction(hash string) (string, error)

Jump to

Keyboard shortcuts

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