pkcs11

package
v0.0.0-...-9a3149e Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecureIdentity

func NewSecureIdentity(pathToKeyAndCert, mspID, pathToLib, PIN, label string) (
	secureSigningID msp.SigningIdentity, err error)

NewSecureIdentity creates an identity instance to do signing operation with PKCS11 interface pathToLib: the path to PKCS11 library file, e.g. /usr/local/lib/softhsm/libsofthsm2.so PIN: the user PIN

Types

type ProviderFactory

type ProviderFactory struct{}

func NewProviderFactory

func NewProviderFactory() *ProviderFactory

func (ProviderFactory) CreateCryptoSuiteProvider

func (p ProviderFactory) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)

func (ProviderFactory) CreateInfraProvider

func (p ProviderFactory) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)

func (ProviderFactory) CreateSigningManager

func (p ProviderFactory) CreateSigningManager(cryptoProvider core.CryptoSuite) (core.SigningManager, error)

Jump to

Keyboard shortcuts

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