msgcrypter

package
v0.0.0-...-001208e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageCrypter

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

func New

func New(crypter interfaces.Asymmetric) *MessageCrypter

func (*MessageCrypter) Decrypt

func (mc *MessageCrypter) Decrypt(ciphertext []byte) ([]byte, error)

func (*MessageCrypter) Encrypt

func (mc *MessageCrypter) Encrypt(plaintext []byte, pubKey []byte) ([]byte, error)

func (*MessageCrypter) PubKey

func (mc *MessageCrypter) PubKey() []byte

Jump to

Keyboard shortcuts

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