Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions kupyna/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ pub(crate) mod utils;
use digest::consts::{U28, U32, U48, U64};

digest::buffer_ct_variable!(
/// Short Kupyna variant generic over output size.
/// Short Kupyna variant generic over output size in bytes, up to 32 bytes.
pub struct KupynaShort<OutSize>(block_api::KupynaShortVarCore);
max_size: U32;
);
digest::buffer_ct_variable!(
/// Long Kupyna variant generic over output size.
/// Long Kupyna variant generic over output size in bytes, from 32 to 64 bytes.
///
/// A 32-byte output from this variant is not equivalent to [`Kupyna256`],
/// which uses the short variant's state and block size.
pub struct KupynaLong<OutSize>(block_api::KupynaLongVarCore);
max_size: U64;
);
Expand Down
Loading