crypto

package
v7.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePEM added in v7.2.0

func ParsePEM(block *pem.Block) (crypto.Signer, error)

ParsePEM parse a PEM block into a crypto signer EC and RSA private keys encoded in unencrypted PKCS1 or PKCS8 format are supported.

func PublicKeyCertificate

func PublicKeyCertificate(key crypto.Signer) (cert tls.Certificate, err error)

PublicKeyCertificate returns a stripped down tls certificate containing the public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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