mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix bug
This commit is contained in:
parent
3e36d7fd21
commit
e258fc1eb9
@ -19,6 +19,7 @@
|
|||||||
* 【poi 】 修复TemporalAccessorUtil.toInstant使用DateTimeFormatter导致问题(issue#1891@Github)
|
* 【poi 】 修复TemporalAccessorUtil.toInstant使用DateTimeFormatter导致问题(issue#1891@Github)
|
||||||
* 【poi 】 修复sheet.getRow(y)为null导致的问题(issue#1893@Github)
|
* 【poi 】 修复sheet.getRow(y)为null导致的问题(issue#1893@Github)
|
||||||
* 【cache 】 修复LRUCache线程安全问题(issue#1895@Github)
|
* 【cache 】 修复LRUCache线程安全问题(issue#1895@Github)
|
||||||
|
* 【crypto 】 修复KeyUtil异常信息参数丢失问题(issue#1902@Github)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ public class KeyUtil {
|
|||||||
*/
|
*/
|
||||||
public static SecretKey generateDESKey(String algorithm, byte[] key) {
|
public static SecretKey generateDESKey(String algorithm, byte[] key) {
|
||||||
if (StrUtil.isBlank(algorithm) || false == algorithm.startsWith("DES")) {
|
if (StrUtil.isBlank(algorithm) || false == algorithm.startsWith("DES")) {
|
||||||
throw new CryptoException("Algorithm [{}] is not a DES algorithm!");
|
throw new CryptoException("Algorithm [{}] is not a DES algorithm!", algorithm);
|
||||||
}
|
}
|
||||||
|
|
||||||
SecretKey secretKey;
|
SecretKey secretKey;
|
||||||
@ -212,7 +212,7 @@ public class KeyUtil {
|
|||||||
*/
|
*/
|
||||||
public static SecretKey generatePBEKey(String algorithm, char[] key) {
|
public static SecretKey generatePBEKey(String algorithm, char[] key) {
|
||||||
if (StrUtil.isBlank(algorithm) || false == algorithm.startsWith("PBE")) {
|
if (StrUtil.isBlank(algorithm) || false == algorithm.startsWith("PBE")) {
|
||||||
throw new CryptoException("Algorithm [{}] is not a PBE algorithm!");
|
throw new CryptoException("Algorithm [{}] is not a PBE algorithm!", algorithm);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null == key) {
|
if (null == key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user