SAML2_Utils: Fix for attack against PKCS#1 v1.5 described in a new paper.
SAML2_Utils: Fix for attack against PKCS#1 v1.5 described in a new paper.

See: http://www.nds.rub.de/research/publications/breaking-xml-encryption-pkcs15/

This fix avoids the problems described in that paper by taking two
measures:
- Require that decrypted contents is at least 4 bytes, since that is the
  shortest length of an XML element.
- Generate a (invalid) symmetric key that is deterministic for a given
  encrypted key and private key.

git-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@3132 44740490-163a-0410-bde0-09ae8108e29a

StudentLifeMarketingAndDesign/simplesamlphp,Kunstmaan/simplesamlphp,ghalse/simplesamlphp,girgen/simplesamlphp,girgen/simplesamlphp,gtkrug/simplesamlphp,girgen/simplesamlphp,cwaldbieser/simplesamlphp,Kunstmaan/simplesamlphp,jschlyter/simplesamlphp,BrettMerrick/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,sylvainmed/simplesamlphp,gtkrug/simplesamlphp,maytechnet/simplesamlphp,girgen/simplesamlphp,sylvainmed/simplesamlphp,madmatt/simplesamlphp,dnmvisser/simplesamlphp,sylvainmed/simplesamlphp,jschlyter/simplesamlphp,shoaibali/simplesamlphp,dzuelke/simplesamlphp,jschlyter/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,dzuelke/simplesamlphp,ghalse/simplesamlphp,dialogik/simplesamlphp,dzuelke/simplesamlphp,dialogik/simplesamlphp,sitya/simplesamlphp,dialogik/simplesamlphp,dnmvisser/simplesamlphp,ghalse/simplesamlphp,dialogik/simplesamlphp,dnmvisser/simplesamlphp,dnmvisser/simplesamlphp,simplesamlphp/simplesamlphp,grnet/simplesamlphp,Kunstmaan/simplesamlphp,simplesamlphp/simplesamlphp,maytechnet/simplesamlphp,dzuelke/simplesamlphp,grnet/simplesamlphp,grnet/simplesamlphp,Kunstmaan/simplesamlphp,cwaldbieser/simplesamlphp,gtkrug/simplesamlphp,dialogik/simplesamlphp,maytechnet/simplesamlphp,shoaibali/simplesamlphp,BrettMerrick/simplesamlphp,gtkrug/simplesamlphp,cwaldbieser/simplesamlphp,BrettMerrick/simplesamlphp,shoaibali/simplesamlphp,madmatt/simplesamlphp,shoaibali/simplesamlphp,simplesamlphp/simplesamlphp,sitya/simplesamlphp,grnet/simplesamlphp,maytechnet/simplesamlphp,madmatt/simplesamlphp,ghalse/simplesamlphp,BrettMerrick/simplesamlphp,madmatt/simplesamlphp,sylvainmed/simplesamlphp,jschlyter/simplesamlphp,sitya/simplesamlphp,cwaldbieser/simplesamlphp,StudentLifeMarketingAndDesign/simplesamlphp,jschlyter/simplesamlphp,sitya/simplesamlphp,simplesamlphp/simplesamlphp,girgen/simplesamlphp