mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
支持"RSA/ECB/OAEPWithSHA-1AndMGF1Padding"的RSA加解密
This commit is contained in:
@@ -703,6 +703,8 @@ public class KeyUtil {
|
||||
return "EC";
|
||||
}
|
||||
|
||||
// pr#3675 对于类似于RSA/ECB/OAEPWithSHA-1AndMGF1Padding只获取主方法
|
||||
algorithm = getMainAlgorithm(algorithm);
|
||||
final int indexOfWith = StrUtil.lastIndexOfIgnoreCase(algorithm, "with");
|
||||
if (indexOfWith > 0) {
|
||||
algorithm = StrUtil.subSuf(algorithm, indexOfWith + "with".length());
|
||||
|
Reference in New Issue
Block a user