Versions in this module Expand all Collapse all v0 v0.4.17 Jun 20, 2024 v0.4.16 Jun 20, 2024 Changes in this version + var ErrIncorrectTag = fmt.Errorf("tag must be an EncryptedType or EncryptedKey") + var RIPEMD160 = digestMethod + var RandReader = rand.Reader + var SHA1 = digestMethod + var SHA256 = digestMethod + var SHA512 = digestMethod + func Decrypt(key interface{}, ciphertextEl *etree.Element) ([]byte, error) + func Fuzz(data []byte) int + func RegisterDecrypter(d Decrypter) + func RegisterDigestMethod(dm DigestMethod) + type BlockCipher interface + KeySize func() int + var AES128CBC BlockCipher = CBC{} + var AES128GCM BlockCipher = GCM{} + var AES192CBC BlockCipher = CBC{} + var AES256CBC BlockCipher = CBC{} + var TripleDES BlockCipher = CBC{} + type CBC struct + func (e CBC) Algorithm() string + func (e CBC) Decrypt(key interface{}, ciphertextEl *etree.Element) ([]byte, error) + func (e CBC) Encrypt(key interface{}, plaintext []byte, _ []byte) (*etree.Element, error) + func (e CBC) KeySize() int + type Decrypter interface + Algorithm func() string + Decrypt func(key interface{}, ciphertextEl *etree.Element) ([]byte, error) + type DigestMethod interface + Algorithm func() string + Hash func() hash.Hash + type Encrypter interface + Encrypt func(key interface{}, plaintext []byte, nonce []byte) (*etree.Element, error) + type ErrAlgorithmNotImplemented string + func (e ErrAlgorithmNotImplemented) Error() string + type ErrCannotFindRequiredElement string + func (e ErrCannotFindRequiredElement) Error() string + type ErrIncorrectKeyLength int + func (e ErrIncorrectKeyLength) Error() string + type ErrIncorrectKeyType string + func (e ErrIncorrectKeyType) Error() string + type GCM struct + func (e GCM) Algorithm() string + func (e GCM) Decrypt(key interface{}, ciphertextEl *etree.Element) ([]byte, error) + func (e GCM) Encrypt(key interface{}, plaintext []byte, nonce []byte) (*etree.Element, error) + func (e GCM) KeySize() int + type RSA struct + BlockCipher BlockCipher + DigestMethod DigestMethod + func OAEP() RSA + func PKCS1v15() RSA + func (e RSA) Algorithm() string + func (e RSA) Decrypt(key interface{}, ciphertextEl *etree.Element) ([]byte, error) + func (e RSA) Encrypt(certificate interface{}, plaintext []byte, nonce []byte) (*etree.Element, error)