rsa

package
v1.2.31 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RSA

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

func New

func New(pubPEM []byte, priPEM []byte) (v *RSA, err error)

func (*RSA) Decrypt

func (r *RSA) Decrypt(encrypted []byte) (plain []byte, err error)

func (*RSA) Encrypt

func (r *RSA) Encrypt(plain []byte) (encrypted []byte, err error)

func (*RSA) Key

func (r *RSA) Key() (public *rsa.PublicKey, private *rsa.PrivateKey)

Jump to

Keyboard shortcuts

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