rust-crypto icon indicating copy to clipboard operation
rust-crypto copied to clipboard

blowfish.rs fails to compile on nightly 1.6

Open HybridEidolon opened this issue 8 years ago • 1 comments

Breaking change in derivations of Clone for arrays; see rust-lang/rust#30244.

Offending line: https://github.com/DaGenix/rust-crypto/blob/db7fe6caf38315d94f7e3dfb6257cd1f876f1c39/src/blowfish.rs#L13

rust-lang/rust#30130 was reverted due to ICEs related to Copy on large arrays in rust-lang/rust#25733

Possible solution: use a pre-sized Vec i.e. vec![vec![0u32; 256]; 4] in Blowfish::new.

HybridEidolon avatar Dec 07 '15 10:12 HybridEidolon

duplicate of #335

Dr-Emann avatar Dec 07 '15 17:12 Dr-Emann