feat: v0.7.2, fix kms is not configed
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user