feat: v0.7.2, fix kms is not configed
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package me.hatter.tools.tinyencrypt.config;
|
package me.hatter.tools.tinyencrypt.config;
|
||||||
|
|
||||||
public class TinyEncryptConstant {
|
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";
|
public static final String ENC_FILE_EXT = ".tinyenc";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,11 +101,11 @@ public class TinyEncryptMetaUtil {
|
|||||||
requireLocalPrivateKeyPem(config);
|
requireLocalPrivateKeyPem(config);
|
||||||
privateKey = KeyUtil.parsePrivateKeyPEM(config.getLocalPrivateKeyPem());
|
privateKey = KeyUtil.parsePrivateKeyPEM(config.getLocalPrivateKeyPem());
|
||||||
}
|
}
|
||||||
PublicKey publicKey = KeyUtil.parsePublicKeyPEM(config.getLocalPublicKeyPem());
|
|
||||||
|
|
||||||
byte[] dataKey;
|
byte[] dataKey;
|
||||||
String envelop = null;
|
String envelop = null;
|
||||||
if (useEnvelop) {
|
if (useEnvelop) {
|
||||||
|
PublicKey publicKey = KeyUtil.parsePublicKeyPEM(config.getLocalPublicKeyPem());
|
||||||
JSONObject responseObject = fetchJwkEnvelop(config, keyName, privateKey, publicKey);
|
JSONObject responseObject = fetchJwkEnvelop(config, keyName, privateKey, publicKey);
|
||||||
JSONObject responseData = responseObject.getJSONObject("data");
|
JSONObject responseData = responseObject.getJSONObject("data");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user