diff --git a/src/test/java/org/zz/gmhelper/test/SM2UtilTest.java b/src/test/java/org/zz/gmhelper/test/SM2UtilTest.java index 8da97d5..05ba57c 100644 --- a/src/test/java/org/zz/gmhelper/test/SM2UtilTest.java +++ b/src/test/java/org/zz/gmhelper/test/SM2UtilTest.java @@ -31,7 +31,7 @@ public void testSignAndVerify() { + ByteUtils.toHexString(priKey.getD().toByteArray()).toUpperCase()); System.out.println("Pub X Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineXCoord().getEncoded()).toUpperCase()); - System.out.println("Pub X Hex:" + System.out.println("Pub Y Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineYCoord().getEncoded()).toUpperCase()); System.out.println("Pub Point Hex:" + ByteUtils.toHexString(pubKey.getQ().getEncoded(false)).toUpperCase()); @@ -69,7 +69,7 @@ public void testEncryptAndDecrypt() { + ByteUtils.toHexString(priKey.getD().toByteArray()).toUpperCase()); System.out.println("Pub X Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineXCoord().getEncoded()).toUpperCase()); - System.out.println("Pub X Hex:" + System.out.println("Pub Y Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineYCoord().getEncoded()).toUpperCase()); System.out.println("Pub Point Hex:" + ByteUtils.toHexString(pubKey.getQ().getEncoded(false)).toUpperCase()); @@ -98,7 +98,7 @@ public void testEncryptAndDecrypt_C1C2C3() { + ByteUtils.toHexString(priKey.getD().toByteArray()).toUpperCase()); System.out.println("Pub X Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineXCoord().getEncoded()).toUpperCase()); - System.out.println("Pub X Hex:" + System.out.println("Pub Y Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineYCoord().getEncoded()).toUpperCase()); System.out.println("Pub Point Hex:" + ByteUtils.toHexString(pubKey.getQ().getEncoded(false)).toUpperCase()); @@ -195,7 +195,7 @@ public void testSM2KeyGen2() { + ByteUtils.toHexString(priKey.getD().toByteArray()).toUpperCase()); System.out.println("Pub X Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineXCoord().getEncoded()).toUpperCase()); - System.out.println("Pub X Hex:" + System.out.println("Pub Y Hex:" + ByteUtils.toHexString(pubKey.getQ().getAffineYCoord().getEncoded()).toUpperCase()); System.out.println("Pub Point Hex:" + ByteUtils.toHexString(pubKey.getQ().getEncoded(false)).toUpperCase());