ErrKeyAlgorithmNotAllowed is returned by Decrypt for an xenc:EncryptedKey whose EncryptionMethod names a block cipher such as aes128-cbc or aes256-gcm. An EncryptedKey carries a content key, which must be transported with a key-transport algorithm (RSA-OAEP) or wrapped with a key-wrap algorithm. Ac
| 60 | // a CBC padding oracle that the uniform errors of the data decryption do not |
| 61 | // cover. |
| 62 | type ErrKeyAlgorithmNotAllowed string |
| 63 | |
| 64 | func (e ErrKeyAlgorithmNotAllowed) Error() string { |
| 65 | return "algorithm is not allowed for an EncryptedKey: " + string(e) |