feat: v0.7.2, fix kms is not configed

This commit is contained in:
2023-04-01 19:49:37 +08:00
parent 430bcbc9f2
commit da45deccb9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package me.hatter.tools.tinyencrypt.config;
public class TinyEncryptConstant {
public static final String VERSION = "0.7.1";
public static final String VERSION = "0.7.2";
public static final String ENC_FILE_EXT = ".tinyenc";
}

View File

@@ -101,11 +101,11 @@ public class TinyEncryptMetaUtil {
requireLocalPrivateKeyPem(config);
privateKey = KeyUtil.parsePrivateKeyPEM(config.getLocalPrivateKeyPem());
}
PublicKey publicKey = KeyUtil.parsePublicKeyPEM(config.getLocalPublicKeyPem());
byte[] dataKey;
String envelop = null;
if (useEnvelop) {
PublicKey publicKey = KeyUtil.parsePublicKeyPEM(config.getLocalPublicKeyPem());
JSONObject responseObject = fetchJwkEnvelop(config, keyName, privateKey, publicKey);
JSONObject responseData = responseObject.getJSONObject("data");