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 |
|---|---|---|---|---|---|---|---|
435c5320b120348d394f3a0155735253a28ec884 | Kathryn Long | 2016-04-15T01:40:14 | chore: windows-only doc tests only run on windows | diff --git a/src/lib.rs b/src/lib.rs
index 713b104..7ce07fc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -63,14 +63,17 @@
//! functions so we don't need to worry about nuls.
//!
//! ```rust
+//! # #[cfg(not(windows))]
+//! # fn main() {}
//! # extern crate winapi;
//! # extern crate kernel32;
//! # extern crate wi... | 1 | 8 | 2 |
136fbfaad8f0ceeafee0a925882b9d2ffe16b0d8 | Kathryn Long | 2016-04-15T00:50:14 | refactor: add support for non-windows platforms
Now that Rust 1.8 has been released, wide strings can now use the
stabilized `encode_utf16()` string functions on non-windows platforms.
For now, windows still uses the `OsString` extension traits. | diff --git a/src/lib.rs b/src/lib.rs
index 610bb2c..713b104 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -148,11 +148,9 @@
unused_import_braces,
unused_qualifications)]
-// Confine crate to windows-only
-#![cfg(target_os = "windows")]
-
mod widestring;
mod widecstring;
+mod platform;
pub use wid... | 6 | 41 | 15 |
9375f6cbe384416db16933a1b2f21bf94563ab86 | Kathryn Long | 2016-04-12T05:20:31 | docs: clarify relation to Rust strings and defined terminology | diff --git a/src/lib.rs b/src/lib.rs
index d1822f3..610bb2c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,21 +2,59 @@
//!
//! This crate provides two types of wide strings: `WideString` and `WideCString`. They differ
//! in the guaruntees they provide. For `WideString`, no guaruntees are made about the underlying
-... | 3 | 90 | 51 |
976fdf38714bfe7109d101dac68eeb93a6f7df8a | Kathryn Long | 2016-04-12T04:14:43 | feat: add `Default` trait to wide strings | diff --git a/src/widecstring.rs b/src/widecstring.rs
index a6abec1..750daa6 100644
--- a/src/widecstring.rs
+++ b/src/widecstring.rs
@@ -438,6 +438,12 @@ fn deref(&self) -> &WideCStr {
}
}
+impl Default for WideCString {
+ fn default() -> WideCString {
+ WideCString::new()
+ }
+}
+
impl WideCStr {... | 2 | 7 | 1 |
0209aeb3d9611be48c9f7e5900810e4ae1a91bdc | Kathryn Long | 2016-04-11T06:20:43 | feat: add traits for conversion of strings to `Cow` | diff --git a/src/widecstring.rs b/src/widecstring.rs
index 50d630d..a6abec1 100644
--- a/src/widecstring.rs
+++ b/src/widecstring.rs
@@ -397,6 +397,11 @@ fn into(self) -> Vec<u16> {
}
}
+impl<'a> From<WideCString> for std::borrow::Cow<'a, WideCStr> {
+ fn from(s: WideCString) -> std::borrow::Cow<'a, WideCStr... | 2 | 23 | 0 |
58440ba693369c0544b0db76ba850b50f573ad12 | Kathryn Long | 2016-01-25T08:16:59 | Added unit test examples to documentation. | diff --git a/Cargo.toml b/Cargo.toml
index 1bc8df0..62b5387 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,3 +8,7 @@ homepage = "https://github.com/starkat99/widestring-rs"
readme = "README.md"
keywords = ["windows", "wide", "string", "win32"]
license = "MIT/Apache-2.0"
+
+[dev-dependencies]
+winapi = "0.2.5"
+kerne... | 4 | 379 | 14 |
2cc7015a785d5cec0b1ca00e6ad0958889451875 | Kathryn Long | 2016-01-25T03:41:50 | Initial version | diff --git a/Cargo.toml b/Cargo.toml
index 74fb9d7..1bc8df0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "widestring"
-version = "0.0.1"
+version = "0.1.0"
authors = ["Kathryn Long <squeeself@gmail.com>"]
description = "A wide string FFI library for converting to and from Windows Wide \... | 1 | 1 | 1 |
9dddcdfce5af64c151b0cf7154a6333ade788a78 | Kathryn Long | 2016-01-25T03:33:39 | Modules only compile with windows. | diff --git a/src/widecstring.rs b/src/widecstring.rs
index 4543cdf..7ab0781 100644
--- a/src/widecstring.rs
+++ b/src/widecstring.rs
@@ -1,3 +1,5 @@
+#![cfg(target_os = "windows")]
+
use std;
use std::mem;
use super::{WideStr, WideString};
diff --git a/src/widestring.rs b/src/widestring.rs
index 7cb3f41..7baa851 100... | 2 | 4 | 0 |
0b4a1d628d881beb0c85ba202ac38acd6d077fc6 | Kathryn Long | 2016-01-25T03:32:27 | Fleshed out implementations and documentation for WideCString and WideCStr. | diff --git a/src/lib.rs b/src/lib.rs
index 3ee8511..7d380f1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -17,4 +17,4 @@
mod widecstring;
pub use widestring::{WideString, WideStr};
-pub use widecstring::{WideCString, WideCStr, NulError};
\ No newline at end of file
+pub use widecstring::{WideCString, WideCStr, NulErr... | 3 | 529 | 44 |
2ddbd5232e280d0ad082302210f3a4a25de091ae | Kathryn Long | 2016-01-25T00:31:07 | Renamed WideOsString to WideString, fleshed out WideString with more functions and comments | diff --git a/src/error.rs b/src/error.rs
deleted file mode 100644
index 4ff5be9..0000000
--- a/src/error.rs
+++ /dev/null
@@ -1,31 +0,0 @@
-use std;
-
-/// An error returned from `WideCString` to indicate that a nul unit was found in the vector
-/// provided.
-#[derive(Debug, Clone, PartialEq, Eq)]
-pub struct NulError... | 5 | 350 | 207 |
57776d09a20bc72de1dc4f068b20186d0abc20c7 | Kathryn Long | 2016-01-24T00:48:21 | Added initial wide C string module | diff --git a/src/lib.rs b/src/lib.rs
index 8fbb65d..131a904 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,6 +15,8 @@
mod error;
mod wideosstring;
+mod widecstring;
pub use error::NulError;
pub use wideosstring::{WideOsString, WideOsStr};
+pub use widecstring::{WideCString, WideCStr};
\ No newline at end of fi... | 3 | 25 | 1 |
3f833f4c861a8c113b62dc4b7953c88ea82c08f0 | Kathryn Long | 2016-01-22T08:47:17 | Removed functions inherited from Deref | diff --git a/src/wideosstring.rs b/src/wideosstring.rs
index 89b9b05..c656b16 100644
--- a/src/wideosstring.rs
+++ b/src/wideosstring.rs
@@ -40,23 +40,6 @@ pub fn as_wide_os_str(&self) -> &WideOsStr {
self
}
- /// Converts the `WideOsString` to a `String` if it contains valid Unicode data.
- pub f... | 1 | 0 | 17 |
7c93d72529dda80501004df86c057942fdc51f95 | Kathryn Long | 2016-01-22T08:38:43 | Implemented basic WideOsString & WideOsStr | diff --git a/src/wideosstring.rs b/src/wideosstring.rs
index e749f6f..89b9b05 100644
--- a/src/wideosstring.rs
+++ b/src/wideosstring.rs
@@ -1,21 +1,187 @@
+use std;
+use std::string;
+use std::mem;
+use std::ops;
+use std::ffi::{OsString, OsStr};
+use std::os::windows::ffi::{OsStringExt, OsStrExt};
/// Owned, mutab... | 1 | 173 | 7 |
9e9f5fce6d7f5a1998a34afa44de5aad44f1b485 | Artyom Pavlov | 2026-04-13T14:01:08 | cshake: remove `oid` crate feature (#826) | diff --git a/cshake/Cargo.toml b/cshake/Cargo.toml
index 4f56ee8..fdd9bbc 100644
--- a/cshake/Cargo.toml
+++ b/cshake/Cargo.toml
@@ -21,9 +21,8 @@ digest = { version = "0.11", features = ["dev"] }
hex-literal = "1"
[features]
-default = ["alloc", "oid"]
+default = ["alloc"]
alloc = ["digest/alloc"]
-oid = ["digest... | 1 | 1 | 2 |
d4b86b657bfe5fd81ac91c8f669feab577cec9d2 | Artyom Pavlov | 2026-04-13T13:54:43 | cshake: remove implementation of `Reset` traits (#825)
The reset ability is probably needed extremely rarely in practice and
its support balloons the `CShake` state size.
Additionally, comparing `initial_state` against zeros to determine
whether the function was customized or not could be potentially
problematic, sin... | diff --git a/cshake/src/lib.rs b/cshake/src/lib.rs
index 58fc2bb..982b0f4 100644
--- a/cshake/src/lib.rs
+++ b/cshake/src/lib.rs
@@ -13,8 +13,7 @@ pub use digest;
use core::fmt;
use digest::{
- CollisionResistance, CustomizedInit, ExtendableOutput, ExtendableOutputReset, HashMarker,
- Reset, Update, XofReader... | 2 | 36 | 74 |
8991b65fe400c31c4cc189510f86ae642c470cd9 | Artyom Pavlov | 2026-03-25T14:45:56 | Use the standard order of the `[package]` section fields (#807)
See https://github.com/RustCrypto/meta/issues/22 | diff --git a/ascon-hash256/Cargo.toml b/ascon-hash256/Cargo.toml
index 3ba58d6..cb07a57 100644
--- a/ascon-hash256/Cargo.toml
+++ b/ascon-hash256/Cargo.toml
@@ -1,19 +1,16 @@
[package]
name = "ascon-hash256"
version = "0.5.0-rc.2"
-description = "Implementation of Ascon-Hash256 and Ascon-XOF256"
-authors = [
- "S... | 25 | 84 | 87 |
faa55fb83697c8f3113636d88070e5f5edc8c335 | Tony Arcieri | 2026-03-20T15:41:06 | sha3: bump `keccak` to v0.2 (#803)
This was missed in #796/#799.
Release PR: RustCrypto/sponges#117 | diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index d4a44b7..333f31a 100644
--- a/sha3/Cargo.toml
+++ b/sha3/Cargo.toml
@@ -18,7 +18,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.11"
-keccak = "0.2.0-rc.2"
+keccak = "0.2"
[dev-dependencies]
digest = { version = "0.11", features = ["de... | 1 | 1 | 1 |
d3e6489e56f8486d4a93ceb7a8abf4924af1de7b | Tony Arcieri | 2026-03-18T23:45:34 | sha3 v0.11.0-rc.9 (#801)
Compatible with `keccak` v0.2.0.
Closes #795 | diff --git a/Cargo.lock b/Cargo.lock
index 704bd93..f981de2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -315,7 +315,7 @@ dependencies = [
[[package]]
name = "sha3"
-version = "0.11.0-rc.8"
+version = "0.11.0-rc.9"
dependencies = [
"digest",
"hex-literal",
diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index af... | 2 | 2 | 2 |
ed514f2b34526683b3b7c41670f1887982c3df64 | Artyom Pavlov | 2026-03-16T00:40:11 | Use published version of `keccak` v0.2 (#799) | diff --git a/Cargo.lock b/Cargo.lock
index 6632191..704bd93 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -123,9 +123,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.1"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "285743a676ccb6b3e116bc14cc69319... | 2 | 13 | 14 |
702bcd83735a49c928c0fc24506924f5c0aa22af | Artyom Pavlov | 2026-03-06T13:58:23 | Migrate to closure-based `keccak` (#796) | diff --git a/Cargo.lock b/Cargo.lock
index 61d8b0c..6632191 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -202,9 +202,9 @@ dependencies = [
[[package]]
name = "keccak"
version = "0.2.0-rc.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "882b69cb15b1f78b51342322a97ccd16f5123d1dc8a3da981... | 5 | 65 | 59 |
827c043f82d57666a0b146d156e91c39535c1305 | Tony Arcieri | 2026-02-26T18:09:32 | sha3 v0.11.0-rc.8 (#794)
Includes `digest` v0.11.1 compatibility.
Also bumps `keccak` to v0.2.0-rc.2. | diff --git a/Cargo.lock b/Cargo.lock
index 3ade81c..61d8b0c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -201,8 +201,9 @@ dependencies = [
[[package]]
name = "keccak"
-version = "0.2.0-rc.1"
-source = "git+https://github.com/RustCrypto/sponges#38d10d219450dae3c2d4506f7b2ce13e6eb32f63"
+version = "0.2.0-rc.2"
+source... | 3 | 6 | 7 |
835bc3a06755cfb186f26e9363b58d544cc52536 | Artyom Pavlov | 2026-02-25T15:39:38 | Bump `digest` to v0.11.1 (#793) | diff --git a/Cargo.lock b/Cargo.lock
index 85fb2bc..3ade81c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -68,9 +68,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 3 | 13 | 15 |
8f5155c6ade2bbb96977b515eb0b8152196ac24e | Tony Arcieri | 2026-02-18T00:10:59 | sha3: use `KeccakP1600` struct for state (#790)
Added in RustCrypto/sponges#107
This struct can automatially make use of CPU intrinsics when they are
available. Currently only supports ARMv8's `FEAT_SHA3` intrinsics. | diff --git a/Cargo.lock b/Cargo.lock
index ee78242..85fb2bc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -94,15 +94,6 @@ version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
-[[package]]
-name = "cpufeatures"... | 4 | 19 | 27 |
8c1bf902643ba1386dbc9dd7d199636ba4c291d8 | Artyom Pavlov | 2026-02-13T12:32:46 | Bump `digest` to v0.11 (#786) | diff --git a/Cargo.lock b/Cargo.lock
index b63a1fb..52fd706 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -92,11 +92,17 @@ version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+[[package]]
+name = "cmov"
+versi... | 25 | 85 | 76 |
e0c089cfb8db574d7dd880b9eea092006a080aad | GarmashAlex | 2026-02-13T10:02:39 | bash-hash: use bit size in `AlgorithmName` impl (#784) | diff --git a/bash-hash/src/block_api.rs b/bash-hash/src/block_api.rs
index 607883e..5884a2a 100644
--- a/bash-hash/src/block_api.rs
+++ b/bash-hash/src/block_api.rs
@@ -113,7 +113,7 @@ impl<OS: OutputSize> Reset for BashHashCore<OS> {
impl<OS: OutputSize> AlgorithmName for BashHashCore<OS> {
fn write_alg_name(f... | 1 | 1 | 1 |
81ae18a6174ea6d3f74fccb3b5c6e110b5540017 | Joshua Koudys | 2026-01-28T20:07:09 | Use the groestl-style T-table lookup for fast kupyna hashing (#778)
A lot of the galois-field ops were running on each and every column
load. I didn't do anything clever or original, aside from understanding
how the groestl implementation worked, and shamelessly copying as much
from that as possible. Once that cleaned... | diff --git a/kupyna/src/lib.rs b/kupyna/src/lib.rs
index f370ce5..7265846 100644
--- a/kupyna/src/lib.rs
+++ b/kupyna/src/lib.rs
@@ -15,6 +15,7 @@ pub mod block_api;
mod consts;
mod long;
mod short;
+mod table;
pub(crate) mod utils;
use digest::consts::{U28, U32, U48, U64};
diff --git a/kupyna/src/long.rs b/kupy... | 5 | 196 | 155 |
8d9efa82415987c6cd154ad17a616170fb210ac4 | Tony Arcieri | 2026-01-24T17:10:35 | Cut new prereleases (#776)
These include `digest` v0.11.0-rc.8 which transitively pins to
`rand_core` v0.10.0-rc-6 by way of `crypto-common`.
- `ascon-hash256` v0.5.0-rc.1
- `bash-hash` v0.1.0-rc.0
- `belt-hash` v0.2.0-rc.4
- `blake2` v0.11.0-rc.4
- `fsb` v0.2.0-rc.1
- `gost94` v0.11.0-rc.1
- `groestl` v0.11.0-rc.1
-... | diff --git a/Cargo.lock b/Cargo.lock
index dad29b5..80b7cd9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,7 +13,7 @@ dependencies = [
[[package]]
name = "ascon-hash256"
-version = "0.5.0-rc.0"
+version = "0.5.0-rc.1"
dependencies = [
"ascon",
"base16ct",
@@ -37,7 +37,7 @@ checksum = "bfed5cd32720841afa8cd58c... | 25 | 48 | 48 |
2e2b99ce9f89aec2a027e9a23a6a6b0a14e712d0 | Tony Arcieri | 2026-01-24T16:33:13 | Bump `digest` to v0.11.0-rc.8 (#775) | diff --git a/Cargo.lock b/Cargo.lock
index 1872b4a..dad29b5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -109,18 +109,18 @@ dependencies = [
[[package]]
name = "crypto-common"
-version = "0.2.0-rc.11"
+version = "0.2.0-rc.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d2bcc93d5cd... | 25 | 51 | 51 |
3fb4aa5c7ae77acfdc7cafaa38d88840d41d1f12 | Shun Sakai | 2026-01-12T15:17:43 | k12: add `Kt256`; rename `KangarooTwelve` to `Kt128` (#756)
This implement KT256 as specified in RFC 9861:
https://www.rfc-editor.org/rfc/rfc9861.html
Also, rename existing types `KangarooTwelve*` to `Kt128*` (e.g.
`KangarooTwelveReader` to `Kt128Reader`). This is because the
KangarooTwelve instance is specified as ... | diff --git a/k12/benches/mod.rs b/k12/benches/mod.rs
index 0074e2a..6c8dfac 100644
--- a/k12/benches/mod.rs
+++ b/k12/benches/mod.rs
@@ -5,10 +5,19 @@ use digest::bench_update;
use test::Bencher;
bench_update!(
- k12::KangarooTwelve::default();
- k12_10 10;
- k12_100 100;
+ k12::Kt128::default();
+ k... | 4 | 461 | 258 |
bf56f3c50a13222625d4f5a84d73df7f4025f31c | Tony Arcieri | 2026-01-03T19:32:54 | skein: bump `threefish` to v0.6.0-rc.0 (#769) | diff --git a/Cargo.lock b/Cargo.lock
index 0287cc3..664ffef 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -391,9 +391,9 @@ dependencies = [
[[package]]
name = "threefish"
-version = "0.5.2"
+version = "0.6.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a693d0c8cf16973fac5a93fbe... | 2 | 3 | 3 |
e7587ec2f8142d69898846b3757434c53681f142 | Tony Arcieri | 2026-01-03T17:58:34 | Bump `base16ct` to v1 (#768) | diff --git a/Cargo.lock b/Cargo.lock
index f226777..0287cc3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,9 +25,9 @@ dependencies = [
[[package]]
name = "base16ct"
-version = "0.3.0"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8b59d472eab27ade8d770dcb11da7201... | 24 | 25 | 25 |
608445afa9cdb8f763837ae88a72cb9de5744582 | Tony Arcieri | 2025-12-27T21:15:33 | Bump `digest` dependency to v0.11.0-rc.5 (#765) | diff --git a/Cargo.lock b/Cargo.lock
index 5a9cbc1..c9d073a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -78,9 +78,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.5"
+version = "0.11.0"
source = "registry+https://github.com/r... | 25 | 55 | 55 |
401887a354dc9893849e7e5fdc13d9b92add4be0 | radik878 | 2025-11-26T08:01:52 | streebog: fix bit-length counter carry propagation to 512-bit (#759)
The update_n() implementation propagated carry only through limbs 1..6,
effectively making n a 448-bit counter. According to GOST R 34.11-2012
(RFC 6986), the total processed bit-length must be tracked modulo 2^512.
This change extends the loop to in... | diff --git a/streebog/src/block_api.rs b/streebog/src/block_api.rs
index e7a7114..4fe870e 100644
--- a/streebog/src/block_api.rs
+++ b/streebog/src/block_api.rs
@@ -77,7 +77,7 @@ impl StreebogVarCore {
let mut carry = false;
// Note: `len` can not be bigger than block size, so `8 * len` never overflow... | 1 | 37 | 1 |
6aa90e800eb3709e0bf21ef6ac1dd8c1c0bb5068 | Artyom Pavlov | 2025-11-06T04:10:40 | md5: minor optimization in software backend (#755)
Replaces the logical OR in the G function with addition. It seemingly
results in a better ALU utilization and improves performance by several
percents. From 699 MB/s to 753 MB/s on my x86 PC and from 910 MB/s to
960 MB/s on Mac M4. | diff --git a/md5/src/compress/soft.rs b/md5/src/compress/soft.rs
index 1b09961..dd4c232 100644
--- a/md5/src/compress/soft.rs
+++ b/md5/src/compress/soft.rs
@@ -12,7 +12,11 @@ fn op_f(w: u32, x: u32, y: u32, z: u32, m: u32, c: u32, s: u32) -> u32 {
}
#[inline(always)]
fn op_g(w: u32, x: u32, y: u32, z: u32, m: u32, ... | 1 | 5 | 1 |
8af25eee87dc09af19013afe9723599d2d9f5d9c | Tony Arcieri | 2025-11-05T18:07:28 | Cut rc.3 prereleases (#753)
Releases the following:
- `belt-hash` v0.2.0-rc.3
- `blake2` v0.11.0-rc.3
- `md-5` v0.11.0-rc.3
- `ripemd` v0.2.0-rc.3
- `sha1` v0.11.0-rc.3
- `sha2` v0.11.0-rc.3
- `sm3` v0.5.0-rc.3
- `streebog` v0.11.0-rc.3
- `whirlpool` v0.11.0-rc.3 | diff --git a/Cargo.lock b/Cargo.lock
index 0bad606..5a9cbc1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-rc.1"
+version = "0.2.0-rc.3"
dependencies = [
"base16ct",
"belt-... | 10 | 18 | 18 |
90a4289eb1f14ac3c2b5586fd02ecaf793c2ed03 | Tony Arcieri | 2025-11-05T17:00:03 | Bump `digest` dependency to v0.11.0-rc.4 (#752) | diff --git a/Cargo.lock b/Cargo.lock
index b009814..efec35e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -109,16 +109,18 @@ dependencies = [
[[package]]
name = "crypto-common"
-version = "0.2.0-rc.4"
-source = "git+https://github.com/RustCrypto/traits#b0d40cd1ae3f4adf07769436e661434f6333816c"
+version = "0.2.0-rc.5"... | 26 | 55 | 55 |
be84ff78b517dc903d4c0ef08cb18c18b87a8e19 | Patrick José Pereira | 2025-10-02T20:24:18 | Migrate from `doc_auto_cfg` to `doc_cfg` (#740) | diff --git a/ascon-hash/src/lib.rs b/ascon-hash/src/lib.rs
index 35c66e2..d8eb91d 100644
--- a/ascon-hash/src/lib.rs
+++ b/ascon-hash/src/lib.rs
@@ -4,7 +4,7 @@
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto... | 23 | 23 | 23 |
72b956c25bbdcfb5fc861b0d0e32ec38d62cc712 | Patrick José Pereira | 2025-10-02T20:22:55 | gost94: fix typo (#741) | diff --git a/gost94/src/block_api.rs b/gost94/src/block_api.rs
index 91eb538..213d923 100644
--- a/gost94/src/block_api.rs
+++ b/gost94/src/block_api.rs
@@ -26,9 +26,9 @@ fn sbox(a: u32, s: &SBox) -> u32 {
#[allow(clippy::needless_range_loop)]
for i in 0..8 {
- let shft = 4 * i;
- let k = ((a ... | 1 | 3 | 3 |
a404714179dc1d9b9e79d14cda037b0cff62161e | hengyuss | 2025-09-14T01:38:55 | sha2: fix variable name in the SHA-NI backend (#736) | diff --git a/sha2/src/sha256/x86_shani.rs b/sha2/src/sha256/x86_shani.rs
index 02b54c4..d40661d 100644
--- a/sha2/src/sha256/x86_shani.rs
+++ b/sha2/src/sha256/x86_shani.rs
@@ -48,10 +48,10 @@ unsafe fn digest_blocks(state: &mut [u32; 8], blocks: &[[u8; 64]]) {
let state_ptr: *const __m128i = state.as_ptr().cast... | 1 | 2 | 2 |
1f5267d593d16377a43af1d37a274aade586431d | Tom French | 2025-09-10T10:56:17 | chore: apply `unreachable_pub` lint to crates (#734) | diff --git a/ascon-hash/src/lib.rs b/ascon-hash/src/lib.rs
index 875eec2..35c66e2 100644
--- a/ascon-hash/src/lib.rs
+++ b/ascon-hash/src/lib.rs
@@ -5,7 +5,7 @@
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
-#![warn(missing_d... | 62 | 152 | 144 |
a6a305240b9a4e1aefcd144791376454b323a829 | Tony Arcieri | 2025-09-03T21:26:16 | sha3 v0.11.0-rc.3 (#731)
This includes a bump of `keccak` to v0.2.0-rc.0 | diff --git a/Cargo.lock b/Cargo.lock
index e34685d..eb1cbd2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -304,7 +304,7 @@ dependencies = [
[[package]]
name = "sha3"
-version = "0.11.0-rc.2"
+version = "0.11.0-rc.3"
dependencies = [
"base16ct",
"digest",
diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml
index 08fbc... | 2 | 2 | 2 |
1296ea958a6b6e9fb8da3391283ec170045e3094 | Tony Arcieri | 2025-09-03T02:56:50 | ascon-hash: bump `ascon` to v0.5.0-rc.0 (#730) | diff --git a/Cargo.lock b/Cargo.lock
index c668a42..e34685d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "ascon"
-version = "0.4.0"
+version = "0.5.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e716048a18530cce4684daf98a7563a499d... | 2 | 3 | 3 |
d5f7f19bcc2a8c1af24fa4ff48cd4f767224ff69 | Tony Arcieri | 2025-09-03T02:47:35 | sha3: bump `keccak` to v0.2.0-rc.0 (#729) | diff --git a/Cargo.lock b/Cargo.lock
index 5f3c229..c668a42 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -183,9 +183,9 @@ dependencies = [
[[package]]
name = "keccak"
-version = "0.2.0-pre.0"
+version = "0.2.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7cdd4f0dc5807b9a2b25d... | 2 | 3 | 3 |
26facec5f38b0e3eaf8f945c2f89981f61dda386 | Tony Arcieri | 2025-09-02T23:05:59 | Cut prereleases with `hybrid-array` v0.4 support (#728)
Releases the following:
- `belt-hash` v0.2.0-rc.1
- `blake2` v0.11.0-rc.2
- `md-5` v0.11.0-rc.2
- `ripemd` v0.2.0-rc.1
- `sha1` v0.11.0-rc.2
- `sha2` v0.11.0-rc.2
- `sha3` v0.11.0-rc.2
- `sm3` v0.5.0-rc.1
- `streebog` v0.11.0-rc.2
- `whirlpool` v0.11.0-rc.2 | diff --git a/Cargo.lock b/Cargo.lock
index 5754075..5f3c229 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,7 +37,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-rc.0"
+version = "0.2.0-rc.1"
dependencies = [
"base16ct",
"belt-... | 12 | 21 | 21 |
91cb6fbf75aa9ddc0cfb1d9ba8ce934156e7f586 | Tony Arcieri | 2025-09-02T00:37:26 | Bump `hybrid-array` to v0.4 (#726) | diff --git a/Cargo.lock b/Cargo.lock
index 2ab93e5..8757e80 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -57,12 +57,12 @@ dependencies = [
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "git+https://github.com/RustCrypto/utils#dfcd9a0a75c45085f0e594597fb0d1dc8b781b86"
+source = "git+https://github.com/... | 2 | 10 | 6 |
051cb077ee9486f0ce40bf19bb0fa4bc3e9cd435 | Артём Павлов [Artyom Pavlov] | 2025-08-21T08:54:03 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index d2fa503..2ab93e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -57,12 +57,12 @@ dependencies = [
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "git+https://github.com/RustCrypto/utils#f5ac85f6aa02aa39614f62a6a1add9468be67892"
+source = "git+https://github.com/... | 1 | 10 | 10 |
aaf90a720a760800f739300c69cc526d17b8932f | Artyom Pavlov | 2025-08-18T11:16:32 | Remove `crypto` tags (#722)
The tag effectively duplicates the cryptography category which we use
for all our crates. Per discussion in #717 we decided that we should not
have such duplication. | diff --git a/ascon-hash/Cargo.toml b/ascon-hash/Cargo.toml
index 0efb135..0fc9ff1 100644
--- a/ascon-hash/Cargo.toml
+++ b/ascon-hash/Cargo.toml
@@ -12,7 +12,7 @@ edition = "2024"
rust-version = "1.85"
documentation = "https://docs.rs/ascon-hash"
repository = "https://github.com/RustCrypto/hashes"
-keywords = ["cryp... | 23 | 23 | 23 |
5edffca31f40a9f9c0dde329227f0f493e4aca9d | Artyom Pavlov | 2025-08-11T13:52:44 | Migrate to const blobby parsing (#710) | diff --git a/Cargo.lock b/Cargo.lock
index 0e749de..aebad4d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -57,14 +57,12 @@ dependencies = [
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360... | 6 | 106 | 65 |
d751568e58e4741d21be0e34b8183528b6277a89 | Ragnar | 2025-08-01T22:39:06 | sha2: improve `soft-compact` backend by using circular buffer (#712) | diff --git a/sha2/src/sha256/soft_compact.rs b/sha2/src/sha256/soft_compact.rs
index 436ae66..2ff4e47 100644
--- a/sha2/src/sha256/soft_compact.rs
+++ b/sha2/src/sha256/soft_compact.rs
@@ -1,29 +1,30 @@
use crate::consts::K32;
-fn compress_u32(state: &mut [u32; 8], block: [u32; 16]) {
+fn compress_u32(state: &mut [u... | 1 | 17 | 16 |
24850fe6b1a6598d24a0517cad40338ddcce3c3f | Artyom Pavlov | 2025-07-30T10:39:32 | ripemd: tweak OID comment | diff --git a/ripemd/src/lib.rs b/ripemd/src/lib.rs
index 6bcb838..d50d8cc 100644
--- a/ripemd/src/lib.rs
+++ b/ripemd/src/lib.rs
@@ -19,8 +19,8 @@ mod c320;
// Note about used OIDs: there are two OIDs defined for RIPEMD-128/160.
// The Teletrust one (which is used by almost anybody, including BouncyCastle,
-// Open... | 1 | 2 | 2 |
6e88e37bac987506bd977dcea07dfaad40ae25dd | Arthur Gautier | 2025-06-04T13:05:41 | workspace: avoid duplicates when pulling dependency from git (#696)
When pulling dependencies using a `patch.crates-io` to a git dependency
like:
```
[dependencies]
sha1 = "0.11.0-rc.0"
[patch.crates-io]
sha1-checked = { git = "https://github.com/RustCrypto/hashes.git" }
```
Cargo will duplicate sha1 dependency:
```... | diff --git a/Cargo.toml b/Cargo.toml
index 140c3cb..c6411fa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,3 +28,8 @@ members = [
[profile.dev]
opt-level = 2
+
+[patch.crates-io]
+sha1 = { path = "sha1" }
+sha3 = { path = "sha3" }
+whirlpool = { path = "whirlpool" }
diff --git a/fsb/Cargo.toml b/fsb/Cargo.toml
ind... | 4 | 8 | 3 |
f76b69640c481029e377bee7881f987ed0b888f7 | Tony Arcieri | 2025-05-29T14:03:43 | Bump `digest` dependency to v0.11.0-rc.0 (#695)
Also includes new `rc.0` prereleases of crates we've previously done
prereleases for (i.e. that are deps elsewhere in the project) | diff --git a/Cargo.lock b/Cargo.lock
index 97c776a..65ad09f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,7 +37,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.5"
+version = "0.2.0-rc.0"
dependencies = [
"base16ct",
"belt... | 25 | 74 | 77 |
d9ad085ed12dba58d2a6d75d76a17a1b2706c4c7 | daxpedda | 2025-05-28T11:36:49 | Implement `CollisionResistance` for XOFs (#694)
This PR implements `CollisionResistance` for all XOFs. I started with
those to add support for `ExpandMsgXof` in `elliptic-curve` and will do
follow-up PRs for at least SHA2 and SHA3 fixed output hashes.
Companion PR: https://github.com/RustCrypto/traits/pull/1862.
See... | diff --git a/ascon-hash/src/lib.rs b/ascon-hash/src/lib.rs
index 6ba79ff..489fa87 100644
--- a/ascon-hash/src/lib.rs
+++ b/ascon-hash/src/lib.rs
@@ -12,12 +12,12 @@ use core::marker::PhantomData;
use ascon::State;
pub use digest::{self, Digest, ExtendableOutput, Reset, Update, XofReader};
use digest::{
- HashMark... | 5 | 50 | 10 |
d656e7ce40882cc0b9617d043ec72072fadb37e0 | Artyom Pavlov | 2025-04-30T16:07:06 | sha2: simplify the soft backend (#689)
This change makes it easier to read the software backend code and makes
it similar to the `soft-compact` backend. It also slightly improves
codegen (e.g. on x86-64 for SHA-256 it results in [~3330][0] vs
[~3490][1] instructions).
[0]: https://rust.godbolt.org/z/xsees1r7r
[1]: ht... | diff --git a/sha2/src/sha256/soft.rs b/sha2/src/sha256/soft.rs
index b385ef6..028c38a 100644
--- a/sha2/src/sha256/soft.rs
+++ b/sha2/src/sha256/soft.rs
@@ -1,221 +1,87 @@
-#![allow(clippy::many_single_char_names)]
use crate::consts::K32;
-#[inline(always)]
-fn shr(v: [u32; 4], o: u32) -> [u32; 4] {
- [v[0] >> o,... | 2 | 146 | 401 |
ec8989e226ac02633f965fcd64e0b48271e831c5 | Joshua Koudys | 2025-04-25T17:14:14 | kupyna: use lookup table for gf multiplication (#683) | diff --git a/kupyna/src/utils.rs b/kupyna/src/utils.rs
index 00273cc..c3ed881 100644
--- a/kupyna/src/utils.rs
+++ b/kupyna/src/utils.rs
@@ -1,12 +1,13 @@
use crate::consts::{MDS_MATRIX, SBOXES};
-fn multiply_gf(mut x: u8, mut y: u8) -> u8 {
- const BITS_IN_BYTE: u8 = 8;
+const fn gf_multiply(x: u8, y: u8) -> u8 ... | 1 | 26 | 4 |
0b22f1004e7840c32c52305a2fb9cf8cbd486573 | Artyom Pavlov | 2025-04-08T01:51:14 | Remove explicit passing of the `docsrs` configuration flag (#679)
The flag is passed automatically by docs.rs. | diff --git a/ascon-hash/Cargo.toml b/ascon-hash/Cargo.toml
index dc86999..e702a10 100644
--- a/ascon-hash/Cargo.toml
+++ b/ascon-hash/Cargo.toml
@@ -32,4 +32,3 @@ zeroize = ["ascon/zeroize", "digest/zeroize"]
[package.metadata.docs.rs]
all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
diff --git a/belt-hash/C... | 22 | 0 | 22 |
f2be22dae98dd38c1355587abdddfc665dbee14d | Artyom Pavlov | 2025-03-24T05:54:35 | kupyna: re-organize module structure (#676)
Additionally, move some common code to the `utils` modules. | diff --git a/kupyna/src/tables.rs b/kupyna/src/consts.rs
similarity index 100%
rename from kupyna/src/tables.rs
rename to kupyna/src/consts.rs
diff --git a/kupyna/src/lib.rs b/kupyna/src/lib.rs
index 04224b0..ac20043 100644
--- a/kupyna/src/lib.rs
+++ b/kupyna/src/lib.rs
@@ -9,32 +9,20 @@
#![warn(missing_docs)]
pub... | 7 | 421 | 455 |
79e3ced104c5901b4254be77630e167884b64bbd | Artyom Pavlov | 2025-03-24T02:27:06 | kupyna: add benchmarks (#671) | diff --git a/kupyna/benches/mod.rs b/kupyna/benches/mod.rs
new file mode 100644
index 0000000..eecf1fb
--- /dev/null
+++ b/kupyna/benches/mod.rs
@@ -0,0 +1,22 @@
+#![feature(test)]
+extern crate test;
+
+use digest::bench_update;
+use kupyna::{Kupyna256, Kupyna512};
+use test::Bencher;
+
+bench_update!(
+ Kupyna256:... | 1 | 22 | 0 |
510b38825b1f42a1772e06b0737f2543a4c1f4da | Sylvain Pelissier | 2025-03-24T00:50:11 | Add Customized trait for blake2 (#664)
Allow to use Blake2 with a customized string:
`Blake2b128::new_customized(persona)` as described in the paper and as
for cSHAKE. It needs a new trait `VarOutputCustomized` implemented by:
https://github.com/RustCrypto/traits/pull/1787 | diff --git a/Cargo.toml b/Cargo.toml
index f333d2a..459d5a7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,3 +27,7 @@ members = [
[profile.dev]
opt-level = 2
+
+[patch.crates-io]
+# https://github.com/RustCrypto/traits/pull/1787
+digest = { git = "https://github.com/RustCrypto/traits" }
diff --git a/blake2/src/lib... | 4 | 27 | 2 |
d75d14b4aa1199951eebe38d45f4925e820b211d | Artyom Pavlov | 2025-03-05T21:15:12 | Cut pre.5 pre-releases (#663) | diff --git a/Cargo.lock b/Cargo.lock
index 06f03fa..df73220 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 3
+version = 4
[[package]]
name = "ascon"
@@ -37,7 +37,7 @@ checksum = "d9aa1eef3994e2ccd304a78... | 14 | 36 | 36 |
374a7a03eef9fcd1332ae5ee52e6449ccacb4c1d | Sylvain Pelissier | 2025-03-03T21:17:30 | sha3: add `Customized` trait for CSHAKE (#573)
Use the new function `new_customized` from
https://github.com/RustCrypto/traits/pull/1334 in CSHAKE tests | diff --git a/sha3/src/lib.rs b/sha3/src/lib.rs
index b24ba73..3aa9d97 100644
--- a/sha3/src/lib.rs
+++ b/sha3/src/lib.rs
@@ -8,7 +8,7 @@
#![forbid(unsafe_code)]
#![warn(missing_docs)]
-pub use digest::{self, Digest};
+pub use digest::{self, CustomizedInit, Digest};
use core::fmt;
use digest::{
diff --git a/sha3... | 3 | 15 | 27 |
cbaee4748b1c6fc956d12367e41ba195f96cd64f | Artyom Pavlov | 2025-02-24T13:13:09 | Remove `#![warn(rust_2018_idioms)]` (#657) | diff --git a/belt-hash/src/lib.rs b/belt-hash/src/lib.rs
index 5458261..7affb4b 100644
--- a/belt-hash/src/lib.rs
+++ b/belt-hash/src/lib.rs
@@ -5,7 +5,7 @@
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
-#![warn(missing_do... | 21 | 21 | 24 |
262c48457c5e14c62ffe4ef7f9cfbd7db6390beb | Artyom Pavlov | 2025-02-24T12:25:42 | k12: fix Clippy lint (#656) | diff --git a/k12/tests/mod.rs b/k12/tests/mod.rs
index adf43a9..6ef02b4 100644
--- a/k12/tests/mod.rs
+++ b/k12/tests/mod.rs
@@ -63,7 +63,7 @@ fn pat_c() {
hex!("75d2f86a2e644566726b4fbcfc5657b9dbcf070c7b0dca06450ab291d7443bcf"),
];
for i in 0..4 {
- let m: Vec<u8> = iter::repeat(0xFF).take(2u... | 1 | 1 | 1 |
01e79f7be1763e7edad93589d98b0a3e67e44923 | Theo von Arx | 2025-01-17T13:04:28 | blake2: add unkeyed hashing (#612)
This introduces unkeyed hashing for blake2 as specified in [Section 2.5
of RFC 7693](https://www.rfc-editor.org/rfc/rfc7693.html#section-2.5)
states the following:
The second (little-endian) byte of the parameter block, "kk", specifies
the key size in bytes. Set kk = 00 for unkeyed ... | diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs
index b17adb9..38067aa 100644
--- a/blake2/src/macros.rs
+++ b/blake2/src/macros.rs
@@ -275,7 +275,7 @@ macro_rules! blake2_mac_impl {
core: $hash,
buffer: LazyBuffer<<$hash as BlockSizeUser>::BlockSize>,
#[cfg(feature = "re... | 4 | 70 | 25 |
9491c2a80d376f997e68e5556c8ab38c73c9c641 | wangjingcun | 2024-11-07T13:25:03 | sha1-checked: fix some typos in comments (#625) | diff --git a/sha1-checked/src/lib.rs b/sha1-checked/src/lib.rs
index 8d21894..ee4ead8 100644
--- a/sha1-checked/src/lib.rs
+++ b/sha1-checked/src/lib.rs
@@ -129,9 +129,9 @@ impl Sha1 {
pub enum CollisionResult {
/// No collision.
Ok(Output<Sha1>),
- /// Collision occured, but was mititgated.
+ /// Coll... | 1 | 2 | 2 |
b364688b8173d5326f89a3d308615bf6f5b7d7b3 | Tony Arcieri | 2024-09-20T16:57:48 | ripemd v0.2.0-pre.4 (#620) | diff --git a/Cargo.lock b/Cargo.lock
index 6640ca6..5470be2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -255,7 +255,7 @@ dependencies = [
[[package]]
name = "ripemd"
-version = "0.2.0-pre"
+version = "0.2.0-pre.4"
dependencies = [
"base16ct",
"digest",
diff --git a/ripemd/Cargo.toml b/ripemd/Cargo.toml
index f... | 2 | 2 | 2 |
9a2bb2590a6a6bf829965835c9825191e81f1e1a | Artyom Pavlov | 2024-08-27T12:12:50 | sha2: move `opaque_load` to the utils module (#618) | diff --git a/sha2/src/sha256/riscv_zknh.rs b/sha2/src/sha256/riscv_zknh.rs
index 7477c64..fa0ff87 100644
--- a/sha2/src/sha256/riscv_zknh.rs
+++ b/sha2/src/sha256/riscv_zknh.rs
@@ -21,33 +21,6 @@ fn maj(x: u32, y: u32, z: u32) -> u32 {
(x & y) ^ (x & z) ^ (y & z)
}
-/// This function returns `k[R]`, but prevent... | 4 | 65 | 76 |
b5c99d342e475d81bafb02ca305a622f552e9241 | Artyom Pavlov | 2024-08-23T14:14:38 | Remove remaining uses of `doc(cfg(..))` (#616) | diff --git a/belt-hash/src/lib.rs b/belt-hash/src/lib.rs
index 7207eb1..874b490 100644
--- a/belt-hash/src/lib.rs
+++ b/belt-hash/src/lib.rs
@@ -135,7 +135,6 @@ impl fmt::Debug for BeltHashCore {
}
#[cfg(feature = "oid")]
-#[cfg_attr(docsrs, doc(cfg(feature = "oid")))]
impl AssociatedOid for BeltHashCore {
co... | 9 | 0 | 13 |
13cc6c861b7b423bf1aa8f5ca491ab7ededa51f4 | Artyom Pavlov | 2024-08-21T11:38:33 | sha1: port `sha1-asm` to `arch` intrinsics (#596) | diff --git a/sha1/src/compress.rs b/sha1/src/compress.rs
index d1032bb..72d0a39 100644
--- a/sha1/src/compress.rs
+++ b/sha1/src/compress.rs
@@ -4,7 +4,11 @@ cfg_if::cfg_if! {
if #[cfg(feature = "force-soft")] {
mod soft;
use soft::compress as compress_inner;
- } else if #[cfg(target_arch = "lo... | 5 | 180 | 9 |
6be8466247e936c415d8aafb848697f39894a386 | Sam Leonard | 2024-07-31T22:56:25 | Correct the type of AsconXofReader (#610)
Currently AsconXofReader has type
XofReaderCoreWrapper<AsconAXofReaderCore>, this is incorrect the type
should be XofReaderCoreWrapper<AsconXofReaderCore>. | diff --git a/ascon-hash/src/lib.rs b/ascon-hash/src/lib.rs
index 28e88ea..0733f81 100644
--- a/ascon-hash/src/lib.rs
+++ b/ascon-hash/src/lib.rs
@@ -417,7 +417,7 @@ pub type AsconAHash = CoreWrapper<AsconACore>;
/// ```
pub type AsconXof = CoreWrapper<AsconXofCore>;
/// Reader for AsconXof output
-pub type AsconAXof... | 1 | 2 | 2 |
a73e846d03d49f63d5a59243485608da663ff331 | Tony Arcieri | 2024-07-27T21:40:50 | whirlpool v0.11.0-pre.4 (#609) | diff --git a/Cargo.lock b/Cargo.lock
index 11fa33a..9f6c849 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -386,7 +386,7 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "whirlpool"
-version = "0.11.0-pre.2"
+version = "0.11.0-pre.4"
dependencies = [
"base16ct",
... | 3 | 3 | 3 |
b5961e183aeec5282a57d704b2f7b28c8272e35b | Tony Arcieri | 2024-07-27T19:27:35 | blake2 v0.11.0-pre.4 (#608) | diff --git a/Cargo.lock b/Cargo.lock
index 81a0790..11fa33a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -47,7 +47,7 @@ dependencies = [
[[package]]
name = "blake2"
-version = "0.11.0-pre.3"
+version = "0.11.0-pre.4"
dependencies = [
"base16ct",
"digest",
diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index... | 2 | 2 | 2 |
71b2984ec18c3ade617b257cba8771497073272a | Tony Arcieri | 2024-07-26T21:13:10 | Cut pre.4 prereleases (#606)
Cuts a new release of every crate which previously received a pre.3
prerelease (in #559), i.e. is used as a (dev-)dependency in downstream
projects that need to be upgraded.
This includes the following:
- `belt-hash` v0.2.0-pre.4
- `md-5` v0.11.0-pre.4
- `sha1` v0.11.0-pre.4
- `... | diff --git a/Cargo.lock b/Cargo.lock
index 8c4eecf..81a0790 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,7 +37,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.3"
+version = "0.2.0-pre.4"
dependencies = [
"base16ct",
"bel... | 10 | 18 | 18 |
2c39540f181874b88f46629909a9e1a5448f4806 | Tony Arcieri | 2024-07-26T20:13:02 | Rust 1.80 `unexpected_cfgs` lint fixes (#604)
- `sha1` had vestiges of a removed `asm` feature
- `blake2` has a lot of code relating to a commented out `simd` feature,
so for now the lint has been ignored | diff --git a/blake2/src/lib.rs b/blake2/src/lib.rs
index ef7d3e3..5f14c23 100644
--- a/blake2/src/lib.rs
+++ b/blake2/src/lib.rs
@@ -5,6 +5,7 @@
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg"
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![allow(unexpected_cfgs)] // ... | 2 | 2 | 5 |
82c72b2c26542e3778e7326b8505b30d111d7f65 | Friedel Ziegelmayer | 2024-07-03T11:28:42 | sha1-checked: improve DV documentation (#600) | diff --git a/sha1-checked/src/ubc_check.rs b/sha1-checked/src/ubc_check.rs
index 3fb298b..56af5a5 100644
--- a/sha1-checked/src/ubc_check.rs
+++ b/sha1-checked/src/ubc_check.rs
@@ -39,9 +39,13 @@ const DV_II_54_0_BIT: u32 = 1 << 29;
const DV_II_55_0_BIT: u32 = 1 << 30;
const DV_II_56_0_BIT: u32 = 1 << 31;
+/// Dist... | 1 | 37 | 5 |
89868e2ad3b707fafb418cad54f53ea0a0ba89e2 | Friedel Ziegelmayer | 2024-07-03T10:29:43 | chore(sha1-checked): remove dead code (#599) | diff --git a/sha1-checked/src/lib.rs b/sha1-checked/src/lib.rs
index bdcadfc..8d21894 100644
--- a/sha1-checked/src/lib.rs
+++ b/sha1-checked/src/lib.rs
@@ -6,8 +6,6 @@
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs, rust_2018_idioms)]
-// TODO: remove after fixing https://github.com/RustCrypto/... | 2 | 0 | 134 |
390a46e25f02bb81f79ad94c8342b2880e5bac5c | Artyom Pavlov | 2024-05-23T02:15:26 | streebog: improve `adc` (#587)
This change improves codegen for the `update_sigma` function on x86-64
targets as can be seen by comparing https://rust.godbolt.org/z/3Pa9deedT
and https://rust.godbolt.org/z/Mdod5WPx4. On RISC-V both compile into
the same assembly. | diff --git a/streebog/src/core_api.rs b/streebog/src/core_api.rs
index 7d1b55a..78a7af5 100644
--- a/streebog/src/core_api.rs
+++ b/streebog/src/core_api.rs
@@ -64,33 +64,26 @@ fn g(h: &mut [u64; 8], n: &[u64; 8], m: &[u64; 8]) {
}
impl StreebogVarCore {
+ #[inline(always)]
fn update_sigma(&mut self, m: &[u... | 1 | 21 | 25 |
8d1fac792c8338e516fada70b11c70430c87bcc6 | Artyom Pavlov | 2024-05-21T17:48:10 | streebog: use `[u64; 8]` instead of `[u8; 64]` for `h` (#585) | diff --git a/streebog/src/consts.rs b/streebog/src/consts.rs
index e356b9f..403073d 100644
--- a/streebog/src/consts.rs
+++ b/streebog/src/consts.rs
@@ -178,6 +178,27 @@ pub const C: [[u8; BLOCK_SIZE]; 12] = [
],
];
+/// Iteration constants represented as `[u64; 8]`
+pub const C64: [[u64; 8]; 12] = {
+ let m... | 2 | 72 | 77 |
06bc6fa20d6df80b12a34caf76478dafb2e73c63 | Arthur Gautier | 2024-05-15T13:14:47 | sha1-checked: bump digest to `0.11.0-pre.8` (#581) | diff --git a/Cargo.lock b/Cargo.lock
index a922696..e61f987 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,7 +16,7 @@ name = "ascon-hash"
version = "0.3.0-pre"
dependencies = [
"ascon",
- "digest 0.11.0-pre.8",
+ "digest",
"hex",
"hex-literal",
"spectral",
@@ -33,7 +33,7 @@ name = "belt-hash"
version = "0.2... | 4 | 37 | 97 |
e7f731708748e42406e4459f4dc5c6f96a4559e8 | Heiko Schaefer | 2024-05-15T11:53:58 | sha1-checked: implement BlockSizeUser (#582)
Implementing this trait makes it possible to use `sha1-checked` with
`dsa::signing_key::SigningKey::sign_prehashed_rfc6979` | diff --git a/sha1-checked/src/lib.rs b/sha1-checked/src/lib.rs
index 1dcf28d..651b0b1 100644
--- a/sha1-checked/src/lib.rs
+++ b/sha1-checked/src/lib.rs
@@ -197,6 +197,10 @@ impl OutputSizeUser for Sha1 {
type OutputSize = U20;
}
+impl BlockSizeUser for Sha1 {
+ type BlockSize = U64;
+}
+
impl FixedOutput f... | 1 | 4 | 0 |
3fcfa9606090ee1d233da20c1d8114ae69a9c796 | Arthur Gautier | 2024-05-11T16:39:32 | blake2: fixup rustc 1.78 warnings (#580)
Starting 1.78, rust will report the `as_mut_bytes` method is dead code. | diff --git a/blake2/src/as_bytes.rs b/blake2/src/as_bytes.rs
index c77fcd6..8834e6a 100644
--- a/blake2/src/as_bytes.rs
+++ b/blake2/src/as_bytes.rs
@@ -13,7 +13,6 @@ pub unsafe trait Safe {}
pub trait AsBytes {
fn as_bytes(&self) -> &[u8];
- fn as_mut_bytes(&mut self) -> &mut [u8];
}
impl<T: Safe> AsByt... | 1 | 0 | 6 |
470c789d9a2d2deac743e0191fe3e45dee1c6060 | Henrique Corrêa | 2024-05-02T07:18:31 | blake2: add missing types of common digest sizes (#564)
Adds the following fixed digest sizes: `BLAKE2s-128`, `BLAKE2b-128`, and `BLAKE2b-256`. | diff --git a/blake2/src/lib.rs b/blake2/src/lib.rs
index 266c39e..ef7d3e3 100644
--- a/blake2/src/lib.rs
+++ b/blake2/src/lib.rs
@@ -18,7 +18,7 @@ use core::{fmt, marker::PhantomData, ops::Div};
use digest::{
array::{Array, ArraySize},
block_buffer::{Lazy, LazyBuffer},
- consts::{U128, U32, U4, U64},
+ ... | 1 | 7 | 1 |
1f792033dc24fb2a5f8e6f193dce477040138fd4 | enkore | 2024-03-12T15:03:19 | sha2: fix aarch64 implementation being disabled (#569)
Fixes #568
Co-authored-by: marx <marx@fedora> | diff --git a/sha2/src/sha256.rs b/sha2/src/sha256.rs
index ed869a1..417a51b 100644
--- a/sha2/src/sha256.rs
+++ b/sha2/src/sha256.rs
@@ -6,7 +6,7 @@ cfg_if::cfg_if! {
mod soft;
mod x86;
use x86::compress;
- } else if #[cfg(all(feature = "asm", target_arch = "aarch64"))] {
+ } else if #[... | 2 | 2 | 2 |
c38787b7abd8dd10412972941d077df54c95a4bb | Tony Arcieri | 2024-02-07T20:50:59 | blake2 v0.11.0-pre.3 (#560)
Note that the first release is `pre.3` so as to sync versions with the
other crates which have already received prereleases.
cc @baloo | diff --git a/Cargo.lock b/Cargo.lock
index b2a57a2..6d42be8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,7 +39,7 @@ dependencies = [
[[package]]
name = "blake2"
-version = "0.11.0-pre"
+version = "0.11.0-pre.3"
dependencies = [
"digest",
"hex-literal",
diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
inde... | 2 | 2 | 2 |
e4dcf120629bd6461eff9ca1b281736336de423c | Tony Arcieri | 2024-02-01T18:50:38 | Cut pre.3 prereleases (#559)
Cuts a new release of every crate which previously received a pre.2
prerelease, i.e. is used as a (dev-)dependency in downstream projects
that need to be upgraded.
This includes the following:
- `belt-hash` v0.2.0-pre.3
- `md-5` v0.11.0-pre.3
- `sha1` v0.11.0-pre.3
- `sha2` v0.1... | diff --git a/Cargo.lock b/Cargo.lock
index cccf399..b2a57a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,7 +30,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.2"
+version = "0.2.0-pre.3"
dependencies = [
"belt-block",
"d... | 9 | 15 | 15 |
9d2db2e29d5a48b9eabdfb64ccd5b3185119b910 | Tony Arcieri | 2024-02-01T18:30:14 | Bump `digest` dependency to v0.11.0-pre.8 (#558) | diff --git a/Cargo.lock b/Cargo.lock
index cb5721a..cccf399 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,9 +53,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.4"
+version = "0.11.0-pre.5"
source = "registry+https://githu... | 22 | 49 | 49 |
9130e96e88908905e2c1b6afbbd34c27f85adac6 | Tony Arcieri | 2024-01-29T00:58:09 | Updates to remove `hybrid_array::ArrayOps` (#556)
This was a breaking change: RustCrypto/hybrid-array#30
This PR includes the necessary updates to remain compatible. | diff --git a/Cargo.lock b/Cargo.lock
index 93d0b3b..cb5721a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -157,9 +157,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.2"
+version = "0.2.0-rc.3"
source = "registry+https://github.... | 5 | 11 | 11 |
7de22e5d31924ef688c7ebcd05fa71eacac058e3 | Tony Arcieri | 2024-01-27T16:27:28 | Bump `hybrid-array` to v0.2.0-rc.2 (#555) | diff --git a/Cargo.lock b/Cargo.lock
index ebfec16..93d0b3b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -157,9 +157,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.0"
+version = "0.2.0-rc.2"
source = "registry+https://github.... | 1 | 2 | 2 |
c755fb2bd101c90fc8dc005a74d5640d8a88b332 | Tony Arcieri | 2024-01-19T22:14:47 | whirlpool v0.11.0-pre.2 (#553) | diff --git a/Cargo.lock b/Cargo.lock
index d965413..ebfec16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -350,7 +350,7 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "whirlpool"
-version = "0.11.0-pre"
+version = "0.11.0-pre.2"
dependencies = [
"digest",
"hex... | 3 | 3 | 3 |
4f1cd100b9539a2be38f53c525eebc328ebcdb34 | Tony Arcieri | 2024-01-17T15:48:22 | Cut pre.2 prereleases (#552)
Cuts a new release of every crate which previously received a pre.0/.1
prerelease, i.e. is used as a (dev-)dependency in downstream projects
that need to be upgraded.
This includes the following:
- `belt-hash` v0.2.0-pre.2
- `md-5` v0.11.0-pre.2
- `sha1` v0.11.0-pre.2
- `sha2` v... | diff --git a/Cargo.lock b/Cargo.lock
index 0c0ea35..d965413 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,7 +30,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.1"
+version = "0.2.0-pre.2"
dependencies = [
"belt-block",
"d... | 9 | 15 | 15 |
c1550d29094879e82d0b1f80969e77bc767c1b32 | Tony Arcieri | 2024-01-17T15:29:40 | Bump `digest` dependency to v0.11.0-pre.7 (#551) | diff --git a/Cargo.lock b/Cargo.lock
index 27897ec..0c0ea35 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -95,8 +95,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-pre.6"
-source = "git+https://github.com/RustCrypto/traits#b4ec63b0e6b94fad7c311b6b77ae0b59d3c3b18e"
+version = "0.11.0-pre.7"
+sourc... | 23 | 44 | 46 |
c77701d3f072c558164541c1fb9efe5a9ead1198 | Tony Arcieri | 2024-01-16T19:24:30 | sha3: bump `keccak` dependency to v0.2.0-pre.0 (#550) | diff --git a/Cargo.lock b/Cargo.lock
index 8a841bf..27897ec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -183,9 +183,9 @@ dependencies = [
[[package]]
name = "keccak"
-version = "0.1.4"
+version = "0.2.0-pre.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f6d5ed8676d904364de097082f... | 2 | 3 | 3 |
30207043f0c9a80812f5b2a51357a04551f5c02f | Artyom Pavlov | 2024-01-12T14:03:29 | sha2: add `read_volatile` workaround for round constants (#547)
Prevents compiler from inlining round constants or spilling them to
stack, which can slightly improve performance. | diff --git a/sha2/src/consts.rs b/sha2/src/consts.rs
index 8c0bbab..efa80ba 100644
--- a/sha2/src/consts.rs
+++ b/sha2/src/consts.rs
@@ -1,13 +1,40 @@
-#![allow(dead_code, clippy::unreadable_literal)]
+#![allow(dead_code)]
-pub const STATE_LEN: usize = 8;
-pub const BLOCK_LEN: usize = 16;
+pub type State256 = [u32; 8... | 3 | 122 | 111 |
6243d29ca663040757529b6e50802c4cc2010f8a | Edward Shen | 2024-01-11T14:07:03 | blake2: Refuse empty keys in keyed hash construction (#510) | diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs
index bf92d50..ad22f5b 100644
--- a/blake2/src/macros.rs
+++ b/blake2/src/macros.rs
@@ -274,9 +274,12 @@ macro_rules! blake2_mac_impl {
{
/// Create new instance using provided key, salt, and persona.
///
- /// Key le... | 2 | 13 | 4 |
559d7ffbdf2b4e95ebd318f26647efd4f3d9cb9a | Artyom Pavlov | 2024-01-11T12:17:13 | Bump digest to v0.11.0-pre.6 (#543) | diff --git a/Cargo.lock b/Cargo.lock
index 95fccdc..9f84a90 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -58,6 +58,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0edadbde8e0243b49d434f9a23ec0590af201f400a34d7d51049284e4a77c568"
dependencies = [
"crypto-common",
+ "zeroize",
]
[... | 24 | 46 | 47 |
4d7fb0ee74d529cf7cbebcc6e9d7a860d6aef820 | Artyom Pavlov | 2024-01-10T21:00:24 | Reduce amount of `unsafe` (#540) | diff --git a/belt-hash/src/lib.rs b/belt-hash/src/lib.rs
index d441158..a2550bb 100644
--- a/belt-hash/src/lib.rs
+++ b/belt-hash/src/lib.rs
@@ -158,7 +158,6 @@ pub fn belt_compress(x1: [u32; 4], x2: [u32; 4], x34: [u32; 8]) -> ([u32; 4], [u
#[inline(always)]
fn xor(a: [u32; 4], b: [u32; 4]) -> [u32; 4] {
- // T... | 33 | 65 | 127 |
2dd1703ca121268cc172aab14225acd2cb2b8311 | Tony Arcieri | 2024-01-10T18:50:43 | Cut pre.1 prereleases (#539)
Cuts a new release of every crate which previously received a pre.0
prerelease, i.e. is used as a (dev-)dependency in downstream projects
that need to be upgraded.
This includes the following:
- `belt-hash` v0.2.0-pre.1
- `md-5` v0.11.0-pre.1
- `sha1` v0.11.0-pre.1
- `sha2` v0.1... | diff --git a/Cargo.lock b/Cargo.lock
index a70fca9..3015212 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,7 +30,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.0"
+version = "0.2.0-pre.1"
dependencies = [
"belt-block",
"d... | 9 | 15 | 15 |
c091e10f99ec4178b6e8da259d947c2264ab8973 | Tony Arcieri | 2024-01-10T18:18:19 | Bump `digest` dependency to v0.11.0-pre.4 (#538) | diff --git a/Cargo.lock b/Cargo.lock
index 6a90808..a70fca9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,9 +53,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.3"
+version = "0.11.0-pre.4"
source = "registry+https://githu... | 23 | 50 | 50 |
414eca5add2e203c06d0f1a974f209194d28f7c8 | Tony Arcieri | 2024-01-09T23:13:46 | sm3 v0.5.0-pre.0 (#536) | diff --git a/Cargo.lock b/Cargo.lock
index ddc6430..647da4e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -29,7 +29,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre"
+version = "0.2.0-pre.0"
dependencies = [
"belt-block",
"dig... | 2 | 4 | 4 |
8df8751e3d71ee7aa5bbe1a78e1959d74d59a343 | Tony Arcieri | 2024-01-09T22:59:08 | belt-hash v0.2.0-pre.0 (#535) | diff --git a/belt-hash/Cargo.toml b/belt-hash/Cargo.toml
index 81e34c1..c2c715c 100644
--- a/belt-hash/Cargo.toml
+++ b/belt-hash/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "belt-hash"
-version = "0.2.0-pre"
+version = "0.2.0-pre.0"
description = "BelT hash function (STB 34.101.31-2020)"
authors = ["RustCrypto Dev... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.