Nicolas Stalder

Results 181 comments of Nicolas Stalder

The thing is if you publish a library on crates.io, all its dependencies need to be published as well (no git or in-repo dependencies). I guess I could publish the...

Not sure why this doesn't fix it actually: https://github.com/rust-lang/cargo/pull/7333

Alright, did the release branch thing and published 0.1.0-alpha.2 as first release with X25519. UPDATE: https://github.com/ycrypto/salty/pull/13

Thanks! Yeah we shouldn't panic (fallible `try_from`) and I've noticed API holes too. Feel free to adjust what you need in your PR (for 1. AsRef or AsSlice might be...

How often do you really have messages in embedded systems that are long enough to make this a necessity? (This is me speaking from the point of view of 320KB...

I played around with this a bit (https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ae7a21ba8cc33631c981872f92408947), and I think at this point I'd favor something like: ``` fn sign_non_contiguous(message: &[&[u8]]) -> Signature ``` The hope with this IntoIterator...

Another attempt: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0acfb27e1ca7a1d81994ebc603bf5e88 I'm not happy with having to use `.as_ref()` on references to byte arrays of known length. I think with const generics we could implement the trait for...

I'll leave this open for sure. If I understand correctly, "baby const generics" (https://github.com/rust-lang/lang-team/issues/37) might be released soon, and should make a nice shared API possible.

Looking at https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored, maybe such a method could be called `sign_vectored`.

Another option: https://docs.rs/iterate/1.0.0/iterate/macro.iterate.html