Versions in this module Expand all Collapse all v1 v1.3.8 Aug 17, 2022 v1.3.7 Jul 11, 2022 Changes in this version + const AesCtr + const AesCtrHmacSha256 + const AesGcm + const AesOfb + const RC4 + const RSA + var AlgorithmErr = errors.New("unsupported algorithm") + var MACError = errors.New("message authentication failed") + var PassphraseErr = errors.New("wrong passphrase") + var UnknownVersionError = errors.New("unknown version") + var V1 = &version1 + type Algorithm string + type Version interface + Decrypt func(ciphertext, passphrase []byte, algorithm Algorithm) ([]byte, error) + Encrypt func(plaintext, passphrase []byte, algorithm Algorithm) ([]byte, error) + Sign func(digest, privateKey []byte, algorithm Algorithm) ([]byte, error) + StreamDecrypt func(src io.Reader, dst io.Writer, passphrase []byte, algorithm Algorithm) error + StreamEncrypt func(src io.Reader, dst io.Writer, passphrase []byte, algorithm Algorithm) error + Verify func(signature, digest, publicKey []byte, algorithm Algorithm) (bool, error) + func LookupVersion(vers int32) (Version, bool)