Crate crypto_common
source ·Expand description
Common cryptographic traits.
Re-exports
pub use getrandom;getrandompub use rand_core;rand_corepub use hybrid_array as array;pub use hybrid_array::typenum;
Structs
- The error type returned when an object cannot be deserialized from the state.
- The error type returned when key and/or IV used in the
KeyInit,KeyIvInit, andInnerIvInitslice-based methods had an invalid length.
Traits
- Trait which stores algorithm name constant, used in
Debugimplementations. - Types which process data in blocks.
- Trait implemented for supported block sizes, i.e. for types from
U1toU255. - 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.
- Types which can serialize the internal state and be restored from it.
Type Aliases
- Alias for
AddBlockSize<A, B> = Sum<T, B::BlockSize> - Alias for
AddSerializedStateSize<T, S> = Sum<T, S::SerializedStateSize> - Block on which
BlockSizeUserimplementors operate. - Initialization vector (nonce) used by
IvSizeUserimplementors. - Key used by
KeySizeUserimplementors. - Output array of
OutputSizeUserimplementors. - Parallel blocks on which
ParBlocksSizeUserimplementors operate. - Serialized internal state.
- Alias for
SubBlockSize<A, B> = Diff<T, B::BlockSize> - Alias for
SubSerializedStateSize<T, S> = Diff<T, S::SerializedStateSize>