mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 18:41:22 +00:00
Switch to twofish by default (#465)
This commit is contained in:
@ -85,11 +85,13 @@ supported_impl!(
|
|||||||
|
|
||||||
// TODO: the Go & JS implementations advertise Blowfish ; however doing so in Rust leads to
|
// TODO: the Go & JS implementations advertise Blowfish ; however doing so in Rust leads to
|
||||||
// runtime errors
|
// 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!(
|
supported_impl!(
|
||||||
ciphers: Cipher,
|
ciphers: Cipher,
|
||||||
|
"TwofishCTR" => Cipher::Twofish,
|
||||||
"AES-128" => Cipher::Aes128,
|
"AES-128" => Cipher::Aes128,
|
||||||
"AES-256" => Cipher::Aes256,
|
"AES-256" => Cipher::Aes256,
|
||||||
"TwofishCTR" => Cipher::Twofish,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
supported_impl!(
|
supported_impl!(
|
||||||
|
Reference in New Issue
Block a user