rsa

package
v0.0.0-...-7647e70 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 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 {
	*rsa.PublicKey

	*rsa.PrivateKey
	// contains filtered or unexported fields
}

func NewRSA

func NewRSA(certFile string, privateKeyFile string) (*RSA, error)

func NewRSAPair

func NewRSAPair(publicFile string, privateKeyFile string) (*RSA, error)

func (*RSA) Decrypt

func (this *RSA) Decrypt(data []byte) ([]byte, error)

func (*RSA) Encrypt

func (this *RSA) Encrypt(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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