russellhaering / gosaml2

Pure Go implementation of SAML 2.0
Apache License 2.0
326 stars 119 forks source link

Avoid panic when the encrypted data has wrong size for CBC #195

Open fformica opened 5 months ago

fformica commented 5 months ago

/fixes https://github.com/russellhaering/gosaml2/issues/193

A simple check to return an error in the condition that would panic CryptBlocks.