signature

package
v0.0.0-...-5f28de8 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RSA

type RSA struct {
	PublicKey *rsa.PublicKey
	Encoding  *base64.Encoding
	Hash      crypto.Hash
}

RSA verifies RSA signatures with user defined hashing If hashing func is not provided, sha1 is used by default.

func (RSA) Verify

func (r RSA) Verify(data, b64signature []byte) error

type VerificationError

type VerificationError struct {
	// contains filtered or unexported fields
}

func NewVerificationError

func NewVerificationError(err error) VerificationError

Jump to

Keyboard shortcuts

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