MCPcopy Create free account
hub / github.com/crewjam/saml / ErrKeyAlgorithmNotAllowed

TypeAlias ErrKeyAlgorithmNotAllowed

xmlenc/decrypt.go:62–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

60// a CBC padding oracle that the uniform errors of the data decryption do not
61// cover.
62type ErrKeyAlgorithmNotAllowed string
63
64func (e ErrKeyAlgorithmNotAllowed) Error() string {
65 return "algorithm is not allowed for an EncryptedKey: " + string(e)

Callers 1

DecryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected