crypto

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherArmored []byte, keys openpgp.EntityList) ([]byte, error)

func DecryptAndVerify

func DecryptAndVerify(cipherArmored []byte, keys openpgp.EntityList) ([]byte, error)

func Encrypt

func Encrypt(msg []byte, pubkeys openpgp.EntityList) ([]byte, error)

func MakeKeyring

func MakeKeyring(decryptedPrivkey openpgp.EntityList, pubkeyArmored []byte) (openpgp.EntityList, error)

func ReadArmoredKey

func ReadArmoredKey(armoredKey []byte) (openpgp.EntityList, error)

func ReadPrivkey

func ReadPrivkey(encryptedPrivkeyArmored, pw []byte) (openpgp.EntityList, error)

func VerifyPubkeyArmoredSignature

func VerifyPubkeyArmoredSignature(signedPubkeyArmored, signerPubkeyArmored []byte) error

func VerifyPubkeySignature

func VerifyPubkeySignature(signedPubkey, signerPubkey openpgp.EntityList) error

func VerifyPubkeyWithPrivkey

func VerifyPubkeyWithPrivkey(pubkey, decryptedPrivkey openpgp.EntityList) error

func VerifySignedCleartext

func VerifySignedCleartext(message []byte, keys openpgp.EntityList) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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