From ff59a4fe30445e6e1c1c2de5da15907b8042db85 Mon Sep 17 00:00:00 2001 From: liulu Date: Mon, 9 Dec 2024 11:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java b/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java index e6f1f08..d7179a4 100644 --- a/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java +++ b/chsm-common/src/main/java/com/sunyard/chsm/sdf/model/EccPubKey.java @@ -6,7 +6,6 @@ import lombok.NoArgsConstructor; import org.bouncycastle.util.encoders.Hex; import org.springframework.util.Assert; -import java.nio.ByteBuffer; import java.util.Arrays; import java.util.Objects; @@ -56,11 +55,6 @@ public class EccPubKey { pubKey = Arrays.copyOfRange(pubKey, 1, pubKey.length); } else if (Objects.equals(pubKey.length, 132)) { // 00010000 - byte[] bytes = Arrays.copyOf(pubKey, 4); - System.out.println(Hex.toHexString(bytes)); - int anInt = ByteBuffer.wrap(bytes).getInt(); - System.out.println(anInt); - pubKey = Arrays.copyOfRange(pubKey, 4, pubKey.length); } Assert.isTrue(Objects.equals(pubKey.length, 64) || Objects.equals(pubKey.length, 128), "Ecc公钥数据格式错误");