smartcard

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDecryptionKey

func GetDecryptionKey(p11Module string, recipients *pkcs7.Recipients, slotNum int) ([]byte, error)

GetDecryptionKey retrieves a valid secret key for one of the recipients given in the `recipients` parameter.

func GetPin

func GetPin() ([]byte, error)

Types

type MatchingCertificate

type MatchingCertificate struct {
	Certificate   *x509.Certificate
	RecipientInfo *pkcs7.RecipientInfo
	ID            []byte
}

Jump to

Keyboard shortcuts

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