package
1.1.1
Repository: https://github.com/miekg/pkcs11.git
Documentation: pkg.go.dev

# Functions

OpenModule loads a PKCS#11 module (a .so file or dynamically loaded library).

# Variables

ErrAttributeNotFound is returned by Attrbibute() if the searched attribute isn't found.
ErrNoObjectsFound is returned by FindObject() and FindObjects() if no objects are found.
ErrTooManyAttributesFound is returned by Attrbibute() if the search returned multiple attributes.
ErrTooManyObjectsFound is returned by FindObject() if multiple objects are found.

# Structs

GenerateKeyPairRequest contains the fields used to generate a key pair.
KeyPair contains two Objects: one for a public key and one for a private key.
Mechanism represents a cipher, signature algorithm, hash function, or other function that a token can perform.
Module represents a PKCS#11 module, and can be used to create Sessions.
Object represents a handle to a PKCS#11 object.
Slot represents a slot that may hold a token.

# Interfaces

Session represents a PKCS#11 session.

# Type aliases

PrivateKey is an Object representing a private key.
PublicKey is an Object representing a public key.
SecretKey is an Object representing a secret (symmetric) key.