cryptotokenkit

package
v0.0.0-...-7da12c2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(data []byte, password string) error

Import imports a new identity into CryptoTokenKit

Types

type Identity

type Identity interface {
	// Certificate gets the identity's certificate.
	Certificate() (*x509.Certificate, error)
	// CertificateChain attempts to get the identity's full certificate chain.
	CertificateChain() ([]*x509.Certificate, error)
	// Signer returns a crypto.Signer that uses the identity's private key.
	Signer() crypto.Signer
	// Decrypter returns a crypto.Decrypter that uses the identity's private key.
	Decrypter() crypto.Decrypter
	// PrivateKey returns a crypto.PrivateKey that uses the identity's private key.
	PrivateKey() crypto.PrivateKey
	// Delete deletes this identity from the system.
	Delete() error
	// Close any manually managed memory held by the Identity.
	Close()
}

Identity is a X.509 certificate and its corresponding private key.

func Identities

func Identities() ([]Identity, error)

Identities lists existing identities from CryptoTokenKit

Jump to

Keyboard shortcuts

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