diff options
Diffstat (limited to 'vendor/crypto-common')
-rw-r--r-- | vendor/crypto-common/.cargo-checksum.json | 2 | ||||
-rw-r--r-- | vendor/crypto-common/CHANGELOG.md | 18 | ||||
-rw-r--r-- | vendor/crypto-common/Cargo.toml | 20 | ||||
-rw-r--r-- | vendor/crypto-common/src/lib.rs | 15 |
4 files changed, 48 insertions, 7 deletions
diff --git a/vendor/crypto-common/.cargo-checksum.json b/vendor/crypto-common/.cargo-checksum.json index 4043ecbfc..dab99a973 100644 --- a/vendor/crypto-common/.cargo-checksum.json +++ b/vendor/crypto-common/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"77f7a114f0d472c5a2eae818ddb81d3997d8d28373bf16b996d45d07ca3765e5","Cargo.toml":"557171ee4c07cad91539344fa0f87752c3104d39706ff7549af3decaac293e11","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"3521672491a3479422d5fe1aca6645dd2984090f85da6e5205abfb18fb7a6897","README.md":"3451ce2bc0b658041902a8e792023d9874700e9292eac9153c45f203430e24a0","src/lib.rs":"a6247fa4e20bc84d5a371f76c334b57e5fed3c8758976b2a29296904fb2a0007"},"package":"57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8"}
\ No newline at end of file +{"files":{"CHANGELOG.md":"15cc3255034d5c244f5f201bcd496b3120656cafcc69bcaa350e57e0f8be99c3","Cargo.toml":"0d7c931e6a6c24d1b440ba45ae038f396d5356c39d9eff40df8ba224254bd64a","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"3521672491a3479422d5fe1aca6645dd2984090f85da6e5205abfb18fb7a6897","README.md":"3451ce2bc0b658041902a8e792023d9874700e9292eac9153c45f203430e24a0","src/lib.rs":"5dd00d7ea362d1e4fc06141aae07a0f15166a0b8836ac8e8713f7d7f31d26a1e"},"package":"1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"}
\ No newline at end of file diff --git a/vendor/crypto-common/CHANGELOG.md b/vendor/crypto-common/CHANGELOG.md index ebd278695..9fa793693 100644 --- a/vendor/crypto-common/CHANGELOG.md +++ b/vendor/crypto-common/CHANGELOG.md @@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.1.6 (2022-07-16) +### Added +- Move `ParBlocks`/`ParBlocksSizeUser` from `cipher` crate ([#1052]) + +[#1052]: https://github.com/RustCrypto/traits/pull/1052 + +## 0.1.5 (2022-07-09) +### Fixed +- Support on-label MSRV ([#1049]) + +[#1049]: https://github.com/RustCrypto/traits/pull/1049 + +## 0.1.4 (2022-07-02) +### Added +- `getrandom` feature ([#1034]) + +[#1034]: https://github.com/RustCrypto/traits/pull/1034 + ## 0.1.3 (2022-02-16) ### Fixed - Minimal versions build ([#940]) diff --git a/vendor/crypto-common/Cargo.toml b/vendor/crypto-common/Cargo.toml index acbb81329..cfac76fa9 100644 --- a/vendor/crypto-common/Cargo.toml +++ b/vendor/crypto-common/Cargo.toml @@ -12,18 +12,29 @@ [package] edition = "2018" name = "crypto-common" -version = "0.1.3" +version = "0.1.6" authors = ["RustCrypto Developers"] description = "Common cryptographic traits" documentation = "https://docs.rs/crypto-common" readme = "README.md" -keywords = ["crypto", "traits"] -categories = ["cryptography", "no-std"] +keywords = [ + "crypto", + "traits", +] +categories = [ + "cryptography", + "no-std", +] license = "MIT OR Apache-2.0" repository = "https://github.com/RustCrypto/traits" + [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] +rustdoc-args = [ + "--cfg", + "docsrs", +] + [dependencies.generic-array] version = "0.14.4" features = ["more_lengths"] @@ -36,4 +47,5 @@ optional = true version = "1.14" [features] +getrandom = ["rand_core/getrandom"] std = [] diff --git a/vendor/crypto-common/src/lib.rs b/vendor/crypto-common/src/lib.rs index 187b1ac42..c49984cd2 100644 --- a/vendor/crypto-common/src/lib.rs +++ b/vendor/crypto-common/src/lib.rs @@ -4,8 +4,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", - html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", - html_root_url = "https://docs.rs/crypto-common/0.1.3" + html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg" )] #![forbid(unsafe_code)] #![warn(missing_docs, rust_2018_idioms)] @@ -26,10 +25,16 @@ use rand_core::{CryptoRng, RngCore}; /// Block on which [`BlockSizeUser`] implementors operate. pub type Block<B> = GenericArray<u8, <B as BlockSizeUser>::BlockSize>; + +/// Parallel blocks on which [`ParBlocksSizeUser`] implementors operate. +pub type ParBlocks<T> = GenericArray<Block<T>, <T as ParBlocksSizeUser>::ParBlocksSize>; + /// Output array of [`OutputSizeUser`] implementors. pub type Output<T> = GenericArray<u8, <T as OutputSizeUser>::OutputSize>; + /// Key used by [`KeySizeUser`] implementors. pub type Key<B> = GenericArray<u8, <B as KeySizeUser>::KeySize>; + /// Initialization vector (nonce) used by [`IvSizeUser`] implementors. pub type Iv<B> = GenericArray<u8, <B as IvSizeUser>::IvSize>; @@ -52,6 +57,12 @@ impl<T: BlockSizeUser> BlockSizeUser for &mut T { type BlockSize = T::BlockSize; } +/// Types which can process blocks in parallel. +pub trait ParBlocksSizeUser: BlockSizeUser { + /// Number of blocks which can be processed in parallel. + type ParBlocksSize: ArrayLength<Block<Self>>; +} + /// Types which return data with the given size. pub trait OutputSizeUser { /// Size of the output in bytes. |