crypto

package
v81.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRSAPrivateKey

func ReadRSAPrivateKey(path string) (*rsa.PrivateKey, error)

func ReadRSAPublicKey

func ReadRSAPublicKey(path string) (*rsa.PublicKey, error)

Types

type Signer

type Signer interface {
	Sign([]byte) ([]byte, error)
}

func NewRSASigner

func NewRSASigner(priv *rsa.PrivateKey) Signer

type Verifier

type Verifier interface {
	Verify([]byte, []byte) error
}

func NewRSAVerifier

func NewRSAVerifier(pub *rsa.PublicKey) Verifier

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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