@@ -1056,13 +1056,13 @@ public static function formatFingerPrint($fingerprint)
10561056 * @param string|null $format SP Format
10571057 * @param string|null $cert IdP Public cert to encrypt the nameID
10581058 * @param string|null $nq IdP Name Qualifier
1059- * @param string|null $enc_alg Encryption algorithm
1059+ * @param string|null $encAlg Encryption algorithm
10601060 *
10611061 * @return string $nameIDElement DOMElement | XMLSec nameID
10621062 *
10631063 * @throws Exception
10641064 */
1065- public static function generateNameId ($ value , $ spnq , $ format = null , $ cert = null , $ nq = null , $ enc_alg = XMLSecurityKey::AES128_CBC )
1065+ public static function generateNameId ($ value , $ spnq , $ format = null , $ cert = null , $ nq = null , $ encAlg = XMLSecurityKey::AES128_CBC )
10661066 {
10671067
10681068 $ doc = new DOMDocument ();
@@ -1082,7 +1082,7 @@ public static function generateNameId($value, $spnq, $format = null, $cert = nul
10821082 $ doc ->appendChild ($ nameId );
10831083
10841084 if (!empty ($ cert )) {
1085- if ($ enc_alg == XMLSecurityKey::AES128_CBC ) {
1085+ if ($ encAlg == XMLSecurityKey::AES128_CBC ) {
10861086 $ seckey = new XMLSecurityKey (XMLSecurityKey::RSA_1_5 , array ('type ' =>'public ' ));
10871087 } else {
10881088 $ seckey = new XMLSecurityKey (XMLSecurityKey::RSA_OAEP_MGF1P , array ('type ' =>'public ' ));
@@ -1093,7 +1093,7 @@ public static function generateNameId($value, $spnq, $format = null, $cert = nul
10931093 $ enc ->setNode ($ nameId );
10941094 $ enc ->type = XMLSecEnc::Element;
10951095
1096- $ symmetricKey = new XMLSecurityKey ($ enc_alg );
1096+ $ symmetricKey = new XMLSecurityKey ($ encAlg );
10971097 $ symmetricKey ->generateSessionKey ();
10981098 $ enc ->encryptKey ($ seckey , $ symmetricKey );
10991099
0 commit comments