Module block_api
Low-level traits operating on blocks and wrappers around them.
Usage of traits in this module in user code is discouraged. Instead use core algorithm wrapped by the wrapper types, which implement the higher-level traits.
Structs
-
CtOutWrapper
Wrapper around
VariableOutputCorewhich selects output size at compile time. - Eager
- Lazy
Enums
-
TruncSide
Type which used for defining truncation side in the
VariableOutputCoretrait.
Traits
- AlgorithmName
- BlockSizeUser
-
BufferKindUser
Types which use
BlockBufferfunctionality. - CoreProxy A proxy trait to the core block-level type.
- EagerHash Trait implemented by eager hashes which expose their block-level core.
- ExtendableOutputCore Core trait for hash functions with extendable (XOF) output size.
- FixedOutputCore Core trait for hash functions with fixed output size.
- OutputSizeUser
- Reset
-
SmallBlockSizeUser
Sub-trait of
BlockSizeUserimplemented ifBlockSizeis bigger thanU0and smaller thanU256. - UpdateCore Types which consume data in blocks.
- VariableOutputCore Core trait for hash functions with variable output size.
- VariableOutputCoreCustomized Trait adding customization string to hash functions with variable output.
- XofReaderCore Core reader trait for extendable-output function (XOF) result.
Type Aliases
- Block
-
Buffer
Buffer type used by type which implements
BufferKindUser.