signature

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashData

func HashData(data []byte, digestType crypto.Hash) ([]byte, error)

func RSASignDigest added in v0.18.0

func RSASignDigest(digest []byte, digestType crypto.Hash, keyFile, passphrase string) ([]byte, error)

RSASignDigest signs the provided message digest. The key file must be in the PEM format and can either be encrypted or not.

func RSAVerifyDigest added in v0.18.0

func RSAVerifyDigest(digest []byte, digestType crypto.Hash, signature []byte, publicKey []byte) error

RSAVerifyDigest is exported for use in tests and verifies a signature over the provided hash of a message. The key file must be in the PEM format.

func SignIndex

func SignIndex(ctx context.Context, signingKey string, indexFile string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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