diff --git a/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java b/briar-core/src/net/sf/briar/transport/ConnectionWriterFactoryImpl.java index 2d8a74dca485a00687a95b30659b12b59303d757..daf99021e3c871d4080e909dd23db720b2f183ef 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 {