helpers

package
v0.0.0-...-3b0b990 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultHsmSoLib = "/usr/local/lib/softhsm/libsofthsm2.so"

Variables

View Source
var (
	ErrKeyFound = errors.New("key found")
)

Functions

func CreateCrypto11

func CreateCrypto11(pkcs11lib, tokenLabel, password string, maxSessions int) (*crypto11.Context, error)

func GenerateKeyPair

func GenerateKeyPair(context *crypto11.Context, label []byte, ecType PKCryptoType) error

func RandomBytes32

func RandomBytes32() []byte

Types

type PKCryptoType

type PKCryptoType string
const (
	Secp256k1 PKCryptoType = "ecdsa.secp256k1"
)

Jump to

Keyboard shortcuts

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