diff options
-rw-r--r-- | modules/saml/lib/IdP/SAML2.php | 2 | ||||
-rw-r--r-- | modules/saml/lib/Message.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/saml/lib/IdP/SAML2.php b/modules/saml/lib/IdP/SAML2.php index 507570e..d093da4 100644 --- a/modules/saml/lib/IdP/SAML2.php +++ b/modules/saml/lib/IdP/SAML2.php @@ -920,7 +920,7 @@ class sspmod_saml_IdP_SAML2 { } /* Extract the public key from the certificate for encryption. */ - $key = new XMLSecurityKey(XMLSecurityKey::RSA_1_5, array('type'=>'public')); + $key = new XMLSecurityKey(XMLSecurityKey::RSA_OAEP_MGF1P, array('type'=>'public')); $key->loadKey($pemKey); } diff --git a/modules/saml/lib/Message.php b/modules/saml/lib/Message.php index 105c54c..c5ad1b5 100644 --- a/modules/saml/lib/Message.php +++ b/modules/saml/lib/Message.php @@ -738,7 +738,7 @@ class sspmod_saml_Message { $pemKey = "-----BEGIN CERTIFICATE-----\n" . chunk_split($key['X509Certificate'], 64) . "-----END CERTIFICATE-----\n"; - $key = new XMLSecurityKey(XMLSecurityKey::RSA_1_5, array('type'=>'public')); + $key = new XMLSecurityKey(XMLSecurityKey::RSA_OAEP_MGF1P, array('type'=>'public')); $key->loadKey($pemKey); return $key; } |