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 |
|---|---|---|---|---|---|---|---|
a054ced7248ed4be89cbef3f580b87212697ca8d | Artyom Pavlov | 2024-10-27T15:07:51 | Make zeroize optional for all crates (#644) | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index 706ff60..cd1279b 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -23,7 +23,7 @@ cipher = "=0.5.0-pre.7"
ctr = "0.10.0-pre.2"
polyval = { version = "0.7.0-rc.0", default-features = false }
subtle = { version = "2", default-features... | 9 | 52 | 20 |
37fc5916259565683f0f27d06384526d60aff44c | Rupert | 2024-10-23T15:01:58 | Use full range of the stream counter for StreamLE31 (#641) | diff --git a/aead-stream/src/lib.rs b/aead-stream/src/lib.rs
index 7b5d521..67a8aa0 100644
--- a/aead-stream/src/lib.rs
+++ b/aead-stream/src/lib.rs
@@ -177,7 +177,7 @@ where
type NonceOverhead = U4;
type Counter = u32;
const COUNTER_INCR: u32 = 1;
- const COUNTER_MAX: u32 = 0xfff_ffff;
+ const COU... | 1 | 1 | 1 |
5ab621579c37c30d9443539ab7aff6f617a21369 | Arthur Gautier | 2024-10-07T19:25:12 | Cut pre.2 prereleases (#637)
Cuts the following prerelease versions:
- `aes-gcm` v0.11.0-pre.2
- `aes-gcm-siv` v0.12.0-pre.2
- `aes-siv` v0.8.0-pre.2
- `chacha20poly1305` v0.11.0-pre.2 | diff --git a/Cargo.lock b/Cargo.lock
index b92ee49..c8bc5b1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,7 +36,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.11.0-pre.1"
+version = "0.11.0-pre.2"
dependencies = [
"aead",
"aes",
@@ -50,7 +50,7 @@ dependencies = [
[[package]]
name = "aes... | 6 | 13 | 16 |
add6b76bb7e5bfe767aa5011941c6638fb4fec72 | David Pollack | 2024-09-27T13:33:07 | Add `bytes` feature passthrough (#631)
This allows you to use a `BytesMut` as a `Buffer` with
`chacha20poly1305` (or other AEADs) by only including `chacha20poly1305`
in your Cargo.toml and not also having to include `aead` in your
Cargo.toml. This is similar to how `heapless` and `arrayvec` currently
have feature... | diff --git a/Cargo.lock b/Cargo.lock
index af9862e..eb9addf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,6 +11,7 @@ checksum = "b5f451b77e2f92932dc411da6ef9f3d33efad68a6f14a7a83e559453458e85ac"
dependencies = [
"arrayvec",
"blobby",
+ "bytes",
"crypto-common",
"heapless",
]
@@ -133,6 +134,12 @@ version = "... | 19 | 46 | 7 |
7fc675e8a5913bb1f74f99c076413c2bd104c10c | Christiaan | 2024-09-23T17:39:12 | Add AES SIV examples (#533)
This adds, AES-SIV examples and most importantly extra documentation
that mentions the Rogway paper. The interface of the SIV module is based
on this paper, and offers a more detail description of wat all the
parameters are intended for. | diff --git a/aes-siv/src/lib.rs b/aes-siv/src/lib.rs
index f9fcd02..4075200 100644
--- a/aes-siv/src/lib.rs
+++ b/aes-siv/src/lib.rs
@@ -115,6 +115,7 @@ pub type Tag = Array<u8, U16>;
/// The `SivAead` type wraps the more powerful `Siv` interface in a more
/// commonly used Authenticated Encryption with Associated Da... | 2 | 69 | 2 |
9a000140efb6917fb10ffe653444756c73bd88ae | Tony Arcieri | 2024-07-27T18:48:40 | Cut pre.1 prereleases (#618)
Cuts the following prerelease versions:
- `aes-gcm` v0.11.0-pre.1
- `aes-gcm-siv` v0.12.0-pre.1
- `chacha20poly1305` v0.11.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index 5971eb4..49c6354 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.11.0-pre.0"
+version = "0.11.0-pre.1"
dependencies = [
"aead",
"aes",
@@ -42,7 +42,7 @@ dependencies = [
[[package]]
name = "aes... | 4 | 6 | 6 |
f0a75cb6d4b2838d81bf817aa3379cc6b2b6e038 | Tony Arcieri | 2024-07-26T18:40:22 | aes-gcm v0.11.0-pre.0 (#616) | diff --git a/Cargo.lock b/Cargo.lock
index d6b0f5f..0e8d338 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"aead",
"aes",
diff --git a/aes-gcm/Cargo.toml b/aes-gcm/Cargo.toml
index 15b94... | 2 | 8 | 8 |
6703a714406db0342457d64fd8af2ad5e3df1f5a | Tony Arcieri | 2024-07-26T18:18:51 | Bump `ctr` to v0.10.0-pre.0 crate release (#615) | diff --git a/Cargo.lock b/Cargo.lock
index c9e6333..d6b0f5f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -208,8 +208,9 @@ dependencies = [
[[package]]
name = "ctr"
-version = "0.10.0-pre"
-source = "git+https://github.com/RustCrypto/block-modes.git#532a46166bcc74bf718ca351cc3b5a86a2fcb2a3"
+version = "0.10.0-pre.0"
... | 8 | 27 | 30 |
eebc8acf222fe5811b75254fc2a043ba9d988b0f | Martin Geisler | 2024-07-22T19:18:20 | chacha20poly1305: update URL for `draft-irtf-cfrg-xchacha` (#608) | diff --git a/chacha20poly1305/src/lib.rs b/chacha20poly1305/src/lib.rs
index 1be9004..55999fc 100644
--- a/chacha20poly1305/src/lib.rs
+++ b/chacha20poly1305/src/lib.rs
@@ -112,7 +112,7 @@
//! proof from the XSalsa20 paper to the construction in order to demonstrate
//! that XChaCha20 is secure if ChaCha20 is secure ... | 2 | 2 | 2 |
ad109f38b03124e7498bfe5e9830d1328f811d27 | Luca Bruno | 2024-06-10T14:16:44 | cargo: point `repository` metadata to clonable URLs (#609)
This tweaks the `repository` fields in Cargo metadata in order to use the correct (i.e. git clonable) URL.
The existing GitHub webUI URLs for each package have been retained and moved to `homepage` fields. | diff --git a/ccm/Cargo.toml b/ccm/Cargo.toml
index eee07bd..eebf0e3 100644
--- a/ccm/Cargo.toml
+++ b/ccm/Cargo.toml
@@ -7,8 +7,8 @@ edition = "2021"
license = "Apache-2.0 OR MIT"
readme = "README.md"
documentation = "https://docs.rs/ccm"
-homepage = "https://github.com/RustCrypto/AEADs"
-repository = "https://githu... | 4 | 8 | 7 |
d3548f21590bf2a3ac54be1fc2b8af7819a22d6b | Tony Arcieri | 2024-05-31T16:57:40 | ocb3: group impl blocks and free functions (#607)
Moves the free functions to the end of the module, and groups the
relevant impl blocks so their bounds aren't repeated | diff --git a/ocb3/src/lib.rs b/ocb3/src/lib.rs
index a61775e..669be94 100644
--- a/ocb3/src/lib.rs
+++ b/ocb3/src/lib.rs
@@ -141,10 +141,6 @@ where
ll: [Block; L_TABLE_SIZE],
}
-/// Output of the HASH function defined in https://www.rfc-editor.org/rfc/rfc7253.html#section-4.1
-type SumSize = U16;
-type Sum = Ar... | 1 | 77 | 89 |
2e249f826a34b37eadac058e0923c199d1f995fe | Tony Arcieri | 2024-05-31T16:52:09 | ocb3: use `dbl` crate (#606)
Replaces the vendored implementation of GF(2^128) doubling (i.e.
multiply-by-x) with the `dbl` crate.
Also moves the remaining functions in the `util` module into lib.rs. | diff --git a/Cargo.lock b/Cargo.lock
index 4b45a1b..c9e6333 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -336,6 +336,7 @@ dependencies = [
"aes",
"cipher",
"ctr",
+ "dbl",
"hex-literal",
"subtle",
"zeroize",
diff --git a/ocb3/Cargo.toml b/ocb3/Cargo.toml
index c594818..124477d 100644
--- a/ocb3/Cargo.toml
++... | 4 | 40 | 59 |
f4e39243d2d3ca9ceea4c6e1782359ff9400bbb9 | Garret Stand | 2024-05-03T12:37:47 | feat(aes-gcm-siv): re-export `aes` crate (#603)
added to ensure consistency with it's sister `aes-gcm` crate, which also re-exports `aes` (aes-gcm/src/lib.rs:114).
finds specific use in defining a `Key` generic for example; it takes a `KeySizeUser` which are a majority `Aes*` structs from `aes`. | diff --git a/aes-gcm-siv/src/lib.rs b/aes-gcm-siv/src/lib.rs
index d6dfab5..c1e2f9e 100644
--- a/aes-gcm-siv/src/lib.rs
+++ b/aes-gcm-siv/src/lib.rs
@@ -84,6 +84,9 @@
pub use aead::{self, AeadCore, AeadInPlace, Error, Key, KeyInit, KeySizeUser};
+#[cfg(feature = "aes")]
+pub use aes;
+
use cipher::{
array::A... | 1 | 3 | 0 |
3c9bb0aaae0d0a84fb3bff4be547529f8b3f5fe0 | Artyom Pavlov | 2024-03-27T14:42:40 | eax: fix clippy lint (#597) | diff --git a/eax/src/online.rs b/eax/src/online.rs
index 12ab75a..535091f 100644
--- a/eax/src/online.rs
+++ b/eax/src/online.rs
@@ -386,9 +386,7 @@ where
#[cfg(test)]
mod test_impl {
use super::*;
- use aead::{
- consts::U0, generic_array::GenericArray, AeadCore, AeadMutInPlace, KeyInit, KeySizeUser,
... | 1 | 1 | 3 |
6cd4fd3a36dd1a04415e3f1cc18f290f6bd079d1 | Artyom Pavlov | 2024-03-27T14:37:07 | ocb3: use sealed tratis for nonce and tag sizes (#596) | diff --git a/ocb3/src/lib.rs b/ocb3/src/lib.rs
index ed141f3..b096e33 100644
--- a/ocb3/src/lib.rs
+++ b/ocb3/src/lib.rs
@@ -20,12 +20,8 @@ pub use aead::{
};
use crate::util::{double, inplace_xor, ntz, Block};
-use aead::generic_array::{
- typenum::{GrEq, IsGreaterOrEqual, IsLessOrEqual, LeEq, NonZero},
- Ar... | 1 | 47 | 47 |
c0e9ae43e02d4bc9256d438a4325935e5bfe5a05 | Friedel Ziegelmayer | 2024-03-25T22:15:39 | feat(ocb3): implement flexible nonce size (#589) | diff --git a/ocb3/src/lib.rs b/ocb3/src/lib.rs
index 607ace6..56f6889 100644
--- a/ocb3/src/lib.rs
+++ b/ocb3/src/lib.rs
@@ -379,8 +379,6 @@ where
/// Computes nonce-dependent variables as defined
/// in https://www.rfc-editor.org/rfc/rfc7253.html#section-4.2
-///
-/// Assumes a 96-bit nonce and 128-bit tag.
fn no... | 1 | 13 | 20 |
1a4e1e838fb97b8c02d32fc5caf1c08de4ab7233 | Tony Arcieri | 2024-03-25T22:05:47 | ocb3: use `IsLessOrEqual` for `NonceSize`/`TagSize` (#590)
Changes the bounds from using a sealed trait to the `IsLessOrEqual`
operator, which both better reflects the constraints as well as makes it
easier to eventually translate to const generics. | diff --git a/ocb3/src/lib.rs b/ocb3/src/lib.rs
index 795266d..607ace6 100644
--- a/ocb3/src/lib.rs
+++ b/ocb3/src/lib.rs
@@ -8,26 +8,26 @@
#![deny(unsafe_code)]
#![warn(missing_docs, rust_2018_idioms)]
-use core::marker::PhantomData;
+/// Constants used, reexported for convenience.
+pub mod consts {
+ pub use ci... | 1 | 29 | 54 |
85ff034b5b8ba697e0608cbb2bc793ad90a4cc18 | Tony Arcieri | 2023-10-31T23:47:34 | Cargo.toml: enable `resolver = "2"` (#566)
Gets rid of the warning and prevents spurious feature activation between
dependencies/dev-dependencies/build-dependencies | diff --git a/Cargo.toml b/Cargo.toml
index 4b726a4..ff93271 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,3 +10,4 @@ members = [
"eax",
"mgm",
]
+resolver = "2" | 1 | 1 | 0 |
cb63de71cbb94de7447d6eb0b5e1eb7fe8c230df | Alexander Kjäll | 2023-10-31T16:03:51 | eax: gate test on feature it needs (#558) | diff --git a/eax/tests/aes128eax.rs b/eax/tests/aes128eax.rs
index df8a385..656648a 100644
--- a/eax/tests/aes128eax.rs
+++ b/eax/tests/aes128eax.rs
@@ -1,5 +1,6 @@
//! Test vectors from Appendix G:
//! https://web.cs.ucdavis.edu/~rogaway/papers/eax.pdf
+#![cfg(feature = "alloc")]
use aes::Aes128;
use eax::Eax; | 1 | 1 | 0 |
8a3d5c4d942d8fea8007a19d4a7386dbc7bf5ce9 | Артём Павлов [Artyom Pavlov] | 2023-10-27T12:01:05 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 5d41fac..a558b21 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -206,9 +206,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fbc60abd742b35f2492f808e1... | 1 | 2 | 2 |
96fd7cf5d00b41069beb2c32493a18aa30b12d5c | Alexander Wagner | 2023-10-24T21:37:19 | ascon-aead: Add ascon sponge Zeroize feature (#527)
Not zeroizing the state may expose the private key. | diff --git a/Cargo.lock b/Cargo.lock
index cec9dd2..5d41fac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -82,6 +82,9 @@ name = "ascon"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f0e716048a18530cce4684daf98a7563a499d710e1ed8ef35567fcb43a7c5f1"
+dependencies = [
+ "z... | 3 | 9 | 2 |
9f3d08aa8927d7505fd534af914dda3acd9e4516 | Артём Павлов [Artyom Pavlov] | 2023-10-23T11:19:49 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index ad04979..cec9dd2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -203,18 +203,18 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.9"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a17b76ff3a4162b0b27f354a0... | 1 | 22 | 22 |
f0f102e904113f2de9085fbd53c322d8845681fb | Wenyu Su | 2023-10-14T14:49:50 | aes-siv: generic nonce sizes for SivAead (#555) | diff --git a/aes-siv/src/lib.rs b/aes-siv/src/lib.rs
index 8e8e667..ebe917d 100644
--- a/aes-siv/src/lib.rs
+++ b/aes-siv/src/lib.rs
@@ -91,12 +91,12 @@ pub use aead::{self, AeadCore, AeadInPlace, Error, Key, KeyInit, KeySizeUser};
use crate::siv::Siv;
use aead::{
- consts::{U0, U16, U32, U64},
+ consts::{U0,... | 1 | 20 | 12 |
b587b27270cc300d39c496a1ab06be80d72ac107 | Tony Arcieri | 2023-09-21T22:20:57 | aes-gcm: avoid exposing plaintext on tag verification failure (#551)
In #409, for whatever reason I moved the application of the keystream
from after the tag check to before. This means the keystream is applied
unilaterally, instead of only when tag verification is successful.
Sadly, there was a TODO to test for ... | diff --git a/aes-gcm/src/lib.rs b/aes-gcm/src/lib.rs
index c6a67e5..4006c36 100644
--- a/aes-gcm/src/lib.rs
+++ b/aes-gcm/src/lib.rs
@@ -300,10 +300,10 @@ where
// TODO(tarcieri): interleave encryption with GHASH
// See: <https://github.com/RustCrypto/AEADs/issues/74>
let expected_tag = self.... | 4 | 23 | 4 |
31240c1285144aeabef3e80eb9a1b4137dc2b43f | Артём Павлов [Artyom Pavlov] | 2023-07-06T11:40:09 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 59bf3d1..343e02c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -204,9 +204,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.8"
+version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03e69e28e9f7f77debdedbaafa28... | 1 | 12 | 12 |
40240c4a852df21048830de4eed4782c0fbddaef | Артём Павлов [Artyom Pavlov] | 2023-06-19T11:12:30 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index dc8dc47..59bf3d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,9 +18,9 @@ dependencies = [
[[package]]
name = "aes"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "433cfd6710c9986c576a25ca913c39d66a6474... | 1 | 6 | 6 |
be4ea6fd3bcc1c8a5a23974a43e0fc35104d8cba | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:27:44 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 4a47430..dc8dc47 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -73,9 +73,9 @@ dependencies = [
[[package]]
name = "arrayvec"
-version = "0.7.2"
+version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec... | 1 | 4 | 4 |
50710da0cbd47a4614b6d37119877f206c207e95 | Артём Павлов [Artyom Pavlov] | 2023-06-08T20:32:36 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 23df9ba..4a47430 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -292,9 +292,9 @@ dependencies = [
[[package]]
name = "getrandom"
-version = "0.2.9"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c85e1d9ab2eadba7e5040d4e09cbd... | 1 | 14 | 14 |
dc320aa1a945cee3f5ca156e84a21cdff6caf7fa | Jonathan Woollett-Light | 2023-06-08T20:31:45 | Fix `clippy::needless_borrow` and `clippy::explicit_auto_deref` (#531) | diff --git a/aes-siv/src/lib.rs b/aes-siv/src/lib.rs
index f41aee1..8e8e667 100644
--- a/aes-siv/src/lib.rs
+++ b/aes-siv/src/lib.rs
@@ -220,7 +220,7 @@ where
// final component -- i.e., the string immediately preceding the
// plaintext in the vector input to S2V -- is used for the nonce."
//... | 3 | 8 | 8 |
c21ecda102c54e30fa003efd16a9c3fba17e3dc5 | Tony Arcieri | 2023-05-20T17:28:11 | Cargo.lock: bump dependencies (#529)
$ cargo update
Updating crates.io index
Updating digest v0.10.6 -> v0.10.7
Updating generic-array v0.14.6 -> v0.14.7
Updating getrandom v0.2.8 -> v0.2.9
Updating libc v0.2.140 -> v0.2.144
Updating proc-macro2 v1.0.52 -> v1.0.58
Updating quote v1.0... | diff --git a/Cargo.lock b/Cargo.lock
index fe746e9..98f2d9f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -259,9 +259,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.10.6"
+version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8168378f4e5023e7218c89c891c0fd8... | 1 | 20 | 39 |
2901c4385c2cb91da2dcdbcfd973357ccb9fba8b | Sebastian Ramacher | 2023-05-07T11:59:15 | ascon: align features with other AEAD crates (#524)
* ascon-aead: align features with other AEAD crates
* ascon-aead: enable getrandom as default feature | diff --git a/ascon-aead/Cargo.toml b/ascon-aead/Cargo.toml
index 0eb618f..70b8eeb 100644
--- a/ascon-aead/Cargo.toml
+++ b/ascon-aead/Cargo.toml
@@ -28,10 +28,14 @@ aead = { version = "0.5", features = ["alloc"] }
spectral = { version = "0.6", default-features = false }
[features]
-default = ["zeroize", "alloc"]
+d... | 2 | 42 | 4 |
da7afb36855df5c69acae08d9b74c47cb55fbd6a | Anton Lazarev | 2023-05-03T12:38:47 | `ArrayVec` support (#503) | diff --git a/Cargo.lock b/Cargo.lock
index fa03ffc..f9ba1bb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9,6 +9,7 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"
dependencies = [
+ "arrayvec",
"blobb... | 17 | 44 | 0 |
87bb065a3a97abc77ada8d3692d74205e9433027 | jake | 2023-03-21T19:22:44 | benches: fix compilation (#518) | diff --git a/benches/Cargo.toml b/benches/Cargo.toml
index e2c99f2..0448bf8 100644
--- a/benches/Cargo.toml
+++ b/benches/Cargo.toml
@@ -12,6 +12,7 @@ rust-version = "1.56"
[dependencies]
criterion = "0.4.0"
+rand = "0.8.5"
aes = "0.8.2"
aes-gcm = { path = "../aes-gcm/" }
aes-gcm-siv = { path = "../aes-gcm-siv/"... | 6 | 6 | 6 |
2bd18a108f61123a34b0f457387b6b884bcc4fa0 | jake | 2023-03-18T21:17:23 | only use criterion-CPB on x86 and x86_64 (#515) | diff --git a/benches/Cargo.toml b/benches/Cargo.toml
index 88541cf..c6744d2 100644
--- a/benches/Cargo.toml
+++ b/benches/Cargo.toml
@@ -11,15 +11,17 @@ rust-version = "1.56"
[workspace]
[dependencies]
-criterion = "0.3"
-criterion-cycles-per-byte = "0.1"
-aes = "0.7.0-pre"
+criterion = "0.4.0"
+aes = "0.8.2"
aes-... | 6 | 80 | 13 |
922099527c23103faa94375f32aa6a43c5cad468 | Dirk Stolle | 2023-03-11T22:53:36 | Fix a typo (#510) | diff --git a/aes-gcm/src/lib.rs b/aes-gcm/src/lib.rs
index b52e8ff..e16e8cd 100644
--- a/aes-gcm/src/lib.rs
+++ b/aes-gcm/src/lib.rs
@@ -35,7 +35,7 @@
//!
//! # fn main() -> Result<(), aes_gcm::Error> {
//! // Alternatively, the key can be transformed directly from a byte slice
-//! // (panicks on lenght mismatch):
... | 1 | 1 | 1 |
beb59ccda7c8df14da21931809b55e6a71c53bec | Artyom Pavlov | 2023-02-28T13:14:49 | aes-siv: minor code improvement (#507) | diff --git a/aes-siv/src/siv.rs b/aes-siv/src/siv.rs
index 43d6f19..4c61f8b 100644
--- a/aes-siv/src/siv.rs
+++ b/aes-siv/src/siv.rs
@@ -5,10 +5,7 @@
use crate::Tag;
use aead::{
- generic_array::{
- typenum::{Unsigned, U16},
- ArrayLength, GenericArray,
- },
+ generic_array::{typenum::U16, Ar... | 1 | 6 | 12 |
167111d7b10c0016a0bde530b36ee22bda6913cb | ALaggyDev | 2023-01-12T19:12:02 | gcm: partial tag size (#501) | diff --git a/aes-gcm/src/lib.rs b/aes-gcm/src/lib.rs
index af3cb45..b52e8ff 100644
--- a/aes-gcm/src/lib.rs
+++ b/aes-gcm/src/lib.rs
@@ -129,7 +129,28 @@ pub const C_MAX: u64 = (1 << 36) + 16;
pub type Nonce<NonceSize> = GenericArray<u8, NonceSize>;
/// AES-GCM tags.
-pub type Tag = GenericArray<u8, U16>;
+pub type... | 1 | 54 | 14 |
2751627e3f936bd6501b65c340defe70e95e6bf3 | skaunov | 2022-12-14T02:25:06 | Add correct link to Too much crypto (#495)
* Add correct link to Too much crypto
Currently at https://docs.rs/chacha20poly1305/latest/chacha20poly1305/#supported-algorithms it renders link to audit from <https://github.com/RustCrypto/AEADs/blob/57956bf2d8273e7b3fddd127aa7116ad5ef1c5ad/chacha20poly1305/README.md?pla... | diff --git a/chacha20poly1305/src/lib.rs b/chacha20poly1305/src/lib.rs
index 1651d1e..49e10f0 100644
--- a/chacha20poly1305/src/lib.rs
+++ b/chacha20poly1305/src/lib.rs
@@ -14,7 +14,8 @@
//!
//! - [`XChaCha20Poly1305`] - ChaCha20Poly1305 variant with an extended 192-bit (24-byte) nonce.
//! - [`ChaCha8Poly1305`] / [... | 1 | 2 | 1 |
57956bf2d8273e7b3fddd127aa7116ad5ef1c5ad | Artyom Pavlov | 2022-11-29T20:31:55 | aes-gcm: improve doc example (#493) | diff --git a/aes-gcm/src/lib.rs b/aes-gcm/src/lib.rs
index 578c1e6..af3cb45 100644
--- a/aes-gcm/src/lib.rs
+++ b/aes-gcm/src/lib.rs
@@ -12,15 +12,33 @@
//!
//! Simple usage (allocating, no associated data):
//!
-#![cfg_attr(all(feature = "getrandom", feature = "std"), doc = "```")]
-#![cfg_attr(not(all(feature = "g... | 1 | 23 | 5 |
f14790dca35f8efd623b1339ae33a9d15fa8b84c | Artyom Pavlov | 2022-11-08T13:26:54 | Update Cargo.lock (#490) | diff --git a/Cargo.lock b/Cargo.lock
index 566d11a..fe6f2ed 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -72,9 +72,9 @@ dependencies = [
[[package]]
name = "aho-corasick"
-version = "0.7.18"
+version = "0.7.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e37cfd5e7657ada45f742d6e99... | 1 | 23 | 23 |
91d2a7eb1a06591d23af433136bfb5069feb0531 | Artyom Pavlov | 2022-11-08T13:08:50 | ccm: minor doc fix (#489) | diff --git a/ccm/src/lib.rs b/ccm/src/lib.rs
index 9a13bac..b6e75d7 100644
--- a/ccm/src/lib.rs
+++ b/ccm/src/lib.rs
@@ -86,7 +86,7 @@ impl<T: private::SealedNonce> NonceSize for T {}
/// - `M`: size of MAC tag in bytes, valid values:
/// [`U4`][consts::U4], [`U6`][consts::U6], [`U8`][consts::U8],
/// [`U10`][consts... | 1 | 1 | 1 |
df61b58dda309212198645cc3c74ac22aee1d7c9 | Dirk Stolle | 2022-10-03T10:20:51 | Fix a few typos (#481) | diff --git a/ccm/src/lib.rs b/ccm/src/lib.rs
index b7944dc..9a13bac 100644
--- a/ccm/src/lib.rs
+++ b/ccm/src/lib.rs
@@ -34,8 +34,8 @@
//! # }
//! ```
//!
-//! This crate implements traits from the [`aead`] crate and is capable to perfrom
-//! encryption and decryption in-place wihout relying on `alloc`.
+//! This c... | 2 | 3 | 3 |
c49d4ed48231f39890ad713c570ced5f86246b32 | Артём Павлов [Artyom Pavlov] | 2022-08-19T10:24:13 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 6848a6e..fd3823d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,9 +81,9 @@ dependencies = [
[[package]]
name = "atomic-polyfill"
-version = "0.1.8"
+version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e14bf7b4f565e5e717d7a7a65... | 1 | 21 | 21 |
c43590a5e0e33af1424e676ddb865ac2f2c47264 | Tony Arcieri | 2022-08-10T03:24:23 | Add `rand_core` feature to all crates (#467)
Activates the `aead/rand_core` feature | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index c4c0a8c..348d340 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -32,8 +32,9 @@ aead = { version = "0.5", features = ["dev"], default-features = false }
default = ["aes", "alloc", "getrandom"]
std = ["aead/std", "alloc"]
a... | 8 | 16 | 8 |
bc6bab9d1eb93c6ea9d582913ea83eab05bf1c55 | Tony Arcieri | 2022-08-10T03:03:40 | Use `AeadCore::generate_nonce` in rustdoc examples (#466)
This provides a better example closer to real-world code.
See: https://docs.rs/aead/0.5.1/aead/trait.AeadCore.html#method.generate_nonce | diff --git a/Cargo.lock b/Cargo.lock
index 10fab71..9344932 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,9 +5,9 @@ version = 3
[[package]]
name = "aead"
-version = "0.5.0"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae06cea71059b6b79d879afcdd237a33ac61afc052fd... | 9 | 82 | 77 |
91f4062ecf5a75c369d7c740d6e1f0727cae989e | Tony Arcieri | 2022-08-01T02:03:51 | Fix rustdoc typos (#462) | diff --git a/aes-gcm-siv/src/lib.rs b/aes-gcm-siv/src/lib.rs
index 97d4705..f23e7a6 100644
--- a/aes-gcm-siv/src/lib.rs
+++ b/aes-gcm-siv/src/lib.rs
@@ -88,40 +88,40 @@ use cipher::{
use polyval::{universal_hash::UniversalHash, Polyval};
use zeroize::Zeroize;
-/// AES is optional to allow swapping in hardware-speci... | 3 | 33 | 35 |
19cd777b15ddc54a5fe40a3db28087f6d23e193e | Tony Arcieri | 2022-08-01T01:47:29 | Include README.md in rustdoc (#461)
The rustdocs all contained copy-paste of the README.mds, often out of
date or with typos, which this commit corrects. | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index a30135f..ef57bc8 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -38,3 +38,4 @@ stream = ["aead/stream"]
[package.metadata.docs.rs]
all-features = true
+rustdoc-args = ["--cfg", "docsrs"]
diff --git a/aes-gcm-siv/src/lib.rs b/... | 10 | 79 | 180 |
78b0cd70e2ca642cde99d6f7e94acd3784e1c318 | Tony Arcieri | 2022-07-31T23:15:36 | Bump UHF crates to `universal-hash` v0.5-based releases (#454)
The final releases of these crates are out, and this commit bumps their
dependency versions:
- `ghash` v0.5
- `polyval` v0.6
- `poly1305` v0.8 | diff --git a/Cargo.lock b/Cargo.lock
index 9e139cc..a057355 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -342,9 +342,9 @@ dependencies = [
[[package]]
name = "ghash"
-version = "0.5.0-pre.2"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "abab2b5051cf1a759aaa5c16a6dc... | 5 | 12 | 12 |
32c4e7bebe86b813a5d9ee072fd0e39a663bbdef | Tony Arcieri | 2022-07-30T18:37:09 | eax: bump `cipher` to v0.4 (#451) | diff --git a/Cargo.lock b/Cargo.lock
index 30dad87..b10166c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,18 +15,6 @@ dependencies = [
"heapless",
]
-[[package]]
-name = "aes"
-version = "0.7.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4... | 4 | 62 | 118 |
bea42366a2d4f2c384aa33cdc6211860b7280f82 | Tony Arcieri | 2022-07-30T17:45:19 | deoxys: bump `aes` dependency to v0.8 (#450) | diff --git a/Cargo.lock b/Cargo.lock
index 048c19c..30dad87 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -322,7 +322,7 @@ name = "deoxys"
version = "0.1.0-pre.1"
dependencies = [
"aead",
- "aes 0.7.5",
+ "aes 0.8.1",
"hex-literal 0.3.4",
"subtle",
"zeroize",
diff --git a/deoxys/Cargo.toml b/deoxys/Cargo.toml
i... | 2 | 2 | 2 |
cc0b7d6d1ad113d16e9d757d7ec25044ccafdcdf | Bogdan Opanchuk | 2022-07-29T23:54:55 | Make ChaChaPoly1305 explicitly implement ZeroizeOnDrop (#447) | diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly1305/Cargo.toml
index 02873ed..81daa80 100644
--- a/chacha20poly1305/Cargo.toml
+++ b/chacha20poly1305/Cargo.toml
@@ -22,7 +22,7 @@ aead = { version = "0.5", default-features = false }
chacha20 = { version = "0.9", features = ["zeroize"] }
cipher = "0.4"
poly130... | 2 | 4 | 2 |
d6f510e381c85c0d01069d26ec1d7a87c4cb01ab | Tony Arcieri | 2022-07-25T01:57:24 | Enable `getrandom` feature by defaut; improve docs (#446)
The `getrandom` feature transitively activates `aead/getrandom` and
makes `aead::OsRng` available.
RNG access is pretty essential for successful use of these crates. It's
needed to generate random keys as the very least.
The documentation has also been ... | diff --git a/Cargo.lock b/Cargo.lock
index e9058e8..a150396 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -747,7 +747,6 @@ version = "0.9.0-pre.2"
dependencies = [
"aead",
"poly1305",
- "rand_core",
"salsa20",
"subtle",
"zeroize",
diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index 5188c44..2df0... | 24 | 289 | 248 |
4637eb5545d9f4033d300957b09d78fb8dfcf9f4 | Tony Arcieri | 2022-07-24T19:17:49 | Bump UHF crates to `universal-hash` v0.5.0-pre.2 prereleases (#445)
Upgrades the following UHF crates:
- `ghash` v0.5.0-pre.2
- `poly13095` v0.8.0-pre.2
- `polyval` v0.6.0-pre.2 | diff --git a/Cargo.lock b/Cargo.lock
index a912430..e9058e8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -384,9 +384,9 @@ dependencies = [
[[package]]
name = "ghash"
-version = "0.5.0-pre.1"
+version = "0.5.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "882de19ccb8adbd3e2b6d2... | 5 | 30 | 35 |
9e33b754b240188814eb2c54826b573c58d19396 | Tony Arcieri | 2022-07-24T14:01:21 | Bump `aead` crate dependency to v0.5 (#444) | diff --git a/Cargo.lock b/Cargo.lock
index aa06c2c..a912430 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,9 +5,9 @@ version = 3
[[package]]
name = "aead"
-version = "0.5.0-pre.2"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebd885afa9fa966b7715dc1c46bf47330b9156... | 10 | 18 | 18 |
fdad6b8f595e98c272a55365dc3f00e6ebd63c89 | Tony Arcieri | 2022-07-20T22:52:34 | Cut `-pre.2` releases of crates which use UHFs (#442)
These prereleases use updated universal hash implementations based on
`universal-hash` v0.5.0-pre.1.
See #439, #440 | diff --git a/Cargo.lock b/Cargo.lock
index 6f0b913..b7da5b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,7 +40,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.10.0-pre.1"
+version = "0.10.0-pre.2"
dependencies = [
"aead",
"aes 0.8.1",
@@ -54,7 +54,7 @@ dependencies = [
[[package]]
name ... | 5 | 8 | 8 |
00c42304b3c865f97c4a27e4b160eaa8404e02d1 | Tony Arcieri | 2022-07-20T20:18:00 | Replace `Choice::unwrap_u8` calls with `Into` (#441)
This approach is a bit more readable and straightforward | diff --git a/aes-gcm/src/lib.rs b/aes-gcm/src/lib.rs
index 7f92fe3..a501d58 100644
--- a/aes-gcm/src/lib.rs
+++ b/aes-gcm/src/lib.rs
@@ -266,7 +266,7 @@ where
ctr.apply_keystream_partial(buffer.into());
use subtle::ConstantTimeEq;
- if expected_tag.ct_eq(tag).unwrap_u8() == 1 {
+ if ex... | 4 | 9 | 9 |
0f001fdffb73ab1102e181fd0d5e0dab11bf03bd | Tony Arcieri | 2022-07-20T16:31:47 | xsalsa20poly1305: bump `poly1305` to v0.8.0-pre.1 (#440) | diff --git a/Cargo.lock b/Cargo.lock
index d078d29..6f0b913 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -190,7 +190,7 @@ dependencies = [
"aead",
"chacha20",
"cipher 0.4.3",
- "poly1305 0.8.0-pre.1",
+ "poly1305",
"zeroize",
]
@@ -541,17 +541,6 @@ dependencies = [
"digest",
]
-[[package]]
-name = "poly1... | 3 | 9 | 30 |
be02249a9faf6d6a758ee8cbe5c97a3977854916 | Tony Arcieri | 2022-07-20T16:16:01 | Bump UHF crates to `universal-hash` v0.5.0-pre.1 prereleases (#439)
Upgrades the following UHF crates:
- `ghash` v0.5.0-pre.1
- `poly13095` v0.8.0-pre.1
- `polyval` v0.6.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index 97743eb..d078d29 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -190,7 +190,7 @@ dependencies = [
"aead",
"chacha20",
"cipher 0.4.3",
- "poly1305",
+ "poly1305 0.8.0-pre.1",
"zeroize",
]
@@ -270,9 +270,9 @@ dependencies = [
[[package]]
name = "crypto-common"
-versi... | 7 | 50 | 40 |
cdfa033ade82caeeda484fe65cb5397e8b355747 | Tony Arcieri | 2022-07-02T23:49:50 | Prereleases with `aead` v0.5 prerelease (#437)
Cuts prereleases of all crates with an updated `aead` dependency | diff --git a/Cargo.lock b/Cargo.lock
index 189af0a..97743eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,7 +40,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.10.0-pre"
+version = "0.10.0-pre.1"
dependencies = [
"aead",
"aes 0.8.1",
@@ -54,7 +54,7 @@ dependencies = [
[[package]]
name = ... | 10 | 18 | 18 |
40c4fbe528c1ef8d5d296e26efc06efae943fab4 | Adam Crain | 2022-07-02T19:38:34 | fix typo U12 -> U16 (#428) | diff --git a/ccm/src/lib.rs b/ccm/src/lib.rs
index c66c68d..de5d21e 100644
--- a/ccm/src/lib.rs
+++ b/ccm/src/lib.rs
@@ -70,7 +70,7 @@ pub type Tag<TagSize> = GenericArray<u8, TagSize>;
/// Trait implemented for valid tag sizes, i.e.
/// [`U4`][consts::U4], [`U6`][consts::U6], [`U8`][consts::U8],
/// [`U10`][consts:... | 1 | 1 | 1 |
d93b4e098cd7dfaa72518286060ad0d6ab94f346 | Tony Arcieri | 2022-06-20T21:56:28 | aes-gcm-siv: TODO comments for interleaving MAC+encrypt | diff --git a/aes-gcm-siv/src/lib.rs b/aes-gcm-siv/src/lib.rs
index 77fb98f..88f7c61 100644
--- a/aes-gcm-siv/src/lib.rs
+++ b/aes-gcm-siv/src/lib.rs
@@ -324,8 +324,10 @@ where
return Err(Error);
}
+ // TODO(tarcieri): interleave authentication and encryption
let tag = self.comput... | 1 | 4 | 0 |
d961cf448c826f23fb27a6ae42aada21a13f9416 | Tony Arcieri | 2022-05-09T21:41:38 | xsalsa20poly1305 v0.9.0-pre (#423) | diff --git a/Cargo.lock b/Cargo.lock
index 1151a33..68007bf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -497,7 +497,7 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "xsalsa20poly1305"
-version = "0.8.0"
+version = "0.9.0-pre"
dependencies = [
"aead",
"poly13... | 2 | 2 | 2 |
1187e30aa41ad4ec447bf41fa06f7747f194af6f | Tony Arcieri | 2022-05-01T17:50:19 | aes-gcm-siv v0.11.0-pre (#419) | diff --git a/Cargo.lock b/Cargo.lock
index 2f4a6ce..fdd0686 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,7 +40,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
-version = "0.9.4"
+version = "0.10.0-pre"
dependencies = [
"aead",
"aes 0.8.1",
@@ -54,7 +54,7 @@ dependencies = [
[[package]]
name = "aes-gc... | 2 | 3 | 3 |
2482bcb8a1684fad3dcbfeafdfaf2cfba632a795 | Tony Arcieri | 2022-04-21T14:17:08 | aes-gcm v0.10.0-pre (#413) | diff --git a/aes-gcm/Cargo.toml b/aes-gcm/Cargo.toml
index 910627a..f2ac008 100644
--- a/aes-gcm/Cargo.toml
+++ b/aes-gcm/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "aes-gcm"
-version = "0.9.4"
+version = "0.10.0-pre"
description = """
Pure Rust implementation of the AES-GCM (Galois/Counter Mode)
Authenticated En... | 1 | 1 | 1 |
1b16fe099ba40f00570ca85b7aeee02f002d151f | Andrew J. Stone | 2022-04-14T18:08:19 | Fix typo regarding nonce size for chacha20poly1305 (#412) | diff --git a/chacha20poly1305/src/lib.rs b/chacha20poly1305/src/lib.rs
index dfa599e..fc77f72 100644
--- a/chacha20poly1305/src/lib.rs
+++ b/chacha20poly1305/src/lib.rs
@@ -75,7 +75,7 @@
//! let key = Key::from_slice(b"an example very very secret key.");
//! let cipher = ChaCha20Poly1305::new(key);
//!
-//! let nonc... | 1 | 1 | 1 |
e1e35e0c4f4943da0a99ceb8477c421dcfae2c33 | Tony Arcieri | 2022-03-19T16:17:07 | Remove `subtle` pinning (#408)
Version pinning to preserve MSRV has proven to be problematic, in that
it prevents compatible combinations of crates from working due to
artificial restrictions intended to preserve out-of-the-box nameplate
MSRV on particular crates.
Since we're bumping MSRV in these crates anyway ... | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index 6178e0c..7afa30f 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -21,7 +21,7 @@ aes = { version = "0.7.5", optional = true }
cipher = "0.3"
ctr = "0.8"
polyval = { version = "0.5.1", default-features = false }
-subtle = { version ... | 7 | 7 | 7 |
6afd561a0bc5d08a11ddcda1dcc788afbdc69a98 | Tony Arcieri | 2022-03-19T15:06:49 | chacha20poly1305 v0.10.0-pre (#406) | diff --git a/Cargo.lock b/Cargo.lock
index b9d427d..cc86aa5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,7 +114,7 @@ dependencies = [
[[package]]
name = "chacha20poly1305"
-version = "0.9.0"
+version = "0.10.0-pre"
dependencies = [
"aead",
"chacha20",
diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly... | 2 | 2 | 2 |
06dbfb5571687fd1bbe9d3c9b2193a1ba17f8e99 | Tony Arcieri | 2022-03-17T18:52:17 | Cargo.lock: bump dependencies (#404)
Updates all dependencies that are currently upgradable in `Cargo.lock`:
- `chacha20` -> v0.9.0
- `dbl` -> v0.3.2
- `generic-array` -> `v0.14.5`
- `getrandom` -> v0.2.5
- `heapless` -> v0.7.10
- `hex-literal` -> v0.2.2, v0.3.4
- `libc` -> v0.2.120
- `salsa20` -> v0.10.2
-... | diff --git a/Cargo.lock b/Cargo.lock
index 28e21e8..b9d427d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -22,7 +22,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e8b47f52ea9bae42228d07ec09eb676433d7c4ed1ebdf0f1d1c29ed446f1ab8"
dependencies = [
"cfg-if",
- "cipher",
+ "cipher 0.3.0... | 1 | 100 | 47 |
6105d7a5591aefa646a95d12b5e8d3f55a9214ef | trevyn | 2022-03-16T18:15:11 | Unpin `zeroize` version (#401)
Per https://github.com/RustCrypto/utils/issues/723#issuecomment-1068081155 | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index aaf8023..6178e0c 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -22,7 +22,7 @@ cipher = "0.3"
ctr = "0.8"
polyval = { version = "0.5.1", default-features = false }
subtle = { version = ">=2, <2.5", default-features = false }
-zer... | 5 | 5 | 5 |
c220b965cc6efe19375e50db2e473ea502ebbf35 | Dariusz Kijania | 2022-03-07T18:31:22 | bump zeroize (#397) | diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly1305/Cargo.toml
index 888ad86..b5fb66d 100644
--- a/chacha20poly1305/Cargo.toml
+++ b/chacha20poly1305/Cargo.toml
@@ -22,7 +22,7 @@ aead = { version = "0.4", default-features = false }
chacha20 = { version = "0.8", features = ["zeroize"] }
cipher = "0.3"
poly130... | 1 | 1 | 1 |
cc9615f3f610718dd8e9c819dc09d648d9fd5b60 | Niclas Schwarzlose | 2021-09-01T10:23:00 | Remove mention of removed `xchacha20` feature (#370) | diff --git a/chacha20poly1305/src/lib.rs b/chacha20poly1305/src/lib.rs
index feb62b9..371c5cd 100644
--- a/chacha20poly1305/src/lib.rs
+++ b/chacha20poly1305/src/lib.rs
@@ -96,9 +96,6 @@
//!
//! ChaCha20Poly1305 variant with an extended 192-bit (24-byte) nonce.
//!
-//! The `xchacha20` Cargo feature must be enabled ... | 1 | 0 | 3 |
4683581d9dd00febfa88236fbaf75f4b73beeadd | Tony Arcieri | 2021-08-29T16:31:50 | xsalsa20poly1305: bump `salsa20` dependency to v0.9 (#366)
This release removed the `xsalsa20` feature, and always includes it. | diff --git a/Cargo.lock b/Cargo.lock
index 8613215..7be142a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -371,9 +371,9 @@ dependencies = [
[[package]]
name = "salsa20"
-version = "0.8.1"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecbd2eb639fd7cab5804a0837fe373cc... | 2 | 5 | 5 |
30688bc9e9bede5294a5a797c1438bdc767e91fc | Tony Arcieri | 2021-08-29T14:50:12 | Cargo.lock: bump dependencies (#364) | diff --git a/Cargo.lock b/Cargo.lock
index 72a8cb4..318f355 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aead"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e3e798aa0c8239776f54415bc06f3d74b1850f3f830... | 1 | 14 | 23 |
82d7c9bbb8c484a39620e56b9d4dafc1b06c062d | Tony Arcieri | 2021-08-28T16:16:51 | Relax `subtle` and `zeroize` requirements (#360)
The version was pinned to `subtle` 2.4.x and `zeroize` 1.3.x to prevent
MSRV breakages, but these crates are comaptible with any version before
that as well.
This commit loosens the restrictions to allow compatibility with earlier
versions of these crates too. Thi... | diff --git a/aes-gcm-siv/Cargo.toml b/aes-gcm-siv/Cargo.toml
index efc28e8..ecf19b3 100644
--- a/aes-gcm-siv/Cargo.toml
+++ b/aes-gcm-siv/Cargo.toml
@@ -21,8 +21,8 @@ aes = { version = "0.7.5", optional = true }
cipher = "0.3"
ctr = "0.8"
polyval = { version = "0.5.1", default-features = false }
-subtle = { version ... | 9 | 14 | 14 |
e470a515d287eb46d1d21ee95a4a54c826e68aef | Artyom Pavlov | 2021-08-26T13:32:21 | Update Cargo.lock and improve mgm benches (#357) | diff --git a/Cargo.lock b/Cargo.lock
index 84cdfad..95cc181 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -70,30 +70,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-name = "atomic-polyfill"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30302dda7a66f8c55932ebf208f7... | 2 | 11 | 117 |
5983bc020cc3708503c320ca90351061fd95b4d6 | Lain-dono | 2021-08-24T01:20:27 | Implement xchacha reduced-round variants (#355) | diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly1305/Cargo.toml
index 9150331..cf57bbf 100644
--- a/chacha20poly1305/Cargo.toml
+++ b/chacha20poly1305/Cargo.toml
@@ -28,13 +28,16 @@ zeroize = { version = "=1.3", default-features = false }
aead = { version = "0.4", features = ["dev"], default-features = false }
... | 3 | 112 | 142 |
3a2d1dc1def073b80ad6945244afade659c7f33c | Artyom Pavlov | 2021-07-19T10:43:55 | Remove crate-local lock files (#348) | diff --git a/aes-gcm-siv/Cargo.lock b/aes-gcm-siv/Cargo.lock
deleted file mode 100644
index ebf290b..0000000
--- a/aes-gcm-siv/Cargo.lock
+++ /dev/null
@@ -1,284 +0,0 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "aead"
-version = "0.... | 3 | 0 | 548 |
fd35914f46ea0c9faecf8ab1fe4f7e00b80168c8 | Artyom Pavlov | 2021-07-19T10:23:06 | bump hex-literal from 0.3.2 to 0.3.3 (#347) | diff --git a/Cargo.lock b/Cargo.lock
index 67f98a4..42e4cff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,7 +35,7 @@ dependencies = [
"cipher",
"ctr",
"ghash",
- "hex-literal 0.3.2",
+ "hex-literal 0.3.3",
"subtle",
"zeroize",
]
@@ -65,7 +65,7 @@ dependencies = [
"crypto-mac",
"ctr",
"dbl",
- "hex-li... | 1 | 5 | 5 |
fbb8ec21d2a01fe6fe3000b4c4926cee5c944647 | Artyom Pavlov | 2021-07-12T13:17:40 | Update Cargo.lock and use hex-literal v0.3 instead of v0.3.1 in deoxys (#340) | diff --git a/Cargo.lock b/Cargo.lock
index c24a397..7430caf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,7 +35,7 @@ dependencies = [
"cipher",
"ctr",
"ghash",
- "hex-literal 0.3.1",
+ "hex-literal 0.3.2",
"subtle",
"zeroize",
]
@@ -65,7 +65,7 @@ dependencies = [
"crypto-mac",
"ctr",
"dbl",
- "hex-li... | 2 | 22 | 22 |
f15bb84d499ef07ad99be467a4c6d685d92c362b | Artyom Pavlov | 2021-07-11T02:40:49 | bump hex-literal to v0.3 for aes-gcm and aes-siv (#336) | diff --git a/Cargo.lock b/Cargo.lock
index fd7bc6e..c24a397 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,7 +35,7 @@ dependencies = [
"cipher",
"ctr",
"ghash",
- "hex-literal 0.2.1",
+ "hex-literal 0.3.1",
"subtle",
"zeroize",
]
@@ -65,7 +65,7 @@ dependencies = [
"crypto-mac",
"ctr",
"dbl",
- "hex-li... | 3 | 4 | 4 |
d86d0fb578642c30a94a253328e3a17f867d2771 | Max Burke | 2021-06-04T02:35:57 | pmac should be an optional dependency (#321) | diff --git a/aes-siv/Cargo.toml b/aes-siv/Cargo.toml
index 6ae969f..f0a40df 100644
--- a/aes-siv/Cargo.toml
+++ b/aes-siv/Cargo.toml
@@ -23,7 +23,7 @@ cmac = "0.6"
crypto-mac = "0.11"
ctr = "0.7"
dbl = "0.3"
-pmac = "0.6"
+pmac = { version = "0.6", optional = true }
zeroize = { version = "1", default-features = fal... | 1 | 1 | 1 |
138962426ea2cdb9f64946771f8fb73033015b0d | Tony Arcieri | 2021-05-31T20:40:03 | aes-gcm(-siv): add nightly-only `armv8` feature (#318)
This commit adds an `armv8` feature to the `aes-gcm`/`aes-gcm-siv`
crates, which enables the corresponding `armv8` features on the `aes`
crate and the `ghash`/`polyval` crates.
When enabled, these features use `stdarch`-based backends which leverage
the ARMv... | diff --git a/Cargo.lock b/Cargo.lock
index b7d3917..98bf1be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,8 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
#
+version = 3
+
[[package]]
name = "aead"
version = "0.4.1"
@@ -294,9 +296,9 @@ dependencies = [
[[pa... | 5 | 628 | 18 |
338c6c7e8eab3051e7a6e85d7b20801094b962bb | Tynan McAuley | 2021-05-26T19:25:33 | chacha20poly1305: Add `force-soft` feature (#316)
Adds a `force-soft` feature which forces non-SSE implementations for the
`chacha20` and `poly1305` crates. | diff --git a/chacha20poly1305/Cargo.toml b/chacha20poly1305/Cargo.toml
index 923e610..da1296f 100644
--- a/chacha20poly1305/Cargo.toml
+++ b/chacha20poly1305/Cargo.toml
@@ -35,6 +35,7 @@ heapless = ["aead/heapless"]
reduced-round = ["chacha20"]
stream = ["aead/stream"]
xchacha20poly1305 = ["chacha20/xchacha"]
+force... | 1 | 1 | 0 |
c04b7acadf651d0a2dcb25ae8d6fe33139f51164 | Evgeny Kurnevsky | 2021-05-20T17:24:57 | Implement hash for PublicKey. (#309) | diff --git a/crypto_box/src/lib.rs b/crypto_box/src/lib.rs
index 446da2f..dc10e09 100644
--- a/crypto_box/src/lib.rs
+++ b/crypto_box/src/lib.rs
@@ -249,7 +249,7 @@ impl Drop for SecretKey {
}
/// `crypto_box` public key
-#[derive(Clone, Debug, Eq, PartialEq)]
+#[derive(Clone, Debug, Eq, PartialEq, Hash)]
pub stru... | 1 | 1 | 1 |
462012fb9b6a9db8212dcdb86b2c25e7efe88b64 | Evgeny Kurnevsky | 2021-05-07T16:44:43 | Add aead/rand_core to default features to xsalsa20poly1305. (#308)
Currently it's not enabled by default even though rand_core dependency
is enabled by default. | diff --git a/xsalsa20poly1305/Cargo.toml b/xsalsa20poly1305/Cargo.toml
index 2ddccad..45e29ae 100644
--- a/xsalsa20poly1305/Cargo.toml
+++ b/xsalsa20poly1305/Cargo.toml
@@ -23,7 +23,7 @@ subtle = { version = "2", default-features = false }
zeroize = { version = "1", default-features = false }
[features]
-default = ... | 1 | 1 | 1 |
2fbd7413973152b2158a6253a09b58c83c3220ae | Evgeny Kurnevsky | 2021-05-06T19:11:38 | Implement clone for SalsaBox and ChaChaBox. (#307) | diff --git a/crypto_box/src/lib.rs b/crypto_box/src/lib.rs
index cf49e71..446da2f 100644
--- a/crypto_box/src/lib.rs
+++ b/crypto_box/src/lib.rs
@@ -341,6 +341,7 @@ pub type Box = SalsaBox;
///
/// [X25519]: https://cr.yp.to/ecdh.html
/// [XSalsa20Poly1305]: https://github.com/RustCrypto/AEADs/tree/master/xsalsa20po... | 1 | 2 | 0 |
b3e7e1dfbad512e04be57b68da462d1557f3c8f8 | Tony Arcieri | 2021-05-05T05:57:06 | aes-gcm: add `force-soft` feature (#305)
Adds a `force-soft` crate feature which in turn enables the
corresponding `aes/force-soft` and `ghash/force-soft` features.
This enables operation on Rust 1.41+. | diff --git a/Cargo.lock b/Cargo.lock
index 63d8e25..02d63af 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -290,9 +290,9 @@ dependencies = [
[[package]]
name = "ghash"
-version = "0.4.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90df9c2964d71ba6591379cc3bff5127cc... | 2 | 4 | 3 |
2d2e588df03caedeb4aed980fd0e3fc63adf1517 | Tony Arcieri | 2021-04-30T00:37:37 | crypto_box: fix XChaCha20Poly1305 key derivation [SECURITY] (#295)
Previous versions of this crate did not derive a uniformly random key
when used with the XChaCha20Poly1305 AEAD.
The implementation has been updated to use the HChaCha20 function for
this purpose, however this change makes the Curve25519XChaCha20P... | diff --git a/Cargo.lock b/Cargo.lock
index 1e64532..3b516a5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -111,9 +111,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.7.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/... | 4 | 39 | 26 |
42da7dd8f048927ce8a5a813ce89f25c217f00fd | Tony Arcieri | 2021-04-29T23:28:36 | Bump `rand_core` crate dependency to v0.6 (#292) | diff --git a/Cargo.lock b/Cargo.lock
index ea6ac43..26c6572 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -173,8 +173,7 @@ name = "crypto_box"
version = "0.6.0-pre"
dependencies = [
"chacha20poly1305",
- "rand",
- "rand_core",
+ "rand_core 0.6.2",
"salsa20",
"x25519-dalek",
"xsalsa20poly1305",
@@ -198,7 +197,7 ... | 5 | 63 | 68 |
89e99a2ddf33cd16973d838a67bc7c0404291279 | Tony Arcieri | 2021-04-29T20:07:34 | Bump `chacha20` to v0.7; `salsa20` to v0.8; `kuznyechik` to v0.7 (#286) | diff --git a/Cargo.lock b/Cargo.lock
index 5100704..75e8ee8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -110,12 +110,13 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/stream-ciphers.gi... | 6 | 14 | 16 |
b4bee78edf3af1aa3c689de8bcc33829bfb0903c | Tony Arcieri | 2021-04-29T18:40:20 | Bump `cmac` and `pmac` deps to v0.6 releases (#285) | diff --git a/Cargo.lock b/Cargo.lock
index 96e305d..5100704 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -141,8 +141,9 @@ dependencies = [
[[package]]
name = "cmac"
-version = "0.6.0-pre"
-source = "git+https://github.com/RustCrypto/MACs.git#6aa7c2075833ea7cca284780956720d1fe3dae96"
+version = "0.6.0"
+source = "reg... | 4 | 9 | 9 |
0421f5d5167cf3c35685bf314010760d520502c0 | Tony Arcieri | 2021-04-29T18:14:47 | Bump `ghash` to v0.4; `polyval` to v0.5 (#284) | diff --git a/Cargo.lock b/Cargo.lock
index f5d657d..96e305d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -277,8 +277,9 @@ dependencies = [
[[package]]
name = "ghash"
-version = "0.4.0-pre"
-source = "git+https://github.com/RustCrypto/universal-hashes.git#ed862cf2c504b3e75231147403bda4bd0229fb6a"
+version = "0.4.0"
+... | 4 | 9 | 9 |
e4bf00602937a4a7bb64acb435d522665af0e19a | Tony Arcieri | 2021-04-29T00:30:35 | Cargo.lock: bump dependencies (#282) | diff --git a/Cargo.lock b/Cargo.lock
index f6bec93..9b845b8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14,7 +14,7 @@ dependencies = [
[[package]]
name = "aes"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/block-ciphers.git#7236bce0b75b7bcf719add5e88890bd667ebb95f"
+source = "git+https://github... | 8 | 54 | 54 |
90a202c8d6b906e5ba55ced509e17947fcafbdfb | Tony Arcieri | 2021-02-05T16:22:29 | Bump `aead` dependency to v0.4.0 release (#270)
Release notes: https://github.com/RustCrypto/traits/pull/526 | diff --git a/Cargo.lock b/Cargo.lock
index bb8ea17..d2c7935 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,8 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "aead"
-version = "0.4.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#252b77f0ee659b146c8aeb711d7372471cd65d0d"
+version = "... | 10 | 17 | 17 |
4fe07ab1375d75f19e064bbd227203f1c9c0a5ea | Tony Arcieri | 2021-01-31T14:25:57 | Bump `aead` crate to v0.4.0-pre (#269) | diff --git a/Cargo.lock b/Cargo.lock
index 800c093..bb8ea17 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,8 @@
# It is not intended for manual editing.
[[package]]
name = "aead"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6... | 22 | 186 | 87 |
1fc937728395732f08b16b7beb03fcf5087c8ba5 | Tony Arcieri | 2021-01-07T15:41:37 | chacha20poly1305: update `xchacha` feature name (#257)
https://github.com/RustCrypto/stream-ciphers/pull/215 | diff --git a/Cargo.lock b/Cargo.lock
index b900f47..1b4d6b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -109,7 +109,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/stream-ciphers.git#d5... | 2 | 5 | 5 |
3cf1ba3858f8ef3c9a7320328313596eada487ed | Tony Arcieri | 2020-12-26T17:31:18 | Cargo.lock: bump dependencies (#250)
Notably this updates the `ghash` and `polyval` crates whose recent
releases include some internal refactoring, most notably the changes
in RustCrypto/universal-hashes#107 and RustCrypto/universal-hashes#111 | diff --git a/Cargo.lock b/Cargo.lock
index 3d87081..034d8ce 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,11 +67,10 @@ dependencies = [
[[package]]
name = "aes-soft"
-version = "0.6.0"
+version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c5ab1fa47ce0ddf44cbd65b1b4e626... | 1 | 29 | 27 |
4071e11a1e4df80fd6cd7202bb1bbe1fd532749d | Tony Arcieri | 2020-10-28T13:21:57 | aes-gcm-siv: fix interleaved buffer size (#235)
The implementation contained what's effectively a typo, albeit a
harmless one.
It was trying to compute the size of a buffer to work on in parallel
and was previously doing:
ParBlocks (8) * ParBlocks (8) = 64
Semantically what was intended was:
Bloc... | diff --git a/aes-gcm-siv/src/lib.rs b/aes-gcm-siv/src/lib.rs
index 90de631..f85f8fc 100644
--- a/aes-gcm-siv/src/lib.rs
+++ b/aes-gcm-siv/src/lib.rs
@@ -338,7 +338,7 @@ where
self.polyval.update_padded(associated_data);
let mut ctr = Ctr32LE::from_block_cipher(&self.enc_cipher, tag);
- for ch... | 1 | 1 | 1 |
0a28591aa7dfd30ed6d09af4bfa666865fa3dd80 | Sebastian Neubauer | 2020-10-18T14:53:11 | eax: Allow variable tag length (#231)
Implemented analogous to ccm by passing a second generic argument to
Eax. | diff --git a/eax/src/lib.rs b/eax/src/lib.rs
index ae34b7d..acac0b2 100644
--- a/eax/src/lib.rs
+++ b/eax/src/lib.rs
@@ -67,6 +67,42 @@
//! # }
//! ```
//!
+//! ## Custom Tag Length
+//!
+//! The tag for eax is usually 16 bytes long but it can be shortened if needed.
+//! The second generic argument of `Eax` can be ... | 3 | 117 | 31 |
9e4d072b1fc6d9964ff322c16337dbd6ba3a4e5b | Tony Arcieri | 2020-10-16T19:49:36 | Replace `block-cipher`/`stream-cipher` with `cipher` crate (#229)
...and updates associated dependencies:
- `aes` v0.6.0
- `ctr` v0.6.0 | diff --git a/Cargo.lock b/Cargo.lock
index ca0b83e..b1ad989 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,13 +13,13 @@ dependencies = [
[[package]]
name = "aes"
-version = "0.5.0"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd2bc6d3f370b5666245ff421e231cba4353... | 22 | 138 | 167 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.