rsa

package
v0.0.0-...-10e2fbd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "RSA"

Variables

This section is empty.

Functions

func NewRSAKeyPair

func NewRSAKeyPair(bits int) (keys.KeyPair, error)

func NewRSAKeyPairFactory

func NewRSAKeyPairFactory(bits int) keys.KeyPairFactory

func StandardKeys

func StandardKeys() []keys.KeyPairFactory

Types

type RSAKeyPair

type RSAKeyPair struct {
	// contains filtered or unexported fields
}

func (*RSAKeyPair) Private

func (keypair *RSAKeyPair) Private() crypto.PrivateKey

func (*RSAKeyPair) Public

func (keypair *RSAKeyPair) Public() crypto.PublicKey

type RSAKeyPairFactory

type RSAKeyPairFactory struct {
	// contains filtered or unexported fields
}

func (*RSAKeyPairFactory) Name

func (factory *RSAKeyPairFactory) Name() string

func (*RSAKeyPairFactory) New

func (factory *RSAKeyPairFactory) New() (keys.KeyPair, error)

Jump to

Keyboard shortcuts

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