p11signer

package
v0.0.0-...-6c0edec Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finalize

func Finalize()

func Init

func Init() (err error)

Init p11 signer

Types

type P11Signer

type P11Signer struct {
	crypto.Signer
	// contains filtered or unexported fields
}

func New

func New(label string) P11Signer

init p11signer and return, privLabel: privatekey object label, publabel: public key object label

func (P11Signer) Public

func (ps P11Signer) Public() (p crypto.PublicKey)

Although this type is an empty interface for backwards compatibility reasons, all public key types in the standard library implement the following interface

interface{
    Equal(x crypto.PublicKey) bool
}

func (P11Signer) PublicKey

func (ps P11Signer) PublicKey() (p rsa.PublicKey, err error)

func (P11Signer) Sign

func (ps P11Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (s []byte, err error)

Jump to

Keyboard shortcuts

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