@@ -63,34 +63,35 @@ abstract class EncryptionTestCase extends TestCase
6363 protected function getAlgorithmManagerFactory (): AlgorithmManagerFactory
6464 {
6565 if ($ this ->algorithmManagerFactory === null ) {
66- $ this ->algorithmManagerFactory = new AlgorithmManagerFactory ();
67- $ this ->algorithmManagerFactory ->add ('A128GCM ' , new A128GCM ());
68- $ this ->algorithmManagerFactory ->add ('A192GCM ' , new A192GCM ());
69- $ this ->algorithmManagerFactory ->add ('A256GCM ' , new A256GCM ());
70- $ this ->algorithmManagerFactory ->add ('A128CBC-HS256 ' , new A128CBCHS256 ());
71- $ this ->algorithmManagerFactory ->add ('A192CBC-HS384 ' , new A192CBCHS384 ());
72- $ this ->algorithmManagerFactory ->add ('A256CBC-HS512 ' , new A256CBCHS512 ());
73- $ this ->algorithmManagerFactory ->add ('A128GCMKW ' , new A128GCMKW ());
74- $ this ->algorithmManagerFactory ->add ('A192GCMKW ' , new A192GCMKW ());
75- $ this ->algorithmManagerFactory ->add ('A256GCMKW ' , new A256GCMKW ());
76- $ this ->algorithmManagerFactory ->add ('A128KW ' , new A128KW ());
77- $ this ->algorithmManagerFactory ->add ('A192KW ' , new A192KW ());
78- $ this ->algorithmManagerFactory ->add ('A256KW ' , new A256KW ());
79- $ this ->algorithmManagerFactory ->add ('dir ' , new Dir ());
80- $ this ->algorithmManagerFactory ->add ('ECDH-ES ' , new ECDHES ());
81- $ this ->algorithmManagerFactory ->add ('ECDH-ES+A128KW ' , new ECDHESA128KW ());
82- $ this ->algorithmManagerFactory ->add ('ECDH-ES+A192KW ' , new ECDHESA192KW ());
83- $ this ->algorithmManagerFactory ->add ('ECDH-ES+A256KW ' , new ECDHESA256KW ());
84- $ this ->algorithmManagerFactory ->add ('ECDH-SS ' , new ECDHSS ());
85- $ this ->algorithmManagerFactory ->add ('ECDH-SS+A128KW ' , new ECDHSSA128KW ());
86- $ this ->algorithmManagerFactory ->add ('ECDH-SS+A192KW ' , new ECDHSSA192KW ());
87- $ this ->algorithmManagerFactory ->add ('ECDH-SS+A256KW ' , new ECDHSSA256KW ());
88- $ this ->algorithmManagerFactory ->add ('PBES2-HS256+A128KW ' , new PBES2HS256A128KW ());
89- $ this ->algorithmManagerFactory ->add ('PBES2-HS384+A192KW ' , new PBES2HS384A192KW ());
90- $ this ->algorithmManagerFactory ->add ('PBES2-HS512+A256KW ' , new PBES2HS512A256KW ());
91- $ this ->algorithmManagerFactory ->add ('RSA1_5 ' , new RSA15 ());
92- $ this ->algorithmManagerFactory ->add ('RSA-OAEP ' , new RSAOAEP ());
93- $ this ->algorithmManagerFactory ->add ('RSA-OAEP-256 ' , new RSAOAEP256 ());
66+ $ this ->algorithmManagerFactory = new AlgorithmManagerFactory ([
67+ new A128GCM (),
68+ new A192GCM (),
69+ new A256GCM (),
70+ new A128CBCHS256 (),
71+ new A192CBCHS384 (),
72+ new A256CBCHS512 (),
73+ new A128GCMKW (),
74+ new A192GCMKW (),
75+ new A256GCMKW (),
76+ new A128KW (),
77+ new A192KW (),
78+ new A256KW (),
79+ new Dir (),
80+ new ECDHES (),
81+ new ECDHESA128KW (),
82+ new ECDHESA192KW (),
83+ new ECDHESA256KW (),
84+ new ECDHSS (),
85+ new ECDHSSA128KW (),
86+ new ECDHSSA192KW (),
87+ new ECDHSSA256KW (),
88+ new PBES2HS256A128KW (),
89+ new PBES2HS384A192KW (),
90+ new PBES2HS512A256KW (),
91+ new RSA15 (),
92+ new RSAOAEP (),
93+ new RSAOAEP256 (),
94+ ]);
9495 }
9596
9697 return $ this ->algorithmManagerFactory ;
0 commit comments