From c3d193f398b5dca50029e35104552eb79bed6415 Mon Sep 17 00:00:00 2001 From: akwizgran <michael@briarproject.org> Date: Tue, 9 Apr 2013 20:11:16 +0100 Subject: [PATCH] Erase tag key after use. --- .../src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java b/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java index 2d8a74dca4..daf99021e3 100644 --- a/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java +++ b/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java @@ -39,6 +39,7 @@ class ConnectionWriterFactoryImpl implements ConnectionWriterFactory { Cipher tagCipher = crypto.getTagCipher(); ErasableKey tagKey = crypto.deriveTagKey(secret, initiatorIsAlice); crypto.encodeTag(tag, tagCipher, tagKey, connection); + tagKey.erase(); encryption = new OutgoingEncryptionLayer(out, capacity, crypto.getFrameCipher(), frameKey, MAX_FRAME_LENGTH, tag); } else { -- GitLab