手动修改,增加 mac 校验密钥对
This commit is contained in:
@@ -25,13 +25,13 @@ public class SM2UtilTest {
|
||||
resourcesDir.mkdirs();
|
||||
}
|
||||
|
||||
File privateKeyFile = new File(resourcesPath + "/sm2_private_key.pem");
|
||||
File privateKeyFile = new File(resourcesPath + "/mac_sm2_private_key.pem");
|
||||
try (Writer writer = new OutputStreamWriter(new FileOutputStream(privateKeyFile), StandardCharsets.UTF_8)) {
|
||||
writer.write(privateKeyPEM);
|
||||
}
|
||||
System.out.println("Private key saved to: " + privateKeyFile.getAbsolutePath());
|
||||
|
||||
File publicKeyFile = new File(resourcesPath + "/sm2_public_key.pem");
|
||||
File publicKeyFile = new File(resourcesPath + "/mac_sm2_public_key.pem");
|
||||
try (Writer writer = new OutputStreamWriter(new FileOutputStream(publicKeyFile), StandardCharsets.UTF_8)) {
|
||||
writer.write(publicKeyPEM);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user