commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
ea2640488861ac6a46200dcf8fa2e74b4c50ece6 | Tony Arcieri | 2024-01-09T00:06:36 | streebog v0.11.0-pre.0 (#534) | diff --git a/streebog/Cargo.toml b/streebog/Cargo.toml
index c1aa8f1..96e934f 100644
--- a/streebog/Cargo.toml
+++ b/streebog/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "streebog"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
description = "Streebog (GOST R 34.11-2012) hash function"
authors = ["RustCrypto Dev... | 1 | 1 | 1 |
f0c8fe0d7e1cdb2f27c22b5b88da3a7c933f2282 | Tony Arcieri | 2024-01-08T23:58:13 | md-5 0.11.0-pre.0 (#533) | diff --git a/Cargo.lock b/Cargo.lock
index b48b69d..ddc6430 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -205,7 +205,7 @@ checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
[[package]]
name = "md-5"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"cfg-if",
"digest",... | 2 | 2 | 2 |
bf5428e6426318f387482bc46eb0049a625858b3 | Tony Arcieri | 2024-01-08T23:42:36 | sha1 v0.11.0-pre.0 (#532) | diff --git a/Cargo.lock b/Cargo.lock
index a421580..b48b69d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -263,7 +263,7 @@ dependencies = [
[[package]]
name = "sha1"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"cfg-if",
"cpufeatures",
diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml
index b1... | 2 | 2 | 2 |
b735ec3e9ce1be47cf8cf65649bfd5930210d19a | Tony Arcieri | 2024-01-08T20:51:19 | sha3 v0.11.0-pre.0 (#531) | diff --git a/Cargo.lock b/Cargo.lock
index e3bc692..a421580 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -303,7 +303,7 @@ dependencies = [
[[package]]
name = "sha3"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"digest",
"hex-literal",
diff --git a/k12/Cargo.toml b/k12/Cargo.toml
index 2af9... | 3 | 3 | 3 |
10ee2ad407144bb497ecedaebd0dff67fc3e800e | Tony Arcieri | 2024-01-08T20:34:03 | sha2 v0.11.0-pre.0 (#530) | diff --git a/Cargo.lock b/Cargo.lock
index 92ad0d1..e3bc692 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -283,7 +283,7 @@ dependencies = [
[[package]]
name = "sha2"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"cfg-if",
"cpufeatures",
diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml
index 92... | 2 | 2 | 2 |
dfe48e003a0559a47d24fcf5e57c45bef5aa7a2b | Tony Arcieri | 2024-01-06T17:47:53 | Enable `oid` feature by default (#528)
Having to enable this feature has been an ongoing source of confusion,
especially since the compiler error that results is fairly inscrutible. | diff --git a/belt-hash/Cargo.toml b/belt-hash/Cargo.toml
index 05d0726..81e34c1 100644
--- a/belt-hash/Cargo.toml
+++ b/belt-hash/Cargo.toml
@@ -21,6 +21,6 @@ digest = { version = "=0.11.0-pre.3", features = ["dev"] }
hex-literal = "0.4"
[features]
-default = ["std"]
+default = ["oid", "std"]
std = ["digest/std"]
... | 10 | 18 | 18 |
2358b8501f7c6012025481262c1b3b07dd30ca4f | Artyom Pavlov | 2024-01-06T06:26:16 | sha2: use correct names for shl and shr functions in the software backend (#526) | diff --git a/sha2/src/sha256/soft.rs b/sha2/src/sha256/soft.rs
index 34826a7..69eb488 100644
--- a/sha2/src/sha256/soft.rs
+++ b/sha2/src/sha256/soft.rs
@@ -3,12 +3,12 @@ use crate::consts::BLOCK_LEN;
use core::convert::TryInto;
#[inline(always)]
-fn shl(v: [u32; 4], o: u32) -> [u32; 4] {
+fn shr(v: [u32; 4], o: u3... | 1 | 5 | 5 |
9f66cb810c398e4f6ff8f2ea90196d57f41dd729 | Mengsheng Wu | 2023-11-18T15:31:08 | md4: Optimize compress to improve hash performance (#519) | diff --git a/md4/src/lib.rs b/md4/src/lib.rs
index 2a4cf47..8ef33ae 100644
--- a/md4/src/lib.rs
+++ b/md4/src/lib.rs
@@ -30,11 +30,10 @@
)]
#![forbid(unsafe_code)]
#![warn(rust_2018_idioms)]
-#![allow(clippy::many_single_char_names)]
pub use digest::{self, Digest};
-use core::{convert::TryInto, fmt};
+use core:... | 1 | 52 | 55 |
70a2b62c50087fa6df5070ab696c5a355072cb12 | Khải | 2023-10-30T22:28:56 | Add simpler code snippet to the documentation (#515)
Co-authored-by: Tony Arcieri <bascule@gmail.com> | diff --git a/sha1/src/lib.rs b/sha1/src/lib.rs
index 38ddc4b..25e867e 100644
--- a/sha1/src/lib.rs
+++ b/sha1/src/lib.rs
@@ -11,6 +11,18 @@
//!
//! # Usage
//!
+//! ## One-shot API
+//!
+//! ```rust
+//! use hex_literal::hex;
+//! use sha1::{Sha1, Digest};
+//!
+//! let result = Sha1::digest(b"hello world");
+//! as... | 2 | 26 | 0 |
e3ab2579a0c6d51f6570679b8a7e99d87c4f14c6 | Артём Павлов [Artyom Pavlov] | 2023-10-27T11:57:49 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 674afe8..b676d71 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f"
[[package]]
name = "cpufeatures"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-la... | 1 | 2 | 2 |
c640781bc10cfdb6d652232c492ecd7e27210b26 | Alexander Wagner | 2023-10-23T13:59:18 | ascon-hash: Add Zeroize feature (#480)
Not zeroizing the state allows to recover any squeezed output. This is
because the `ascon` permutations can be inversed. Hence, access to the
complete state allows to perform this operation. | diff --git a/ascon-hash/Cargo.toml b/ascon-hash/Cargo.toml
index c045833..cb3707c 100644
--- a/ascon-hash/Cargo.toml
+++ b/ascon-hash/Cargo.toml
@@ -19,7 +19,7 @@ rust-version = "1.56"
[dependencies]
digest = { version = "0.10", default-features = false, features = ["core-api"] }
-ascon = "0.3"
+ascon = { version =... | 1 | 2 | 1 |
cfda39f5cf15ffa1a3492ca9fefaf732bd97bf95 | Артём Павлов [Artyom Pavlov] | 2023-10-23T10:13:17 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 08fd47d..674afe8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ checksum = "28c122c3980598d243d63d9a704629a2d748d101f278052ff068be5a4423ab6f"
[[package]]
name = "cpufeatures"
-version = "0.2.9"
+version = "0.2.10"
source = "registry+https://github.com/rust-lan... | 1 | 4 | 4 |
28a7b0da94a581e71e85d264836e1c3f8343338e | Артём Павлов [Artyom Pavlov] | 2023-09-26T13:08:15 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 11d4f3d..08fd47d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -27,9 +27,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.0.82"
+version = "1.0.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "305fe645edc1442a0fa8b6726ba61d422798d... | 1 | 8 | 8 |
a24e8b73a6db1c8d11b9b4f31f9dd334467bb6cc | hev | 2023-09-22T12:58:20 | md5: Add inline-asm backend for LoongArch64 targets (#505) | diff --git a/Cargo.lock b/Cargo.lock
index 6f8aa6f..361eac7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -151,6 +151,7 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
name = "md-5"
version = "0.10.5"
dependencies = [
+ "cfg-if",
"digest",
"hex-literal",
"md5-asm",
diff --git a/m... | 7 | 369 | 169 |
42d3a25a4e2d0e63cc83f7ed7959b705eecb0075 | Daniel Reisinger | 2023-08-16T18:58:50 | k12: fix incorrect hash calculation (#499)
If the length of the merged input string is a multiple of the chunk size,
then the previous implementation appends a chaining value for an empty
chunk. | diff --git a/k12/src/lib.rs b/k12/src/lib.rs
index a5f593c..7f1602e 100644
--- a/k12/src/lib.rs
+++ b/k12/src/lib.rs
@@ -52,6 +52,32 @@ impl<'cs> KangarooTwelveCore<'cs> {
chain_length: 0usize,
}
}
+
+ fn process_chunk(&mut self) {
+ debug_assert!(self.bufpos == CHUNK_SIZE);
+ ... | 2 | 72 | 24 |
7cda5226b05000b85ca4daa7846c28476079520c | Артём Павлов [Artyom Pavlov] | 2023-07-05T11:07:23 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 78a17c4..86aa2eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,15 +39,15 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "const-oid"
-version = "0.9.2"
+version = "0.9.3"
source = "registry+https://github.com/rust-lang... | 1 | 6 | 6 |
7287da13a948b6c1f73183bed72b6734c51e795d | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:25:10 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 38aca5d..78a17c4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,9 +45,9 @@ checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913"
[[package]]
name = "cpufeatures"
-version = "0.2.7"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang... | 1 | 2 | 2 |
a16cb4c753489448f677fb2a811d0016059cc20d | Артём Павлов [Artyom Pavlov] | 2023-06-11T05:43:27 | jh: fix license | diff --git a/jh/Cargo.toml b/jh/Cargo.toml
index cd2c77a..28e8f53 100644
--- a/jh/Cargo.toml
+++ b/jh/Cargo.toml
@@ -3,7 +3,7 @@ name = "jh"
version = "0.1.0"
description = "Pure Rust implementation of the JH cryptographic hash function"
authors = ["RustCrypto Developers"]
-license = "MIT or Apache-2.0"
+license = "... | 1 | 1 | 1 |
8f2d5c404b15b8edae18757dec4e2bae8ad9604b | Alexander Wagner | 2023-05-20T21:29:31 | sha3: Add Drop & ZeroizeOnDrop for Sha3State (#479)
Not zeroizing the Sha3State allows to recover any squeezed output. This
is because the `keccak` permutations can be inversed. Hence, access to
the complete state allows to perform this operation.
While this is security-relevant, including it would significantly
... | diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index 17e0ef1..8587a8a 100644
--- a/sha3/Cargo.toml
+++ b/sha3/Cargo.toml
@@ -18,6 +18,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.10.4"
keccak = "0.1.4"
+zeroize = { version = "1.6.0", default-features = false, optional=true } # WARNING: Bum... | 2 | 13 | 0 |
e58bce0002a90d90270a8f7562f93daf20bfd5ad | Kiyan | 2023-05-16T10:21:55 | sm3: Improve fn gg2 performance (#477) | diff --git a/sm3/src/compress.rs b/sm3/src/compress.rs
index 731efb3..ea381e9 100644
--- a/sm3/src/compress.rs
+++ b/sm3/src/compress.rs
@@ -19,7 +19,8 @@ fn gg1(x: u32, y: u32, z: u32) -> u32 {
#[inline(always)]
fn gg2(x: u32, y: u32, z: u32) -> u32 {
- (x & y) | (!x & z)
+ // This line is equivalent to `(x ... | 1 | 2 | 1 |
91dfb20e0dfed8988309b492034231dce8e5b9ac | Alexander Wagner | 2023-05-09T13:00:37 | k12: Refactor (#353)
Remove the use of vectors and implement `XofReader`. | diff --git a/Cargo.lock b/Cargo.lock
index 5e3fcbc..00ffe6a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -135,6 +135,7 @@ version = "0.2.1"
dependencies = [
"digest",
"hex-literal",
+ "sha3 0.10.8",
]
[[package]]
@@ -148,9 +149,9 @@ dependencies = [
[[package]]
name = "libc"
-version = "0.2.142"
+version = ... | 5 | 187 | 346 |
4d13ef1e2f42d0bce3a1b53cf626ed4fb1f85fab | Alexander Wagner | 2023-05-05T12:19:08 | sha3: Use p1600 fn to fix performance degrade (#472) | diff --git a/Cargo.lock b/Cargo.lock
index 5c3c43c..7e439e6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -139,9 +139,9 @@ dependencies = [
[[package]]
name = "keccak"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3afef3b6eff9ce9d8ff9b3601125eec7f... | 3 | 5 | 5 |
c66d028f3707263e1d426592f65d624520f14df9 | Milo Moisson | 2023-04-27T13:25:29 | Empty OID crashes the cargo doumentation generation with oid feature (#470) | diff --git a/sha3/src/lib.rs b/sha3/src/lib.rs
index 707d664..0f87ee5 100644
--- a/sha3/src/lib.rs
+++ b/sha3/src/lib.rs
@@ -177,7 +177,6 @@ impl_turbo_shake!(
TurboShake128Reader,
U168,
"TurboSHAKE128",
- "",
);
impl_turbo_shake!(
TurboShake256Core,
@@ -186,7 +185,6 @@ impl_turbo_shake!(
... | 2 | 1 | 3 |
4df85b7675832fd30d1c7cd1520835f63ddc54eb | Артём Павлов [Artyom Pavlov] | 2023-04-21T07:10:47 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 490ed22..5c3c43c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,9 +45,9 @@ checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913"
[[package]]
name = "cpufeatures"
-version = "0.2.6"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang... | 1 | 6 | 6 |
608861985fea09933c2741a6a5537a4e80cc9057 | Carol (Nichols || Goulding) | 2023-04-17T17:32:58 | Fix an off-by-one error in the docs for sha2 (#467)
There are six total, and the docs mentioned "first two" and "last three"
= 5.
This appears to have been introduced in 75298d3, and based on the text
in this spot that was removed in that commit, this should read "last
four" instead. | diff --git a/sha2/src/lib.rs b/sha2/src/lib.rs
index 9082fc5..a3482e8 100644
--- a/sha2/src/lib.rs
+++ b/sha2/src/lib.rs
@@ -6,7 +6,8 @@
//! Algorithmically, there are only 2 core algorithms: SHA-256 and SHA-512.
//! All other algorithms are just applications of these with different initial
//! hash values, and trun... | 1 | 2 | 1 |
f8b2eab9249fd3d1c506e7032fab92111520c35e | Dario Nieuwenhuis | 2022-12-16T19:49:42 | blake2: add Cargo feature to optimize for code size. (#440) | diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index ece7768..3fd7428 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -25,3 +25,4 @@ reset = [] # Enable reset functionality
simd = []
simd_opt = ["simd"]
simd_asm = ["simd_opt"]
+size_opt = [] # Optimize for code size. Removes some `inline(always)`
diff ... | 2 | 5 | 4 |
5da21fb6e08d4373678bb4a3f2035b508bff7049 | Артём Павлов [Artyom Pavlov] | 2022-11-17T01:00:37 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 80eaa49..29f2d8d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,9 +39,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "const-oid"
-version = "0.9.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/c... | 1 | 4 | 4 |
8bf26e17b2e3c397f30e32e9579925fce0f71a86 | Tony Arcieri | 2022-11-15T18:35:50 | sha3: add `asm` feature (#437)
Transitively enables the `asm` feture in the `keccak` crate which was
added in RustCrypto/sponges#24. | diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index b679b0d..7872902 100644
--- a/sha3/Cargo.toml
+++ b/sha3/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.10.4"
-keccak = "0.1"
+keccak = "0.1.3"
[dev-dependencies]
digest = { version = "0.10.4", features = ["dev... | 1 | 3 | 1 |
881b21f1fe62344361a323c7ee3520ff3e3794df | Vladislav Melnik | 2022-11-11T09:17:39 | Fix `KeyInit` for blake2 (#432) | diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs
index 4a01471..b8e8a6f 100644
--- a/blake2/src/macros.rs
+++ b/blake2/src/macros.rs
@@ -325,7 +325,7 @@ macro_rules! blake2_mac_impl {
let mut padded_key = Block::<$hash>::default();
padded_key[..kl].copy_from_slice(key);
... | 1 | 1 | 1 |
08d677fc9b978320eb3d5c261339f3d72f5f07f6 | Rob Ede | 2022-10-16T17:15:47 | sha1: fix typo (#424) | diff --git a/sha1/src/lib.rs b/sha1/src/lib.rs
index e5fbf2a..38ddc4b 100644
--- a/sha1/src/lib.rs
+++ b/sha1/src/lib.rs
@@ -33,12 +33,12 @@
//!
//! This crate has been transferred to the RustCrypto organization and uses
//! implementation previously published as the `sha-1` crate. The previous
-//! zero dependencie... | 1 | 2 | 2 |
b74be34693d32996b6861806d221edfafa1cb4ff | Artyom Pavlov | 2022-08-30T15:28:19 | Remove html_root_url (#393) | diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index 48e8386..c4cd728 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "blake2"
-version = "0.10.4" # Also update html_root_url in lib.rs when bumping this
+version = "0.10.4"
description = "BLAKE2 hash functions"
authors = [... | 34 | 34 | 52 |
e5ad181cdb50f30393a2efe484029b6d53e11110 | David Knaack | 2022-08-29T11:51:42 | Ignore `asm` feature on unsupported targets (#388) | diff --git a/md5/Cargo.toml b/md5/Cargo.toml
index 594865a..9b71d34 100644
--- a/md5/Cargo.toml
+++ b/md5/Cargo.toml
@@ -16,6 +16,8 @@ name = "md5"
[dependencies]
digest = "0.10.3"
+
+[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
md5-asm = { version = "0.5", optional = true }
[de... | 6 | 10 | 6 |
e5d93562432a4075f7cf576cfa16c952807f554e | Артём Павлов [Artyom Pavlov] | 2022-08-19T10:22:02 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 03307e8..78e5808 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,18 +39,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cpufeatures"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-la... | 1 | 8 | 8 |
60ca9bafa7f894cda770b5cef3bfa43026bd8bab | iquerejeta | 2022-06-14T16:11:46 | fsb: resolve hashing errors (#379) | diff --git a/fsb/src/macros.rs b/fsb/src/macros.rs
index 8b1e31a..7b59004 100644
--- a/fsb/src/macros.rs
+++ b/fsb/src/macros.rs
@@ -197,8 +197,8 @@ macro_rules! fsb_impl {
truncated[0] = array[starting_byte] << (bits_in_cue - shift_value as u8);
truncated[0] ^= array[0] >> shi... | 2 | 9 | 9 |
352f4c9028e6b80ccf2e4e1e52e57e6ae76b1ad6 | Артём Павлов [Artyom Pavlov] | 2022-02-18T12:50:10 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index ed41e40..b608f7e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -27,9 +27,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.0.72"
+version = "1.0.73"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22a9137b95ea06864e018375b72adfb7db6e6... | 1 | 2 | 2 |
4e5ca4cc5523e8b044cdcdf1cd52e08d564ffc0f | VersBinarii | 2022-01-09T02:49:54 | Add required 'static lifetime bound (#347) | diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs
index ece46e7..ef3e029 100644
--- a/blake2/src/macros.rs
+++ b/blake2/src/macros.rs
@@ -358,7 +358,7 @@ macro_rules! blake2_mac_impl {
impl<OutSize> OutputSizeUser for $name<OutSize>
where
- OutSize: ArrayLength<u8> + IsLessOrEqual<... | 1 | 2 | 2 |
cbd684927c2b1dbace19ccd04157f927a92c12c2 | Alex | 2021-12-15T23:24:48 | Sha3 refactor unsafe (#338) | diff --git a/sha3/src/lib.rs b/sha3/src/lib.rs
index b6dcee0..e584435 100644
--- a/sha3/src/lib.rs
+++ b/sha3/src/lib.rs
@@ -62,7 +62,7 @@
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_root_url = "https://docs.rs/sha3/0.10.0"
)]
-#![deny(unsafe_code)]
+#![for... | 3 | 9 | 41 |
d6c8c3c1b07336b7c82c3f34913454d616c3da91 | Chris Palmer | 2021-10-06T01:42:28 | Remove some `unsafe` (#320)
As far as I can tell, building locally, these functions don't need to be marked `unsafe`. | diff --git a/sha2/src/sha512/x86.rs b/sha2/src/sha512/x86.rs
index 14a7249..5f555c2 100644
--- a/sha2/src/sha512/x86.rs
+++ b/sha2/src/sha512/x86.rs
@@ -178,21 +178,21 @@ unsafe fn rounds_0_63_avx2(
}
#[inline(always)]
-unsafe fn rounds_64_79(current_state: &mut State, ms: &MsgSchedule) {
+fn rounds_64_79(current_s... | 1 | 4 | 4 |
efda00dd6bb9d2bd80244ac36f9b3238f383521f | Ivan Kalinin | 2021-09-08T17:10:18 | Add x86 intrinsics support for sha2-512 (#312) | diff --git a/sha2/src/sha512.rs b/sha2/src/sha512.rs
index 02439fd..22f141e 100644
--- a/sha2/src/sha512.rs
+++ b/sha2/src/sha512.rs
@@ -231,10 +231,17 @@ cfg_if::cfg_if! {
if #[cfg(feature = "force-soft")] {
mod soft;
use soft::compress;
- } else if #[cfg(all(feature = "asm", any(target_arch ... | 2 | 362 | 3 |
a7a5ad46489e2b2fe3206f31f1a705b6de48ee03 | Mazdak Farrokhzad | 2021-08-25T12:58:40 | make blake2 with simd_opt work on nightly (#301) | diff --git a/blake2/src/lib.rs b/blake2/src/lib.rs
index 28cb1d9..b74c7b5 100644
--- a/blake2/src/lib.rs
+++ b/blake2/src/lib.rs
@@ -88,6 +88,7 @@
)]
#![warn(missing_docs, rust_2018_idioms)]
#![cfg_attr(feature = "simd", feature(platform_intrinsics, repr_simd))]
+#![cfg_attr(feature = "simd", allow(incomplete_featur... | 5 | 17 | 7 |
bf1876bf0baf90976f0648b8ed938d1213986b95 | Lyubomir Gavadinov | 2021-07-19T16:17:31 | Fix typo in RIPEMD-256 keywords (#296) | diff --git a/ripemd256/Cargo.toml b/ripemd256/Cargo.toml
index c3e6acb..34471df 100644
--- a/ripemd256/Cargo.toml
+++ b/ripemd256/Cargo.toml
@@ -5,7 +5,7 @@ authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
edition = "2018"
readme = "README.md"
-keywords = ["crypto", "ripemd320", "hash", "digest"]
+k... | 1 | 1 | 1 |
3d17a67de9e74ec06b6fb055107a408de4ee912c | Tony Arcieri | 2021-07-19T02:13:54 | Cargo.lock: bump dependencies (#294) | diff --git a/Cargo.lock b/Cargo.lock
index 946ce38..e984c66 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,9 +45,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "cc"
-version = "1.0.67"
+version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates... | 1 | 8 | 8 |
1b4a55c7c4c338f8a486122933c79d1082781f96 | Tony Arcieri | 2021-07-18T20:10:49 | sha1: bump sha1-asm to v0.5 (#289) | diff --git a/Cargo.lock b/Cargo.lock
index 733d92a..a1b4567 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "blake2"
version = "0.9.1"
@@ -239,9 +241,9 @@ dependencies = [
[[pack... | 5 | 17 | 24 |
5f1cf4f3cc819a7e1bd49674e926cfa651a5ffe8 | наб | 2021-06-03T15:01:16 | Use archive.org link to Whirlpool description (#282) | diff --git a/whirlpool/src/lib.rs b/whirlpool/src/lib.rs
index 1a2b6d6..e2e313f 100644
--- a/whirlpool/src/lib.rs
+++ b/whirlpool/src/lib.rs
@@ -9,7 +9,7 @@
//! (pre 2003)) were not used much anyway (both have never been recommended
//! by NESSIE).
//!
-//! For details see <http://www.larc.usp.br/~pbarreto/Whirlpool... | 1 | 1 | 1 |
6fcda550abf3468a5bfa09d22f03ca5773ffc7ae | Linus Gasser | 2021-05-15T20:12:27 | Make documentation more precise (#277)
According to https://en.wikipedia.org/wiki/SHA-2#Comparison_of_SHA_functions, it's 8 x 32 bits for sha256 and 8 x 64 bits for sha512. Reading just `the 32-bit 'Sha256'` is confusing to me.
But YMMV... | diff --git a/sha2/src/lib.rs b/sha2/src/lib.rs
index 2b5b86e..1927067 100644
--- a/sha2/src/lib.rs
+++ b/sha2/src/lib.rs
@@ -2,15 +2,15 @@
//!
//! There are 6 standard algorithms specified in the SHA-2 standard:
//!
-//! * `Sha224`, which is the 32-bit `Sha256` algorithm with the result truncated
+//! * `Sha224`, wh... | 1 | 6 | 6 |
1de4114adb78210fe9704f5e39fe9c29e3c7994a | Tony Arcieri | 2021-05-15T19:29:22 | sha1+sha2: make aarch64 CPU feature detection OS-independent (#276)
`cpufeatures` v0.1.4 can build on any `aarch64` target, not just
Linux/macOS ones:
https://github.com/RustCrypto/utils/pull/40
This PR bumps the minimum `cpufeatures` requirement to v0.1.4 and
removes the OS-specifisms on `aarch64` targets. | diff --git a/Cargo.lock b/Cargo.lock
index 1a081a7..86b8e54 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -55,9 +55,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cpufeatures"
-version = "0.1.3"
+version = "0.1.4"
source = "registry+https://github.com/rust-lang... | 5 | 8 | 16 |
ca27667a7507a96b34013a8cbee2eee7ea7e29d7 | Tony Arcieri | 2021-05-06T23:20:56 | sha1+sha2: use cpufeatures v0.1.1 crate release (#269) | diff --git a/Cargo.lock b/Cargo.lock
index 6b45ecf..15eb39e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -56,8 +56,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cpufeatures"
-version = "0.1.0"
-source = "git+https://github.com/rustcrypto/utils.git#fd95867b1141... | 3 | 9 | 8 |
12493fc7af31941ccaf228e273b7551212da1339 | Tony Arcieri | 2021-05-06T21:12:15 | sha1: use `cpufeatures` to detect SHA-1 on `aarch64` (#268)
Uses the newly added `aarch64` support in the `cpufeatures` crate for
`sha1` CPU feature detection on Linux and macOS/M1. | diff --git a/Cargo.lock b/Cargo.lock
index 3a9f211..6b45ecf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -54,12 +54,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
-[[package]]
-name = "cpufeatures"
... | 4 | 20 | 25 |
d13936a82a9cf0f9cf5013e3afbd525b5e1979c1 | Tony Arcieri | 2021-05-06T20:39:29 | sha2: use `cpufeatures` to detect `sha2` on `aarch64` (#267)
Uses the newly added `aarch64` support in the `cpufeatures` crate for
`sha2` CPU feature detection on Linux and macOS/M1. | diff --git a/Cargo.lock b/Cargo.lock
index 60e5b3c..3a9f211 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,6 +60,14 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cd5a7748210e7ec1a9696610b1015e6e31fbf58f77a160801f124bd1c36592a"
+[[package]]
+name = "cpufeatures"
... | 4 | 22 | 22 |
bf761edb53ba080e6e74f1c429556fa1db5bb047 | Tony Arcieri | 2021-05-05T15:50:48 | sha1+sha2: switch from `cpuid-bool` to `cpufeatures` (#263)
Renamed in this PR:
https://github.com/RustCrypto/utils/pull/381 | diff --git a/Cargo.lock b/Cargo.lock
index aad4c1e..a0365b0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -55,10 +55,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
-name = "cpuid-bool"
-version = "0.2.0"
... | 5 | 9 | 9 |
1e775edda289729d2896e74b88a255c4f62702cd | Tony Arcieri | 2021-05-05T15:27:39 | sha2: bump `sha2-asm` to v0.6.1 release (#262)
This release includes support for Apple M1 CPUs:
https://github.com/RustCrypto/asm-hashes/pull/35 | diff --git a/Cargo.lock b/Cargo.lock
index 3a997a3..aad4c1e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,8 +261,9 @@ dependencies = [
[[package]]
name = "sha2-asm"
-version = "0.6.0"
-source = "git+https://github.com/dignifiedquire/asm-hashes?branch=arm-m1#8f5a9eb13e01220ce861225fa4e5c803d4749098"
+version = "0... | 3 | 4 | 6 |
e8b3abe4427d48842da6ca83d9c3621214ef9d78 | Friedel Ziegelmayer | 2021-05-05T14:22:25 | feat(sha2): use latest sha2-asm and enable M1 (#261) | diff --git a/Cargo.lock b/Cargo.lock
index 19d3adc..3a997a3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -32,9 +32,9 @@ dependencies = [
[[package]]
name = "block-padding"
-version = "0.2.0"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c98bfd7c112b6399fef97cc0614a... | 6 | 35 | 30 |
1c1182c8b8e9aee5f3e082b77b9a6cb1d273350f | Tony Arcieri | 2021-04-05T17:26:05 | rustfmt (#253)
Formats all crates using Rust 1.51's rustfmt:
rustfmt 1.4.36-stable (7de6968e 2021-02-07) | diff --git a/blake2/src/blake2.rs b/blake2/src/blake2.rs
index 4091365..3255a30 100644
--- a/blake2/src/blake2.rs
+++ b/blake2/src/blake2.rs
@@ -4,16 +4,15 @@ macro_rules! blake2_impl {
$block_size:ident, $R1:expr, $R2:expr, $R3:expr, $R4:expr, $IV:expr,
$vardoc:expr, $doc:expr,
) => {
-
... | 5 | 72 | 54 |
ca0b4ba07d1c5e9b0cb503dd1c6c467d7b3e0359 | Jack Lloyd | 2021-02-24T17:55:47 | Update cpuid-bool dependency to 0.2 (#240) | diff --git a/Cargo.lock b/Cargo.lock
index f136f49..99b68c8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -55,9 +55,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cpuid-bool"
-version = "0.1.2"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/... | 5 | 10 | 6 |
979b5de8733959c1ccc54151d1d469181aa73447 | Artyom Pavlov | 2021-01-13T20:49:07 | ripemd320: fix clippy warning (#216) | diff --git a/ripemd320/src/block.rs b/ripemd320/src/block.rs
index fc79ca8..4834ead 100644
--- a/ripemd320/src/block.rs
+++ b/ripemd320/src/block.rs
@@ -14,7 +14,7 @@ pub const H0: [u32; DIGEST_BUF_LEN] = [
0xc3d2_e1f0,
0x7654_3210,
0xfedc_ba98,
- 0x89a_bcdef,
+ 0x89ab_cdef,
0x0123_4567,
... | 1 | 1 | 1 |
0215edce5ea67125d5ae0f4e743620e777866894 | Artyom Pavlov | 2021-01-13T20:42:15 | Remove asm-related TODO comments (#215)
Closes #213
The comments are removed in favor of RustCrypto/asm-hashes#26. | diff --git a/sha1/src/compress.rs b/sha1/src/compress.rs
index af35679..c849c89 100644
--- a/sha1/src/compress.rs
+++ b/sha1/src/compress.rs
@@ -10,7 +10,6 @@ cfg_if::cfg_if! {
mod aarch64;
use aarch64::compress as compress_inner;
} else if #[cfg(all(feature = "asm", any(target_arch = "x86", targ... | 4 | 0 | 4 |
78f00c5f6d218ffd996c090e1b3ec858870cb816 | Xiang Li | 2020-11-23T21:12:32 | Fix using sha2_asm on aarch64. (#207)
The code doesn't compile before.
Can use `cargo test --features asm` to verify.
Tested on AWS Graviton2 server. | diff --git a/sha2/src/sha256/aarch64.rs b/sha2/src/sha256/aarch64.rs
index a5967ca..1b8b0c8 100644
--- a/sha2/src/sha256/aarch64.rs
+++ b/sha2/src/sha256/aarch64.rs
@@ -12,9 +12,9 @@ pub fn compress(state: &mut [u32; 8], blocks: &[[u8; 64]]) {
if sha2_supported() {
// TODO: replace after sha2-asm rework
... | 1 | 2 | 2 |
e617b1fdea3cae49ee94765c66cc8a9cef839203 | Artyom Pavlov | 2020-11-06T13:05:33 | Add SHAKE example to sha3 (#206) | diff --git a/sha3/src/lib.rs b/sha3/src/lib.rs
index 18737e7..8317629 100644
--- a/sha3/src/lib.rs
+++ b/sha3/src/lib.rs
@@ -11,11 +11,12 @@
//! * `Keccak224`, `Keccak256`, `Keccak384`, `Keccak512` (NIST submission
//! without padding changes)
//!
-//! # Usage
+//! # Examples
//!
-//! An example of using `SHA3-2... | 1 | 21 | 3 |
c5fbbc5481c5ba8ec6c3aca8a334d9d8168acaa8 | Artyom Pavlov | 2020-08-10T17:15:02 | Use SVG logo (#186) | diff --git a/blake2/src/lib.rs b/blake2/src/lib.rs
index a58d6ec..28cb1d9 100644
--- a/blake2/src/lib.rs
+++ b/blake2/src/lib.rs
@@ -82,7 +82,10 @@
//! [2]: https://github.com/cesarb/blake2-rfc
#![no_std]
-#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
+#![doc(
+ ... | 15 | 60 | 15 |
4b9939e232143fde68d1ed761f5c962d4fa8527c | Артём Павлов [Artyom Pavlov] | 2020-06-24T14:55:55 | fix clippy warning | diff --git a/blake2/src/blake2.rs b/blake2/src/blake2.rs
index 6469448..4091365 100644
--- a/blake2/src/blake2.rs
+++ b/blake2/src/blake2.rs
@@ -156,7 +156,7 @@ macro_rules! blake2_impl {
t0: 0,
m0: [0; 16],
- h0: h0,
+ h0,
... | 1 | 1 | 1 |
15c30606298e40a76d1a125723ce819aba3760e9 | Artyom Pavlov | 2020-06-11T14:55:10 | Bump opaque-debug to v0.3.0 (#168) | diff --git a/Cargo.lock b/Cargo.lock
index 8bdfe01..4325b59 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -178,9 +178,9 @@ dependencies = [
[[package]]
name = "opaque-debug"
-version = "0.2.3"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2839e79665f131bdb5782e51f2c... | 37 | 74 | 129 |
12b7525537a7f5ba04a3de5d3d9a2a4f98b6464f | Artyom Pavlov | 2020-06-10T13:21:00 | Additional streebog and gost94 tests (#161) | diff --git a/Cargo.toml b/Cargo.toml
index 287b17e..7867526 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,3 +16,6 @@ members = [
"streebog",
"whirlpool",
]
+
+[profile.dev]
+opt-level = 2
diff --git a/gost94/tests/lib.rs b/gost94/tests/lib.rs
index 09ec57a..fc1d1e5 100644
--- a/gost94/tests/lib.rs
+++ b/go... | 3 | 130 | 16 |
02daf436426457f4287e7daecafdb043a6b7ac36 | Tony Arcieri | 2020-06-10T01:51:48 | Update to `digest` v0.9 release (#155)
Release info: https://github.com/RustCrypto/traits/pull/186 | diff --git a/Cargo.lock b/Cargo.lock
index e238478..9612519 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -73,8 +73,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.9.0-pre"
-source = "git+https://github.com/RustCrypto/traits#b6c5fad59c4079b915a1df20c47bf3154b3612b1"
+version = "0.9.0"
+source = "regis... | 17 | 33 | 35 |
f56b6910b5628a7fc2696d38d4b9278c63ff7dca | Tony Arcieri | 2020-06-10T00:13:41 | gost94: use digest::Output in macros (#154)
For consistency, per #153 | diff --git a/gost94/src/macros.rs b/gost94/src/macros.rs
index 09ba786..bd00cdc 100644
--- a/gost94/src/macros.rs
+++ b/gost94/src/macros.rs
@@ -1,8 +1,6 @@
macro_rules! gost94_impl {
($state:ident, $sbox:expr) => {
- use digest::impl_write;
- use digest::{consts::U32, generic_array::GenericArray};
... | 1 | 2 | 4 |
26bea13186632a16e6cc2a1d096c01b2b9500beb | Tony Arcieri | 2020-06-09T23:22:33 | Use new `*Dirty` traits from the `digest` crate (#153)
Updates all of the hash implementations in this repo to use the new
`*Dirty` traits which support blanket impls of the original traits,
which either consume the hasher instance or can be reset.
This will also provide a marginal efficiency boost, at least unti... | diff --git a/Cargo.lock b/Cargo.lock
index 4198909..e238478 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -74,7 +74,7 @@ dependencies = [
[[package]]
name = "digest"
version = "0.9.0-pre"
-source = "git+https://github.com/rustcrypto/traits#7f2b98d31f704b55c502a685632bd2ea4bd5dd6c"
+source = "git+https://github.com/Rus... | 23 | 232 | 240 |
f51af68f8201052823aecd1c2563493f530b781b | Tony Arcieri | 2020-06-05T00:24:22 | blake2: bump `crypto-mac` to v0.8 release | diff --git a/Cargo.lock b/Cargo.lock
index 813c901..4198909 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,8 +62,9 @@ checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311"
[[package]]
name = "crypto-mac"
-version = "0.8.0-pre"
-source = "git+https://github.com/rustcrypto/traits#7f2b98d31f70... | 3 | 5 | 5 |
e2a554f1d9a9f143616426db31a62081619c1fff | Tony Arcieri | 2020-06-04T18:59:23 | Bump `block-buffer` to v0.8 release | diff --git a/Cargo.lock b/Cargo.lock
index ea7592c..813c901 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,8 +23,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.8.0-pre"
-source = "git+https://github.com/RustCrypto/utils#2aae8a40556e166e9ca06aebc944091dda24b769"
+version = "0.8.0"
+source = "... | 15 | 19 | 19 |
d749cb0fac719d46bd15302bba4adf4fba1d4ba6 | Tony Arcieri | 2020-06-02T19:35:57 | Rename `*result*` to `finalize`
Implements the API changes from:
https://github.com/RustCrypto/traits/pull/161
The `digest` crate now uses `update` and `finalize` nomenclature
ala the Initialize-Update-Finalize (IUF) interface naming scheme. | diff --git a/Cargo.lock b/Cargo.lock
index 136389e..946307e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -24,7 +24,7 @@ dependencies = [
[[package]]
name = "block-buffer"
version = "0.8.0-pre"
-source = "git+https://github.com/RustCrypto/utils#a0e48018d38545935152cd1715382bc1984b5699"
+source = "git+https://github.co... | 46 | 95 | 96 |
547e0c6780037f741e9a6a9375b4a8628029d0f4 | Tony Arcieri | 2020-05-31T14:41:49 | Bump `block-buffer` requirement to v0.8.0-pre | diff --git a/Cargo.lock b/Cargo.lock
index 47fb2f6..136389e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,8 +23,8 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.7.3"
-source = "git+https://github.com/RustCrypto/utils#b4c5b5485ce2b3fd4184bec8aed4730dfe37c132"
+version = "0.8.0-pre"
+source = "... | 14 | 34 | 36 |
aac4b266fd9d760e5a349af8a834d93cce81353b | Tony Arcieri | 2020-05-30T03:39:49 | Remove unnecessary `extern crate` usage and use 2018 macro imports | diff --git a/Cargo.lock b/Cargo.lock
index 3badbaf..f19982b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,7 +62,7 @@ checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311"
[[package]]
name = "crypto-mac"
version = "0.8.0-pre"
-source = "git+https://github.com/rustcrypto/traits#d8c0b4d50b14f2... | 71 | 283 | 355 |
70f15dd4e4e756ca33926087100d59be117916fa | Tony Arcieri | 2020-05-29T14:16:49 | sha2: remove git-based dependences from Cargo.toml
These are leftover from the upgrade, and can all be managed by
`patch.crates-io` until a real release. | diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml
index bf8703a..ad96648 100644
--- a/sha2/Cargo.toml
+++ b/sha2/Cargo.toml
@@ -15,15 +15,15 @@ keywords = ["crypto", "sha2", "hash", "digest"]
categories = ["cryptography", "no-std"]
[dependencies]
-digest = { version = "0.9.0-pre", git = "https://github.com/RustCrypto/... | 1 | 3 | 3 |
11c78a606b6e7467e8ab44b2a99a9dafc42df94c | Tony Arcieri | 2020-05-28T20:49:38 | Bump all versions to `*-pre`
...to reflect the breaking `digest` update | diff --git a/Cargo.lock b/Cargo.lock
index 0164b4d..3badbaf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,7 +2,7 @@
# It is not intended for manual editing.
[[package]]
name = "blake2"
-version = "0.8.1"
+version = "0.9.0-pre"
dependencies = [
"byte-tools",
"byteorder",
@@ -95,7 +95,7 @@ dependencies = [
[[... | 16 | 30 | 30 |
5ad0de1b6457dbc463e431a2e4988cefb5857f06 | Tony Arcieri | 2020-05-28T04:36:43 | Cargo.toml: use patch.crates-io directive for digest
...and `block-modes. Now that all the crates have been upgraded, it's
possible to pull in the new version globally to the namespace.
Also pulls in `block-buffer` and `crypto-mac` this way. | diff --git a/Cargo.toml b/Cargo.toml
index 287b17e..379fd3d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,3 +16,8 @@ members = [
"streebog",
"whirlpool",
]
+
+[patch.crates-io]
+digest = { git = "https://github.com/RustCrypto/traits" }
+block-buffer = { git = "https://github.com/RustCrypto/utils" }
+crypto... | 15 | 47 | 42 |
acd65b7cb3351c3d281ce7c2983bfcd58a6f691b | Tony Arcieri | 2020-05-28T04:18:04 | whirlpool: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/streebog/benches/streebog256.rs b/streebog/benches/streebog256.rs
index 52756c1..d4781d5 100644
--- a/streebog/benches/streebog256.rs
+++ b/streebog/benches/streebog256.rs
@@ -1,7 +1,5 @@
#![no_std]
#![feature(test)]
-#[macro_use]
-extern crate digest;
-use streebog;
+use digst::bench;
bench!(streebog... | 8 | 24 | 25 |
ae342485ee87a6bc69bee692278995d3563fee85 | Tony Arcieri | 2020-05-28T04:07:40 | streebog: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/streebog/Cargo.toml b/streebog/Cargo.toml
index b4c25e5..5901fc9 100644
--- a/streebog/Cargo.toml
+++ b/streebog/Cargo.toml
@@ -5,19 +5,20 @@ description = "Streebog (GOST R 34.11-2012) hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018... | 9 | 28 | 25 |
76dbe81dab873964f9ae57630b5ded7fa090049d | Tony Arcieri | 2020-05-28T03:57:49 | shabal: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/shabal/Cargo.toml b/shabal/Cargo.toml
index 4d4110a..f90ce0a 100644
--- a/shabal/Cargo.toml
+++ b/shabal/Cargo.toml
@@ -5,18 +5,19 @@ description = "Shabal hash functions"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https://d... | 7 | 27 | 30 |
527535f76e4012e72032302055d639a343a74a14 | Tony Arcieri | 2020-05-28T03:49:31 | sha3: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index 24df620..2cdd89e 100644
--- a/sha3/Cargo.toml
+++ b/sha3/Cargo.toml
@@ -5,20 +5,21 @@ description = "SHA-3 (Keccak) hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https://do... | 10 | 27 | 30 |
543def875f1a1400805120327d41e3870e6b43c6 | Tony Arcieri | 2020-05-28T03:26:37 | sha2: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml
index 89425c1..5850ed0 100644
--- a/sha2/Cargo.toml
+++ b/sha2/Cargo.toml
@@ -8,21 +8,22 @@ including SHA-224, SHA-256, SHA-384, and SHA-512.
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https... | 12 | 47 | 54 |
c43d34c12755b2e380d73c8e84b018abe8bc0b15 | Tony Arcieri | 2020-05-28T03:12:05 | sha1: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml
index b85c499..e27dec5 100644
--- a/sha1/Cargo.toml
+++ b/sha1/Cargo.toml
@@ -5,6 +5,7 @@ description = "SHA-1 hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https://docs.rs/sha-1... | 7 | 21 | 19 |
8f28762de736e3cb853295ae81bafe9f8a438218 | Tony Arcieri | 2020-05-28T03:07:07 | ripemd320: add 2018 edition crate attributes | diff --git a/ripemd320/src/lib.rs b/ripemd320/src/lib.rs
index 51dac66..cc866c6 100644
--- a/ripemd320/src/lib.rs
+++ b/ripemd320/src/lib.rs
@@ -26,8 +26,11 @@
//!
//! [1]: https://en.wikipedia.org/wiki/RIPEMD
//! [2]: https://github.com/RustCrypto/hashes
+
#![no_std]
#![doc(html_logo_url = "https://raw.githubuser... | 1 | 3 | 0 |
cc4f6ea8a5cef9cf45f8e2548c92350bb1679b47 | Tony Arcieri | 2020-05-28T02:54:13 | ripemd320: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/ripemd320/Cargo.toml b/ripemd320/Cargo.toml
index 8b28155..f618b59 100644
--- a/ripemd320/Cargo.toml
+++ b/ripemd320/Cargo.toml
@@ -5,18 +5,19 @@ description = "RIPEMD-320 hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentati... | 5 | 13 | 16 |
b0ac14c847232daca5a94ca3829bd96be3060fba | Tony Arcieri | 2020-05-28T02:45:23 | ripemd160: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/ripemd160/Cargo.toml b/ripemd160/Cargo.toml
index d35003a..c81e359 100644
--- a/ripemd160/Cargo.toml
+++ b/ripemd160/Cargo.toml
@@ -1,21 +1,23 @@
[package]
name = "ripemd160"
version = "0.8.0"
+description = "RIPEMD-160 hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
-... | 5 | 18 | 17 |
bba56fa063ad3731169e0ad8426f9190bf8baf70 | Tony Arcieri | 2020-05-28T02:36:35 | md5: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/md2/benches/lib.rs b/md2/benches/lib.rs
index a282ef3..cbc803e 100644
--- a/md2/benches/lib.rs
+++ b/md2/benches/lib.rs
@@ -1,7 +1,5 @@
#![no_std]
#![feature(test)]
-#[macro_use]
-extern crate digest;
-use md2;
+use digest::bench;
bench!(md2::Md2);
diff --git a/md4/benches/lib.rs b/md4/benches/lib.rs
... | 8 | 23 | 24 |
05e8de276c0478213c89cf8cc7cfef20d054f6fd | Tony Arcieri | 2020-05-28T02:29:09 | md4: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/md4/Cargo.toml b/md4/Cargo.toml
index 2bb3e3c..bdb6944 100644
--- a/md4/Cargo.toml
+++ b/md4/Cargo.toml
@@ -5,19 +5,20 @@ description = "MD4 hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https://docs.rs/md4"
rep... | 5 | 17 | 15 |
09c4350cf6a4393bdd5a64a60c4cabf369ad0d45 | Tony Arcieri | 2020-05-28T02:25:15 | Add Rust 2018 attributes to converted crates | diff --git a/blake2/src/lib.rs b/blake2/src/lib.rs
index cd77309..381eb1b 100644
--- a/blake2/src/lib.rs
+++ b/blake2/src/lib.rs
@@ -86,7 +86,7 @@
#![no_std]
#![doc(html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
-#![warn(missing_docs)]
+#![warn(missing_docs, rust_2018_id... | 3 | 5 | 1 |
de60dfd4e6cef94b7a58cbe1278294e5d09aada3 | Tony Arcieri | 2020-05-28T02:06:32 | md2: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/md2/Cargo.toml b/md2/Cargo.toml
index e5e04ed..a521e41 100644
--- a/md2/Cargo.toml
+++ b/md2/Cargo.toml
@@ -5,18 +5,19 @@ license = "MIT OR Apache-2.0"
authors = ["RustCrypto Developers"]
description = "MD2 hash function"
readme = "README.md"
+edition = "2018"
documentation = "https://docs.rs/md2"
rep... | 5 | 17 | 14 |
a9ddf8f537160edcf426e65d05cf69c38586e9fb | Tony Arcieri | 2020-05-28T01:57:37 | k12: impl digest crate traits
Implements the `digest::Update` and `digest::XofReader` APIs. | diff --git a/k12/src/lib.rs b/k12/src/lib.rs
index 889cc17..b5a29f5 100644
--- a/k12/src/lib.rs
+++ b/k12/src/lib.rs
@@ -14,6 +14,7 @@
#![warn(missing_docs, rust_2018_idioms)]
// TODO(tarcieri): eliminate alloc requirement
+#[macro_use]
extern crate alloc;
#[macro_use]
@@ -22,6 +23,7 @@ mod lanes;
// TODO(tarc... | 1 | 59 | 22 |
cdad76c94abb415ed5f0d5ce62b0442ef774847f | Tony Arcieri | 2020-05-28T01:25:32 | k12: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/k12/Cargo.toml b/k12/Cargo.toml
index d5e86a0..b41f677 100644
--- a/k12/Cargo.toml
+++ b/k12/Cargo.toml
@@ -5,16 +5,17 @@ description = "Experimental pure Rust implementation of the KangarooTwelve hash
authors = ["Diggory Hardy <github1@dhardy.name>"]
license = "Apache-2.0 OR MIT"
readme = "README.md"
+... | 3 | 11 | 2 |
cea557bbbbce5d2f2754aa14de302093bfc61794 | Tony Arcieri | 2020-05-28T00:48:19 | groestl: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/groestl/Cargo.toml b/groestl/Cargo.toml
index 0725c69..0aa8f47 100644
--- a/groestl/Cargo.toml
+++ b/groestl/Cargo.toml
@@ -5,18 +5,19 @@ description = "Grøstl hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https:... | 8 | 25 | 27 |
005ee6c942e6765f234a1b92e96cfc295643e452 | Tony Arcieri | 2020-05-27T23:19:51 | gost94: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/gost94/Cargo.toml b/gost94/Cargo.toml
index 85260a2..e70fad9 100644
--- a/gost94/Cargo.toml
+++ b/gost94/Cargo.toml
@@ -5,18 +5,19 @@ description = "GOST R 34.11-94 hash function"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "h... | 8 | 21 | 28 |
ffbf7b6a07486482e5ab5a734437f551530d9f7c | Tony Arcieri | 2020-05-27T20:06:46 | blake2: 2018 edition and `digest` crate upgrade
Upgrades to Rust 2018 edition and the (now 2018 edition)
`digest` v0.9.0-pre crate. | diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index d395391..4c3602a 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -5,21 +5,22 @@ description = "BLAKE2 hash functions"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
+edition = "2018"
documentation = "https://d... | 18 | 67 | 66 |
723b84c52e46d10ba43c9a299de59dea7751b03d | Tony Arcieri | 2020-05-27T17:05:03 | k12: refactoring
- Moves macros and lanes into the `lanes` module
- Extracts a `KangarooTwelve`-like type with a `Digest`-like interface
Doesn't actually impl any traits yet: will circle back on that after the
2018 edition upgrade. | diff --git a/k12/src/lanes.rs b/k12/src/lanes.rs
new file mode 100644
index 0000000..2dc2fb9
--- /dev/null
+++ b/k12/src/lanes.rs
@@ -0,0 +1,145 @@
+/// Copied from `arrayref` crate
+macro_rules! array_ref {
+ ($arr:expr, $offset:expr, $len:expr) => {{
+ {
+ #[inline]
+ unsafe fn as_arra... | 2 | 231 | 213 |
1a7ecbb541854cbb99aa3547396dea3ce3c11701 | Jack Grigg | 2019-04-11T12:47:21 | Hook the byteorder crate's no_std support into Cargo.toml | diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index 1d67a1a..eb1bc73 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.8"
byte-tools = "0.3"
-byteorder = "1"
+byteorder = { version = "1", default-features = false }
crypto... | 1 | 2 | 2 |
12de81636a0a1ba36e5e70fb26408c711e40c4fc | Jack Grigg | 2019-04-11T05:13:20 | blake2: add basic personalization tests
Co-authored-by: George Tankersley <george.tankersley@gmail.com> | diff --git a/blake2/tests/persona.rs b/blake2/tests/persona.rs
new file mode 100644
index 0000000..ff5f72a
--- /dev/null
+++ b/blake2/tests/persona.rs
@@ -0,0 +1,24 @@
+#[macro_use]
+extern crate hex_literal;
+
+extern crate blake2;
+
+use blake2::{Blake2b, Blake2s, Digest};
+
+#[test]
+fn blake2s_persona() {
+ let ... | 1 | 24 | 0 |
c8a738c078c7d91fa9a97622f0b8f2745d7ce311 | George Tankersley | 2018-03-01T00:00:00 | blake2: add support for salting and personalization | diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index 5bcf08c..1d67a1a 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -12,6 +12,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.8"
byte-tools = "0.3"
+byteorder = "1"
crypto-mac = "0.7"
opaque-debug = "0.2"
diff --git a/blake2/... | 5 | 51 | 15 |
3e940677163cfb7d1cc818d88ef927caa7d04899 | George Tankersley | 2018-02-27T00:00:00 | blake2: add plumbing for new salt and persona parameters | diff --git a/blake2/src/blake2.rs b/blake2/src/blake2.rs
index 8667b19..2e1b5af 100644
--- a/blake2/src/blake2.rs
+++ b/blake2/src/blake2.rs
@@ -80,6 +80,11 @@ macro_rules! blake2_impl {
/// make sure to compare codes in constant time! It can be done
/// for example by using `subtle` crate.
... | 1 | 5 | 0 |
afe50eeb606709d444faf571e7db46a0bd4ab1cf | Emmanuel Gil Peyrot | 2020-05-06T01:16:54 | Use libc for AArch64 consts too
Now that https://github.com/rust-lang/libc/pull/1638 got merged and a
new libc release got made, we can use them instead of hardcoding their
values.
This bumps the libc dependency to the earliest version with these
consts. | diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml
index 09b0bfc..a5f40e9 100644
--- a/sha1/Cargo.toml
+++ b/sha1/Cargo.toml
@@ -18,7 +18,7 @@ block-buffer = "0.7"
fake-simd = "0.1"
sha1-asm = { version = "0.4", optional = true }
opaque-debug = "0.2"
-libc = { version = "0.2", optional = true }
+libc = { version = "0.2.... | 4 | 6 | 10 |
c1afa054b869f26f42a1585b7855c22c206e9642 | Deirdre Connolly | 2020-03-24T22:35:24 | Rename flag to 'compress', export just compress* instead of whole module | diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml
index 8f8d613..0c858aa 100644
--- a/sha2/Cargo.toml
+++ b/sha2/Cargo.toml
@@ -25,7 +25,7 @@ hex-literal = "0.1"
default = ["std"]
std = ["digest/std"]
asm = ["sha2-asm"]
-utils = []
+compress = []
# TODO: Remove this feature once is_aarch64_feature_detected!() is sta... | 2 | 8 | 4 |
a968a8db2bffae75fbb31596897be9088ddbb821 | Deirdre Connolly | 2020-03-19T00:22:02 | Coalesce sha256_util export | diff --git a/sha2/src/lib.rs b/sha2/src/lib.rs
index f6cf9d2..4d0f352 100644
--- a/sha2/src/lib.rs
+++ b/sha2/src/lib.rs
@@ -98,14 +98,12 @@ extern crate std;
mod aarch64;
mod consts;
mod sha256;
-#[cfg(any(not(feature = "asm"), feature = "asm-aarch64"))]
-mod sha256_utils;
+#[cfg(any(not(feature = "asm"), feature =... | 1 | 2 | 4 |
789e705e61328b8ac1c0389036f48223ed6e1710 | Deirdre Connolly | 2020-03-18T23:58:27 | utils feature has no dependencies | diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml
index d3271d1..8f8d613 100644
--- a/sha2/Cargo.toml
+++ b/sha2/Cargo.toml
@@ -25,7 +25,7 @@ hex-literal = "0.1"
default = ["std"]
std = ["digest/std"]
asm = ["sha2-asm"]
-utils = ["utils"]
+utils = []
# TODO: Remove this feature once is_aarch64_feature_detected!() is... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.