Skip to content

Commit 67a6602

Browse files
authored
Update RSA key generation in sealing test: include configArgs for clarity
1 parent d2aedd0 commit 67a6602

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/RSACryptoServiceProviderTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ public function canSealData()
3737
{
3838
$plainText = "This is going";
3939
$parameters = new RSAParameters();
40-
$parameters->generateKeys(passphrase: $this->passphrase, salt: $this->salt);
40+
$parameters->generateKeys(passphrase: $this->passphrase, salt: $this->salt, configArgs: [
41+
'private_key_type' => OPENSSL_KEYTYPE_RSA,
42+
'private_key_bits' => 2048
43+
]);
4144

4245
$rsa = new RSACryptoServiceProvider();
4346
$rsa->setParameters($parameters);

0 commit comments

Comments
 (0)