pkcs11

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

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pkcs11 is a coupled package that interacts with the PKCS#11 interface of a library specified through viper configuration; it fetches the key pair and their corresponding certificate which are specified by viper configuration (see the conf.go file in this package); it also exposes the *crypto11.Context under use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCrypt11Ctx

func GetCrypt11Ctx() (*crypto11.Context, error)

func GetKert

func GetKert(kertId []byte, kertLabel string) (pvKey crypto.PrivateKey, pubKey crypto.PublicKey, cert *x509.Certificate, err error)

func GetKertByConf

func GetKertByConf() (pvKey crypto.PrivateKey, pubKey crypto.PublicKey, cert *x509.Certificate, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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