|
@@ 413-415 (lines=3) @@
|
| 410 |
|
if ($symmetricKeyInfo->isEncrypted) { |
| 411 |
|
$symKeyInfoAlgo = $symmetricKeyInfo->getAlgorith(); |
| 412 |
|
|
| 413 |
|
if (in_array($symKeyInfoAlgo, $blacklist, true)) { |
| 414 |
|
throw new \Exception('Algorithm disabled: ' . var_export($symKeyInfoAlgo, true)); |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
if ($symKeyInfoAlgo === XMLSecurityKey::RSA_OAEP_MGF1P && $inputKeyAlgo === XMLSecurityKey::RSA_1_5) { |
| 418 |
|
/* |
|
@@ 492-494 (lines=3) @@
|
| 489 |
|
} |
| 490 |
|
|
| 491 |
|
$algorithm = $symmetricKey->getAlgorith(); |
| 492 |
|
if (in_array($algorithm, $blacklist, true)) { |
| 493 |
|
throw new \Exception('Algorithm disabled: ' . var_export($algorithm, true)); |
| 494 |
|
} |
| 495 |
|
|
| 496 |
|
/** @var string $decrypted */ |
| 497 |
|
$decrypted = $enc->decryptNode($symmetricKey, false); |