Closed blynn closed 2 years ago
Yes, I see the need for this. But small technical issue - the rust library avoids any use of the heap, so suggest
let mut w = vec![0;hlen];
changed to
let mut w: [u8; 64]=[0;64];
and in line 347 &w changed to &w[0..hlen]
I have implemented support for long DSTs across all languages. Thanks for pointing out this omission.
I tested the change on a test case from the spec: https://www.ietf.org/archive/id/draft-irtf-cfrg-hash-to-curve-12.html:
but I didn't include this code in the commit because I'm not sure where it goes.