File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/Bundle/JoseFramework/Resources/config Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111 * of the MIT license. See the LICENSE file for details.
1212 */
1313
14+ use Jose \Component \Core \Util \Ecc \NistCurve ;
1415use Jose \Component \KeyManagement \Analyzer ;
1516use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
1617use ZxcvbnPhp \Zxcvbn ;
3738 $ container ->set (Analyzer \OctAnalyzer::class);
3839 $ container ->set (Analyzer \MixedKeyTypes::class);
3940 $ container ->set (Analyzer \MixedPublicAndPrivateKeys::class);
40- $ container ->set (Analyzer \ES256KeyAnalyzer::class);
41- $ container ->set (Analyzer \ES384KeyAnalyzer::class);
42- $ container ->set (Analyzer \ES512KeyAnalyzer::class);
4341 $ container ->set (Analyzer \HS256KeyAnalyzer::class);
4442 $ container ->set (Analyzer \HS384KeyAnalyzer::class);
4543 $ container ->set (Analyzer \HS512KeyAnalyzer::class);
4644
45+ if (class_exists (NistCurve::class)) {
46+ $ container ->set (Analyzer \ES256KeyAnalyzer::class);
47+ $ container ->set (Analyzer \ES384KeyAnalyzer::class);
48+ $ container ->set (Analyzer \ES512KeyAnalyzer::class);
49+ }
50+
4751 if (class_exists (Zxcvbn::class)) {
4852 $ container ->set (Analyzer \ZxcvbnKeyAnalyzer::class);
4953 }
You can’t perform that action at this time.
0 commit comments