crypto

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: LGPL-3.0 Imports: 3 Imported by: 0

README

crypto

All is about crypto algorithm and/or libraries.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAlgorithmInvalid invalid Algorithm for sign.
	ErrAlgorithmInvalid = errors.New("invalid Algorithm")
)

Functions

func CheckAlgorithm added in v1.0.0

func CheckAlgorithm(alg keystore.Algorithm) error

CheckAlgorithm check if support the input Algorithm

func NewPrivateKey

func NewPrivateKey(alg keystore.Algorithm, data []byte) (keystore.PrivateKey, error)

NewPrivateKey generate a privatekey with Algorithm

func NewSignature

func NewSignature(alg keystore.Algorithm) (keystore.Signature, error)

NewSignature returns a specific signature with the algorithm

Types

This section is empty.

Directories

Path Synopsis
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.

Jump to

Keyboard shortcuts

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