Crate crypto_common
RustCrypto: Common Cryptographic Traits
Common traits used by cryptographic algorithms. Users should generally use higher-level trait crates instead of this one.
SemVer Policy
- All on-by-default features of this library are covered by SemVer
- MSRV is considered exempt from SemVer as noted above
License
Licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Modules
Structs
-
InvalidKey
Error type for
TryKeyInitfor 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, andInnerIvInitslice-based methods had an invalid length.
Traits
-
AlgorithmName
Trait which stores algorithm name constant, used in
Debugimplementations. - BlockSizeUser Types which process data in blocks.
- 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.
- KeyExport Serialize a key to a byte array.
- 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.
- SetIvState Trait for setting current IV state.
- 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
BlockSizeUserimplementors operate. -
Iv
Initialization vector (nonce) used by
IvSizeUserimplementors. -
Key
Key used by
KeySizeUserimplementors. -
Output
Output array of
OutputSizeUserimplementors. -
OutputSize
Alias for the output size of
OutputSizeUserimplementors. -
ParBlocks
Parallel blocks on which
ParBlocksSizeUserimplementors operate. -
SubBlockSize
Alias for
SubBlockSize<A, B> = Diff<T, B::BlockSize>