package
0.19.176
Repository: https://github.com/effective-security/xpki.git
Documentation: pkg.go.dev

# Functions

ConfigureFromFile configures PKCS#11 from a name configuration file.
ConvertToPublic converts a private key interface to crypto.PublicKey type.
Init configures PKCS#11 from a TokenConfig, and opens default slot.
LoadProvider provides loader for crypto11 provider.
LoadTokenConfig loads PKCS#11 token configuration.

# Constants

Encryption specifies the purpose of key to be used in encryption/decryption operations.
Signing specifies the purpose of key to be used in signing/verification operations.
Undefined purpose of key.

# Structs

PKCS11Lib contains a reference to an open PKCS#11 slot and configuration.
PKCS11Object contains a reference to a loaded PKCS#11 object.
PKCS11PrivateKey contains a reference to a loaded PKCS#11 private key object.
PKCS11PrivateKeyDSA contains a reference to a loaded PKCS#11 DSA private key object.
PKCS11PrivateKeyECDSA contains a reference to a loaded PKCS#11 ECDSA private key object.
PKCS11PrivateKeyRSA contains a reference to a loaded PKCS#11 RSA private key object.
SlotTokenInfo provides info about Token on slot.

# Interfaces

KeyIdentifier interface provides key ID and label.
TokenConfig holds PKCS#11 configuration information.

# Type aliases

KeyPurpose declares the purpose for keys.
SlotInfo provides information about a slot.
TokenInfo provides information about a token.