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
Click to show internal directories.
Click to hide internal directories.