rsa

package
v0.0.0-...-9be813a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package rsa implements signature generation and verification using RSA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePEMs

func GeneratePEMs() ([]byte, []byte, error)

GeneratePEMs generates a PEM-formatted pair of RSA public and private keys of size 3072 bits.

func NewSigner

func NewSigner(pk crypto.Signer) (signatures.Signer, error)

NewSigner creates a signer object from a private key.

func NewVerifier

func NewVerifier(pk *rsa.PublicKey) (signatures.Verifier, error)

NewVerifier creates a verifier from an 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