From e45dce2d9a0f073c6b3eb233be9fab0ec2119ce6 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 6 Sep 2018 17:35:25 +0200 Subject: [PATCH] Switch to twofish by default (#465) --- protocols/secio/src/algo_support.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocols/secio/src/algo_support.rs b/protocols/secio/src/algo_support.rs index c9cf0026..26585e87 100644 --- a/protocols/secio/src/algo_support.rs +++ b/protocols/secio/src/algo_support.rs @@ -85,11 +85,13 @@ supported_impl!( // TODO: the Go & JS implementations advertise Blowfish ; however doing so in Rust leads to // runtime errors +// TODO: the AES library we're using seems to have a bug causing data corruption from time to time, +// which is why we prioritize TwoFish supported_impl!( ciphers: Cipher, + "TwofishCTR" => Cipher::Twofish, "AES-128" => Cipher::Aes128, "AES-256" => Cipher::Aes256, - "TwofishCTR" => Cipher::Twofish, ); supported_impl!(