blob: 9670bb54a82d75a9d3cd27d6a0393331e1409d18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//! Checks that we defined reader type aliases correctly
#![allow(dead_code)]
use sha3::digest::ExtendableOutput;
fn shake128(v: sha3::Shake128) -> sha3::Shake128Reader {
v.finalize_xof()
}
fn shake256(v: sha3::Shake256) -> sha3::Shake256Reader {
v.finalize_xof()
}
fn cshake128(v: sha3::CShake128) -> sha3::CShake128Reader {
v.finalize_xof()
}
fn cshake256(v: sha3::CShake256) -> sha3::CShake256Reader {
v.finalize_xof()
}
|