Skip to content

Commit

Permalink
Merge pull request #2171 from nextcloud/backport_e2e_iv
Browse files Browse the repository at this point in the history
Backport e2e iv
  • Loading branch information
tobiasKaminsky authored Feb 14, 2018
2 parents da62b75 + d47096c commit 92af0e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public static String encryptPrivateKey(String privateKey, String keyPhrase) thro
byte[] bytes = encodeStringToBase64Bytes(privateKey);
byte[] encrypted = cipher.doFinal(bytes);

byte[] iv = cipher.getParameters().getParameterSpec(IvParameterSpec.class).getIV();
byte[] iv = cipher.getIV();
String encodedIV = encodeBytesToBase64String(iv);
String encodedSalt = encodeBytesToBase64String(salt);
String encodedEncryptedBytes = encodeBytesToBase64String(encrypted);
Expand Down

0 comments on commit 92af0e9

Please sign in to comment.