pub trait Sha2BlockHasherSubairConfig:
Send
+ Sync
+ Clone {
type Word: 'static + Shr<usize, Output = Self::Word> + Shl<usize, Output = Self::Word> + BitAnd<Output = Self::Word> + Not<Output = Self::Word> + BitXor<Output = Self::Word> + BitOr<Output = Self::Word> + RotateRight + WrappingAdd + PartialEq + From<u32> + TryInto<u32, Error: Debug> + Copy + Send + Sync;
Show 18 associated constants and 2 methods
const VARIANT: Sha2Variant;
const WORD_BITS: usize;
const BLOCK_WORDS: usize;
const ROWS_PER_BLOCK: usize;
const ROUNDS_PER_ROW: usize;
const ROUNDS_PER_BLOCK: usize;
const HASH_WORDS: usize;
const ROW_VAR_CNT: usize;
const WORD_U16S: usize = _;
const WORD_U8S: usize = _;
const BLOCK_U8S: usize = _;
const BLOCK_BITS: usize = _;
const ROUND_ROWS: usize = _;
const MESSAGE_ROWS: usize = _;
const ROUNDS_PER_ROW_MINUS_ONE: usize = _;
const SUBAIR_ROUND_WIDTH: usize = _;
const SUBAIR_DIGEST_WIDTH: usize = _;
const SUBAIR_WIDTH: usize = _;
// Required methods
fn get_k() -> &'static [Self::Word];
fn get_h() -> &'static [Self::Word];
}Required Associated Constants§
const VARIANT: Sha2Variant
Sourceconst BLOCK_WORDS: usize
const BLOCK_WORDS: usize
Number of words in a SHA block
Sourceconst ROWS_PER_BLOCK: usize
const ROWS_PER_BLOCK: usize
Number of rows per block
Sourceconst ROUNDS_PER_ROW: usize
const ROUNDS_PER_ROW: usize
Number of rounds per row. Must divide Self::ROUNDS_PER_BLOCK
Sourceconst ROUNDS_PER_BLOCK: usize
const ROUNDS_PER_BLOCK: usize
Number of rounds per block. Must be a multiple of Self::ROUNDS_PER_ROW
Sourceconst HASH_WORDS: usize
const HASH_WORDS: usize
Number of words in a SHA hash
Sourceconst ROW_VAR_CNT: usize
const ROW_VAR_CNT: usize
Number of vars needed to encode the row index with
Encoder
Provided Associated Constants§
Sourceconst BLOCK_BITS: usize = _
const BLOCK_BITS: usize = _
Number of bits in a SHA block
Sourceconst ROUND_ROWS: usize = _
const ROUND_ROWS: usize = _
Number of rows used for the sha rounds
Sourceconst MESSAGE_ROWS: usize = _
const MESSAGE_ROWS: usize = _
Number of rows used for the message
Sourceconst ROUNDS_PER_ROW_MINUS_ONE: usize = _
const ROUNDS_PER_ROW_MINUS_ONE: usize = _
Number of rounds per row minus one (needed for one of the column structs)
Sourceconst SUBAIR_ROUND_WIDTH: usize = _
const SUBAIR_ROUND_WIDTH: usize = _
Width of the Sha2RoundCols
Sourceconst SUBAIR_DIGEST_WIDTH: usize = _
const SUBAIR_DIGEST_WIDTH: usize = _
Width of the Sha2DigestCols
Sourceconst SUBAIR_WIDTH: usize = _
const SUBAIR_WIDTH: usize = _
Width of the Sha2BlockHasherCols
Required Associated Types§
type Word: 'static + Shr<usize, Output = Self::Word> + Shl<usize, Output = Self::Word> + BitAnd<Output = Self::Word> + Not<Output = Self::Word> + BitXor<Output = Self::Word> + BitOr<Output = Self::Word> + RotateRight + WrappingAdd + PartialEq + From<u32> + TryInto<u32, Error: Debug> + Copy + Send + Sync
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.