Skip to content

Commit a1a5d83

Browse files
authored
Merge pull request #633 from web-token/temp-ef4654
Merge up 4.0.6 to 4.1.x
2 parents 954f80f + 4737415 commit a1a5d83

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Library/Encryption/Algorithm/KeyEncryption/AbstractECDH.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function calculateAgreementKey(JWK $private_key, JWK $public_key): str
8989
$publicPem = ECKey::convertPublicKeyToPEM($public_key);
9090
$privatePem = ECKey::convertPrivateKeyToPEM($private_key);
9191

92-
$res = openssl_pkey_derive($publicPem, $privatePem, $curve->getSize());
92+
$res = openssl_pkey_derive($publicPem, $privatePem);
9393
if ($res === false) {
9494
throw new RuntimeException('Unable to derive the key');
9595
}

tests/EncryptionAlgorithm/ContentEncryption/AESCBC/AESCBC_HSContentEncryptionTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,8 @@ public function a256CBCHS512EncryptAndDecrypt(): void
320320
protected static function getMethod(string $class, string $name): ReflectionMethod
321321
{
322322
$class = new ReflectionClass($class);
323-
$method = $class->getMethod($name);
324-
$method->setAccessible(true);
325323

326-
return $method;
324+
return $class->getMethod($name);
327325
}
328326

329327
private function convertArrayToBinString(array $data): string

0 commit comments

Comments
 (0)