mention issue for direct call into uniform_bytes in RistrattoPoint

This commit is contained in:
François Garillot
2020-07-03 16:12:14 -04:00
parent 59d997900e
commit 3e41f2441d
+1 -1
View File
@@ -94,7 +94,7 @@ impl Group for RistrettoPoint {
type UniformBytesLen = U64;
fn hash_to_curve(uniform_bytes: &GenericArray<u8, Self::UniformBytesLen>) -> Self {
// This is because RistrettoPoint is on an obsolete sha2 version
// This is because RistrettoPoint is on an obsolete sha2 version, see https://github.com/dalek-cryptography/curve25519-dalek/pull/327
let mut bits = [0u8; 64];
let mut hasher = sha2::Sha512::new();
hasher.update(uniform_bytes);