Versions in this module Expand all Collapse all v1 v1.0.1 Jan 7, 2021 v1.0.0 Nov 17, 2019 Changes in this version + var ErrCannotFindEncryptedDataNode = errors.New("cannot find EncryptedData node") + var ErrPublicKeyMismatch = errors.New("certificate public key does not match provided private key") + func Decrypt(privateKey []byte, doc []byte) ([]byte, error) + type CipherData struct + CipherValue *CipherValue + XMLName xml.Name + type CipherValue struct + Data string + XMLName xml.Name + type DigestMethod struct + Algorithm string + XMLName xml.Name + type EncryptedData struct + CipherData *CipherData + EncryptionMethod *EncryptionMethod + ID *string + KeyInfo *KeyInfo + Type *string + XMLName xml.Name + type EncryptedKey struct + CipherData *CipherData + EncryptionMethod *EncryptionMethod + KeyInfo *KeyInfo + XMLName xml.Name + type EncryptionMethod struct + Algorithm *string + DigestMethod *DigestMethod + OAEPparams *OAEPparams + XMLName xml.Name + type ErrUnsupportedAlgorithm struct + Algorithm string + func (e ErrUnsupportedAlgorithm) Error() string + type KeyInfo struct + EncryptedKey *EncryptedKey + X509Data *X509Data + XMLName xml.Name + type OAEPparams struct + Data []byte + XMLName xml.Name + type X509Certificate struct + Data []byte + XMLName xml.Name + type X509Data struct + X509Certificate *X509Certificate + XMLName xml.Name