Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
Risolto il problema che impediva di salvare una chiave generata con ECDH nel keystore.
  • Loading branch information
FrancescoValentini committed Mar 20, 2023
1 parent 27de43f commit 66ac5d7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ public void actionPerformed(ActionEvent e) {
SecretKey originalKey = new SecretKeySpec(hexStringToByteArray(txtbGeneratedECKey.getText().toString()), 0,hexStringToByteArray(txtbGeneratedECKey.getText().toString()).length , "AES");
try {
KeyStoreUtils.addSecretKey(TextEncryptionUtil_Main.ks, walletpwd, keyAlias.toString(), originalKey);
} catch (KeyStoreException e1) {
KeyStoreUtils.saveKeyStore(TextEncryptionUtil_Main.ks, walletpwd, TextEncryptionUtil_Main.keyStoreFile);
} catch (KeyStoreException | NoSuchAlgorithmException | CertificateException | IOException e1) {
// TODO Auto-generated catch block
JOptionPane.showMessageDialog(null, e1.toString());
e1.printStackTrace();
Expand Down

0 comments on commit 66ac5d7

Please sign in to comment.