encrypt

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBlock = errors.New("invalid block")

Functions

func Assertion

func Assertion(audience string, issuer, subject string, headers map[string]any, key any) (assertion string, err error)

func Cert

func Cert(publicCrt []byte) (cert *x509.Certificate, err error)

func Key

func Key(privateKey []byte) (key *rsa.PrivateKey, err error)

Types

type Confidential

type Confidential struct {
	Key  *rsa.PrivateKey
	Cert *x509.Certificate
}

func KeyCert

func KeyCert(privateKey, publicCrt []byte) (confidential Confidential, err error)

Jump to

Keyboard shortcuts

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