From 544e1dee656eb547d5b3a16f4929ed301ff6c540 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 5 May 2016 17:09:01 +0200 Subject: Remove copy of innerkey The line overwrites this.innerkey with the value that was already there. --- .../java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java index cf950d6d..93a73677 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/XmppAxolotlMessage.java @@ -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 -- cgit v1.2.3