Expand description
Common cryptographic traits.
Re-exports§
pub use hybrid_array as array;pub use hybrid_array::typenum;pub use rand_core;rand_core
Modules§
- hazmat
- Hazardous materials.
Structs§
- Invalid
Key - Error type for
TryKeyInitfor cases where the provided bytes do not correspond to a valid key. - Invalid
Length - The error type returned when key and/or IV used in the
KeyInit,KeyIvInit, andInnerIvInitslice-based methods had an invalid length. - RngError
getrandom - A small and
no_stdcompatible error type - SysRng
getrandom - A
TryRngCoreinterface over the system’s preferred random number source - Weak
KeyError - The error type returned when a key is found to be weak.
Traits§
- Algorithm
Name - Trait which stores algorithm name constant, used in
Debugimplementations. - Block
Size User - Types which process data in blocks.
- Block
Sizes - Trait implemented for supported block sizes, i.e. for types from
U1toU255. - Generate
rand_core - Secure random generation.
- Inner
Init - Types which can be initialized from another type (usually block ciphers).
- Inner
IvInit - Types which can be initialized from another type and additional initialization vector/nonce.
- Inner
User - Types which use another type for initialization.
- IvSize
User - Types which use initialization vector (nonce) for initialization.
- IvState
- Trait for loading current IV state.
- KeyInit
- Types which can be initialized from a key.
- KeyIv
Init - Types which can be initialized from a key and initialization vector (nonce).
- KeySize
User - Types which use key for initialization.
- Output
Size User - Types which return data with the given size.
- ParBlocks
Size User - Types which can process blocks in parallel.
- Reset
- Resettable types.
- TryKey
Init - Types which can be fallibly initialized from a key.
Type Aliases§
- AddBlock
Size - Alias for
AddBlockSize<A, B> = Sum<T, B::BlockSize> - Block
- Block on which
BlockSizeUserimplementors operate. - Iv
- Initialization vector (nonce) used by
IvSizeUserimplementors. - Key
- Key used by
KeySizeUserimplementors. - Output
- Output array of
OutputSizeUserimplementors. - Output
Size - Alias for the output size of
OutputSizeUserimplementors. - ParBlocks
- Parallel blocks on which
ParBlocksSizeUserimplementors operate. - SubBlock
Size - Alias for
SubBlockSize<A, B> = Diff<T, B::BlockSize>