Use generics instead of u8
phayes opened this issue · comments
Patrick Hayes commented
Right now we use u8
for the IV.
It would be nice to make this generic over u8
, u16
, u32
, u64
, u128
, and if std
is enabled, BigUint
as well.
This will require either Const Generics, or using the GenericArray crate to go from any integer to an array of [u8; N]
to append to the inner hash.