signature

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package signature provides methods to sign and verify signatures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(privateKey crypto.PrivateKey, input []byte) (string, error)

Sign generates a base64-encoded signature of the input data using the provided private key. The private key must be RSA.

func Verify

func Verify(cert *x509.Certificate, input []byte, signature string) error

Verify verifies a base64-encoded signature of the input data using the provided certificate. The certificate's public key must be RSA.

Types

This section is empty.

Jump to

Keyboard shortcuts

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