Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 894 Bytes

TODO.md

File metadata and controls

21 lines (17 loc) · 894 Bytes

rust-cryptopals TODO

Refactor

  • statics generation in tests, like base64 directly on compile-time (needs CTFE)
  • Remove pub enum Mode or integrate into encrypt/decrypt
  • Fix challenge18 keystream hack (wut? is it being pub?)
  • Use Block, Key, etc. instead of &[u8] in stream and block modules (requires full const_generics)
  • Lots of doc-comments and doc-tests lost :/
  • Make Padding parameter for block modes
  • Abstract CTR from a block mode?
  • Remove warnings
  • Nonce (BLOCK_SIZE / 2) and counter (u64) in CTR mode assume 128-bit BLOCK_SIZE
  • Make ctr nonce &[u8]
  • Constain Digest outputs to [u8; Self::OUTPUT_SIZE] (requires full const_generics)
  • Move adversaries to library
  • Think about clippy::use_self

Bugs

  • set2::challenge12_14_ecb_decrypt::test::test_discover_prepended_length_repeated fails randomly