crypto

package
v0.0.0-...-05098b9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PUBLICKEY = PUBLIC KEY
	PUBLICKEY = "PUBLIC KEY"

	// PRIVATEKEY = PRIVATE KEY
	PRIVATEKEY = "PRIVATE KEY"

	// SIG use for JWK use header
	SIG = "sig"
)

Variables

View Source
var (
	// ErrDecodePEMPrivateKey error when trying to decode a private pem
	ErrDecodePEMPrivateKey = errors.New("failed to decode PEM block containing private key")

	// ErrDecodePEMPublicKey error when trying to decode a public pem
	ErrDecodePEMPublicKey = errors.New("failed to decode PEM block containing public key")

	// ErrNilPrivateKey error when the private key is nil
	ErrNilPrivateKey = errors.New("private key is nil")

	// ErrNilPrivateKeyD error when the private key D is nil
	ErrNilPrivateKeyD = errors.New("private key D is nil")

	// ErrNilPrivateKeyN error when the private key N is nil
	ErrNilPrivateKeyN = errors.New("private key N is nil")

	// ErrNilPublicKey error when the public key is nil
	ErrNilPublicKey = errors.New("public key is nil")

	// ErrNilPublicKeyN error when the public key N is nil
	ErrNilPublicKeyN = errors.New("public key N is nil")

	// ErrNilPublicKeyX error when the public key X is nil
	ErrNilPublicKeyX = errors.New("public key X is nil")

	// ErrNilPublicKeyY error when the public key Y is nil
	ErrNilPublicKeyY = errors.New("public key Y is nil")

	// ErrNilPublicKeyCurve error when the public key Curve is nil
	ErrNilPublicKeyCurve = errors.New("public key Curve is nil")
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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