sign

package
v0.0.0-...-2fc75eb Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Input

func Input(privateKeyPath string, input []byte) (string, error)

Input taks a given privateKeyPath and input byte array and produces a cryptographic signature of the input. A base64-encoded signature is returned.

func ReadPrivateKey

func ReadPrivateKey(privateKeyPath string) (*rsa.PrivateKey, error)

ReadPrivateKey reads RSA key from provided path on-disk

func Sha256HashOfInput

func Sha256HashOfInput(privateKey *rsa.PrivateKey, hasher hash.Hash) (string, error)

Sha256HashOfInput takes an RSA private key and already-populated Hash of file content and produces a signature string

Types

This section is empty.

Jump to

Keyboard shortcuts

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