mailchain: github.com/mailchain/mailchain/crypto/cipher/encrypter Index | Files

package encrypter

import "github.com/mailchain/mailchain/crypto/cipher/encrypter"

Index

Package Files

encrypter.go

Constants

const (
    // NoOperation encryption type name.
    NoOperation string = "noop"
    // NACL encryption type name.
    NACLECDH string = "nacl-ecdh"
    // AES256CBC encryption type name.
    AES256CBC string = "aes256cbc"
)

Cipher Name lookup

func GetEncrypter Uses

func GetEncrypter(encryption string, pubKey keys.PublicKey) (crypto.Encrypter, error)

GetEncrypter is an `Encrypter` factory that returns an encrypter

Package encrypter imports 6 packages (graph) and is imported by 2 packages. Updated 2020-03-18. Refresh now. Tools for package owners.