|
@@ 402-404 (lines=3) @@
|
| 399 |
|
if ($symmetricKeyInfo->isEncrypted) { |
| 400 |
|
$symKeyInfoAlgo = $symmetricKeyInfo->getAlgorith(); |
| 401 |
|
|
| 402 |
|
if (in_array($symKeyInfoAlgo, $blacklist, TRUE)) { |
| 403 |
|
throw new Exception('Algorithm disabled: ' . var_export($symKeyInfoAlgo, TRUE)); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
if ($symKeyInfoAlgo === XMLSecurityKey::RSA_OAEP_MGF1P && $inputKeyAlgo === XMLSecurityKey::RSA_1_5) { |
| 407 |
|
/* |
|
@@ 482-484 (lines=3) @@
|
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
$algorithm = $symmetricKey->getAlgorith(); |
| 482 |
|
if (in_array($algorithm, $blacklist, TRUE)) { |
| 483 |
|
throw new Exception('Algorithm disabled: ' . var_export($algorithm, TRUE)); |
| 484 |
|
} |
| 485 |
|
|
| 486 |
|
/** @var string $decrypted */ |
| 487 |
|
$decrypted = $enc->decryptNode($symmetricKey, FALSE); |