mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add fixme notes for where the Scalar was decomposed due to hash api incompatibility
This commit is contained in:
parent
ef112935a4
commit
31efca3e9c
1 changed files with 4 additions and 0 deletions
|
|
@ -2725,6 +2725,8 @@ impl<'a> RootKeys {
|
|||
pb
|
||||
});
|
||||
|
||||
// FIXME: this should turn back into a Scalar-from-hash routine when Ed25519 gets API-bumped to be
|
||||
// compatible with the hasher
|
||||
let mut output = [0u8; 64];
|
||||
output.copy_from_slice(hasher.finalize().as_slice());
|
||||
let r = Scalar::from_bytes_mod_order_wide(&output);
|
||||
|
|
@ -2767,6 +2769,8 @@ impl<'a> RootKeys {
|
|||
pb.increment_work(1);
|
||||
}
|
||||
|
||||
// FIXME: this should turn back into a Scalar-from-hash routine when Ed25519 gets API-bumped to be
|
||||
// compatible with the hasher
|
||||
let mut output = [0u8; 64];
|
||||
output.copy_from_slice(hasher.finalize().as_slice());
|
||||
let k = Scalar::from_bytes_mod_order_wide(&output);
|
||||
|
|
|
|||
Loading…
Reference in a new issue