rsasig

package
v0.0.0-...-b1cb840 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(hash []byte, prv *rsa.PrivateKey) (string, error)

Sign generates the RSA signature with the given data's SHA256 hash and RSA private key

func Verify

func Verify(hash []byte, sigStr string, pub *rsa.PublicKey) (verifiable bool, er error)

Verify verifies the RSA signature with the given data's SHA256 hash and RSA public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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