Crate crypto_common

Crate crypto_common 

Source
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§

InvalidKey
Error type for TryKeyInit for cases where the provided bytes do not correspond to a valid key.
InvalidLength
The error type returned when key and/or IV used in the KeyInit, KeyIvInit, and InnerIvInit slice-based methods had an invalid length.
RngErrorgetrandom
A small and no_std compatible error type
SysRnggetrandom
A TryRngCore interface over the system’s preferred random number source
WeakKeyError
The error type returned when a key is found to be weak.

Traits§

AlgorithmName
Trait which stores algorithm name constant, used in Debug implementations.
BlockSizeUser
Types which process data in blocks.
BlockSizes
Trait implemented for supported block sizes, i.e. for types from U1 to U255.
Generaterand_core
Secure random generation.
InnerInit
Types which can be initialized from another type (usually block ciphers).
InnerIvInit
Types which can be initialized from another type and additional initialization vector/nonce.
InnerUser
Types which use another type for initialization.
IvSizeUser
Types which use initialization vector (nonce) for initialization.
IvState
Trait for loading current IV state.
KeyInit
Types which can be initialized from a key.
KeyIvInit
Types which can be initialized from a key and initialization vector (nonce).
KeySizeUser
Types which use key for initialization.
OutputSizeUser
Types which return data with the given size.
ParBlocksSizeUser
Types which can process blocks in parallel.
Reset
Resettable types.
TryKeyInit
Types which can be fallibly initialized from a key.

Type Aliases§

AddBlockSize
Alias for AddBlockSize<A, B> = Sum<T, B::BlockSize>
Block
Block on which BlockSizeUser implementors operate.
Iv
Initialization vector (nonce) used by IvSizeUser implementors.
Key
Key used by KeySizeUser implementors.
Output
Output array of OutputSizeUser implementors.
OutputSize
Alias for the output size of OutputSizeUser implementors.
ParBlocks
Parallel blocks on which ParBlocksSizeUser implementors operate.
SubBlockSize
Alias for SubBlockSize<A, B> = Diff<T, B::BlockSize>