Import tiny_keccak inside hash function

This commit is contained in:
Thomas Eizinger 2021-05-11 14:39:48 +10:00
parent bf8bc68816
commit 06f1ada2b1
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,6 @@ use curve25519_dalek::constants::ED25519_BASEPOINT_POINT;
use curve25519_dalek::edwards::EdwardsPoint;
use curve25519_dalek::scalar::Scalar;
use hash_edwards_to_edwards::hash_point_to_point;
use tiny_keccak::{Hasher, Keccak};
pub const RING_SIZE: usize = 11;

View File

@ -5,8 +5,9 @@ macro_rules! hash_to_scalar {
($($e:tt) || +) => {
{
use crate::macros::AsByteSlice as _;
use tiny_keccak::Hasher as _;
let mut hasher = Keccak::v256();
let mut hasher = tiny_keccak::Keccak::v256();
$(
hasher.update($e.as_byte_slice());