Filter more disallowed openssl ciphers thanks to @gene-git #641

This commit is contained in:
the-djmaze 2022-11-09 12:14:57 +01:00
parent 1d629209b4
commit 8f37226b76

View file

@ -18,7 +18,8 @@ abstract class Crypt
$list = \array_diff($list, \array_map('strtoupper',$list));
$list = \array_filter($list, function($v){
// DES/ECB/bf/rc insecure, GCM/CCM not supported
return !\preg_match('/(^(des|bf|rc))|-(ecb|gcm|ccm|ocb)|wrap/i', $v);
// AEAD
return !\preg_match('/(^(des|bf|rc))|-(ecb|gcm|ccm|ocb|siv|cts)|wrap/i', $v);
});
\natcasesort($list);
}