mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Remove copy of innerkey
The line overwrites this.innerkey with the value that was already there.
This commit is contained in:
parent
6e0ec9b924
commit
544e1dee65
1 changed files with 0 additions and 1 deletions
|
@ -158,7 +158,6 @@ public class XmppAxolotlMessage {
|
|||
IvParameterSpec ivSpec = new IvParameterSpec(iv);
|
||||
Cipher cipher = Cipher.getInstance(CIPHERMODE, PROVIDER);
|
||||
cipher.init(Cipher.ENCRYPT_MODE, secretKey, ivSpec);
|
||||
this.innerKey = secretKey.getEncoded();
|
||||
this.ciphertext = cipher.doFinal(plaintext.getBytes());
|
||||
} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException
|
||||
| IllegalBlockSizeException | BadPaddingException | NoSuchProviderException
|
||||
|
|
Loading…
Add table
Reference in a new issue