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;
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
, 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.
- 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
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. - Serialized internal state.
- Alias for
SubBlockSize<A, B> = Diff<T, B::BlockSize>
- Alias for
SubSerializedStateSize<T, S> = Diff<T, S::SerializedStateSize>