pkclient

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NoiseKeySize = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	io.Closer
	GetPubKey() ([]byte, error)
	DeriveNoise(peerPubKey []byte) ([]byte, error)
	Test() error
}

type PKClient

type PKClient struct {
}

func FromUrl

func FromUrl(pkurl string) (*PKClient, error)

func New

func New(hsmPath string, slotId uint, pin string, id string, label string) (*PKClient, error)

func (*PKClient) Close

func (c *PKClient) Close() error

func (*PKClient) DeriveNoise

func (c *PKClient) DeriveNoise(_ []byte) ([]byte, error)

func (*PKClient) GetPubKey

func (c *PKClient) GetPubKey() ([]byte, error)

func (*PKClient) SignASN1

func (c *PKClient) SignASN1(data []byte) ([]byte, error)

func (*PKClient) Test

func (c *PKClient) Test() error

Jump to

Keyboard shortcuts

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