mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
remove superfluous associated types
This commit is contained in:
@@ -9,8 +9,6 @@ pub trait KeyedHash<const KEY_LEN: usize, const HASH_LEN: usize> {
|
||||
}
|
||||
|
||||
pub trait KeyedHashInstance<const KEY_LEN: usize, const HASH_LEN: usize> {
|
||||
type KeyType;
|
||||
type OutputType;
|
||||
type Error;
|
||||
|
||||
fn keyed_hash(
|
||||
|
||||
@@ -21,8 +21,6 @@ where
|
||||
L: KeyedHash<KEY_LEN, HASH_LEN, Error = Error>,
|
||||
R: KeyedHash<KEY_LEN, HASH_LEN, Error = Error>,
|
||||
{
|
||||
type KeyType = [u8; KEY_LEN];
|
||||
type OutputType = [u8; HASH_LEN];
|
||||
type Error = Error;
|
||||
|
||||
fn keyed_hash(
|
||||
|
||||
@@ -53,8 +53,6 @@ impl<
|
||||
Static: KeyedHash<KEY_LEN, HASH_LEN, Error = anyhow::Error>,
|
||||
> KeyedHashInstance<KEY_LEN, HASH_LEN> for InferKeyedHash<Static, KEY_LEN, HASH_LEN>
|
||||
{
|
||||
type KeyType = [u8; KEY_LEN];
|
||||
type OutputType = [u8; HASH_LEN];
|
||||
type Error = anyhow::Error;
|
||||
|
||||
fn keyed_hash(&self, key: &[u8; KEY_LEN], data: &[u8], out: &mut [u8; HASH_LEN]) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user