Crate crypto_common
source ·Expand description
Common cryptographic traits.
Re-exports§
pub use getrandom;
getrandom
pub use rand_core;
rand_core
pub use hybrid_array as array;
pub use hybrid_array::typenum;
Modules§
- Hazardous materials.
Structs§
- The error type returned when key and/or IV used in the
KeyInit
,KeyIvInit
, andInnerIvInit
slice-based methods had an invalid length.
Traits§
- Trait which stores algorithm name constant, used in
Debug
implementations. - Types which process data in blocks.
- Trait implemented for supported block sizes, i.e. for types from
U1
toU255
. - Types which can be initialized from another type (usually block ciphers).
- Types which can be initialized from another type and additional initialization vector/nonce.
- Types which use another type for initialization.
- Types which use initialization vector (nonce) for initialization.
- Types which can be initialized from key.
- Types which can be initialized from key and initialization vector (nonce).
- Types which use key for initialization.
- Types which return data with the given size.
- Types which can process blocks in parallel.
- Resettable types.
Type Aliases§
- Alias for
AddBlockSize<A, B> = Sum<T, B::BlockSize>
- Block on which
BlockSizeUser
implementors operate. - Initialization vector (nonce) used by
IvSizeUser
implementors. - Key used by
KeySizeUser
implementors. - Output array of
OutputSizeUser
implementors. - Parallel blocks on which
ParBlocksSizeUser
implementors operate. - Alias for
SubBlockSize<A, B> = Diff<T, B::BlockSize>