Skip to content

Commit 1b7c8b2

Browse files
committed
Bug fixed with Chacha20 Poly1305
1 parent ff28cac commit 1b7c8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bundle/JoseFramework/DependencyInjection/Source/Encryption/EncryptionSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private function getAlgorithmsFiles(): array
106106
RSA::class => 'encryption_rsa.yml',
107107
A128CTR::class => 'encryption_experimental.yml',
108108
];
109-
if (!\in_array('chacha20-poly1305', \openssl_get_cipher_methods(), true)) {
109+
if (\in_array('chacha20-poly1305', \openssl_get_cipher_methods(), true)) {
110110
$list[Chacha20Poly1305::class] = 'encryption_experimental_chacha20_poly1305.yml';
111111
}
112112

0 commit comments

Comments
 (0)