This commit is contained in:
Looly 2025-04-21 19:12:09 +08:00
parent fd049cef71
commit 49426fd6ea

View File

@ -0,0 +1,13 @@
package cn.hutool.crypto.asymmetric;
import org.bouncycastle.crypto.DataLengthException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class Issue3925Test {
@Test
void sm2Test() {
final SM2 sm2 = new SM2();
Assertions.assertThrows(DataLengthException.class, ()->sm2.encrypt("", KeyType.PublicKey));
}
}