DaGenix / rust-crypto

A (mostly) pure-Rust implementation of various cryptographic algorithms.
Apache License 2.0
1.39k stars 297 forks source link

api cleanup #228

Open calvinmetcalf opened 9 years ago

calvinmetcalf commented 9 years ago

probably should wait until after io reform hits, opening this as a place to discus.

calvinmetcalf commented 9 years ago

rust-lang/rfcs#576 is likely the most relevant part of it

DaGenix commented 9 years ago

Thanks for opening this up - this is work that needs to happen before rust-crypto can hit 1.0. The other Rust feature / issue that might be important to tracking are associated constants. I believe associated constants would significantly simplify / improve a variety of the algorithms. What I'm unclear on is if that would impact the external interfaces, however.

DaGenix commented 9 years ago

As a note: we'll want to explore adding interfaces to chacha20 and salsa20 to support seeking since those algorithms both support it, but the interfaces don't currently.