Versions in this module Expand all Collapse all v1 v1.3.4 Dec 27, 2021 v1.3.3 Dec 27, 2021 Changes in this version + const ReferenceScheme + func EncodeURIComponent(uriString string, isForPath bool, usePercentEncoding bool) (string, error) + type Key struct + func GetKeyWithURIConfig(config *Pkcs11UriConfig, askForPinIfNeeded bool) (*Key, error) + func (k *Key) Certificate() (*x509.Certificate, error) + func (k *Key) Close() + func (k *Key) PublicKey(opts ...signature.PublicKeyOption) (crypto.PublicKey, error) + func (k *Key) Sign(ctx context.Context, rawPayload []byte) ([]byte, []byte, error) + func (k *Key) SignMessage(message io.Reader, opts ...signature.SignOption) ([]byte, error) + func (k *Key) SignerVerifier() (signature.SignerVerifier, error) + func (k *Key) Verifier() (signature.Verifier, error) + func (k *Key) VerifySignature(signature, message io.Reader, opts ...signature.VerifyOption) error + type Pkcs11UriConfig struct + KeyID []byte + KeyLabel []byte + ModulePath string + Pin string + SlotID *int + TokenLabel string + func NewPkcs11UriConfig() *Pkcs11UriConfig + func NewPkcs11UriConfigFromInput(modulePath string, slotID *int, tokenLabel string, keyLabel []byte, ...) *Pkcs11UriConfig + func (conf *Pkcs11UriConfig) Construct() (string, error) + func (conf *Pkcs11UriConfig) Parse(uriString string) error