signatures

package
v1.2.85 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var XXHash = func() hash.Hash {
	return xxhash.New()
}

Functions

This section is empty.

Types

type HashFunc

type HashFunc func() hash.Hash

type Signature added in v1.1.0

type Signature interface {
	Sign(target []byte) (signature []byte)
	Verify(target []byte, signature []byte) (ok bool)
}

func ECDSA added in v1.1.0

func ECDSA(keyPEM []byte, hf HashFunc) (Signature, error)

func HMAC

func HMAC(key []byte) Signature

func RSA

func RSA(keyPEM []byte) (Signature, error)

Jump to

Keyboard shortcuts

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