blind

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRSAOAEPConfig

func NewRSAOAEPConfig() config.RSAConfig

Types

type RSAConfig

type RSAConfig struct {
	Keys *rsa.PrivateKey
}

func (*RSAConfig) Decrypt

func (c *RSAConfig) Decrypt(ciphertext []byte) ([]byte, error)

func (*RSAConfig) Encrypt

func (c *RSAConfig) Encrypt(plaintext []byte) ([]byte, error)

func (*RSAConfig) Marshall

func (c *RSAConfig) Marshall() ([]byte, error)

func (*RSAConfig) Unmarshall

func (c *RSAConfig) Unmarshall(data []byte) error

Jump to

Keyboard shortcuts

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