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
45f1bab0ce45f432207009c4f4db66e46ca25ec4
Tony Arcieri
2022-11-02T03:31:41
signature: use `&mut impl CryptoRngCore` RNG arguments (#1147) `rand_core` v0.6.4 added an auto-impl'd `CryptoRngCore` marker trait for types which impl `CryptoRng + RngCore` which is slightly more convenient and less verbose. This commit changes to using `&mut impl CryptoRngCore` as proposed in #1087. This hope...
diff --git a/signature/Cargo.toml b/signature/Cargo.toml index 83d673b..8002071 100644 --- a/signature/Cargo.toml +++ b/signature/Cargo.toml @@ -14,7 +14,7 @@ categories = ["cryptography", "no-std"] [dependencies] digest = { version = "0.10.3", optional = true, default-features = false } -rand_core = { version =...
2
7
10
796894fd5485efaaad20eb1ecd01821b330c09e5
Tony Arcieri
2022-10-31T16:46:46
signature v2.0.0-pre.0 (#1145)
diff --git a/Cargo.lock b/Cargo.lock index b244007..55b78ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,10 +59,10 @@ dependencies = [ [[package]] name = "async-signature" -version = "0.2.1" +version = "0.3.0-pre" dependencies = [ "async-trait", - "signature 2.0.0-pre", + "signature 2.0.0-pre.0", ] [[pack...
5
11
11
f7917303ae68980541863987a3649a1b87136966
Tony Arcieri
2022-10-30T03:05:56
signature: remove `AsMut` bound on `Repr` (#1144) Without a `Default` bound (#1143) there's little purpose to having an `AsMut` bound on `Repr`, which would allow `Default` to construct an empty bytestring and `AsMut` used to write into it. Given there isn't an obvious use case, fewer bounds are better.
diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs index 997f661..02bfbe4 100644 --- a/signature/src/encoding.rs +++ b/signature/src/encoding.rs @@ -10,7 +10,7 @@ pub trait SignatureEncoding: Clone + Sized + for<'a> TryFrom<&'a [u8], Error = Error> + Into<Self::Repr> { /// Byte representation...
1
1
1
cdf6677ec2d9551e48c979bee32dfd83713ecec6
Tony Arcieri
2022-10-30T02:51:50
signature: remove `Default` bound on `SignatureEncoding::Repr` (#1143) Unfortunately the `Default` impl on `core` array types is still problematic here: error[E0277]: the trait bound `[u8; 64]: Default` is not satisfied --> ed25519/src/lib.rs:339:17 | 339 | type Repr = SignatureBytes; | ...
diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs index f4d281c..997f661 100644 --- a/signature/src/encoding.rs +++ b/signature/src/encoding.rs @@ -10,7 +10,7 @@ pub trait SignatureEncoding: Clone + Sized + for<'a> TryFrom<&'a [u8], Error = Error> + Into<Self::Repr> { /// Byte representation...
1
1
1
460f14e9a5b0b53eb749cf9d30aa92bf4fb5bd34
Dmitry Baryshkov
2022-10-05T23:38:29
signature: expand hazmat to cover sign-with-rng case (#1130) Expand hazmat with the RandomizedPrehashSigner trait, declaring fn sign_prehash_with_rng(). This is necessary for hazmat implementation for the RSA PSS keys. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Dmitry Baryshko...
diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs index 4a117fc..8119225 100644 --- a/signature/src/hazmat.rs +++ b/signature/src/hazmat.rs @@ -12,6 +12,9 @@ use crate::{Error, Signature}; +#[cfg(feature = "rand-preview")] +use crate::rand_core::{CryptoRng, RngCore}; + /// Sign the provided message p...
1
26
0
f5199d07025375da035d5ec82739cbad3fea8f8f
Артём Павлов
2022-09-23T17:19:16
Update Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 485bb6a..d6119b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -308,7 +308,7 @@ dependencies = [ "aead 0.5.1", "cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "crypto-common 0.1.6", - "digest 0.10.4", + "digest 0.10.5", "elliptic-curve 0.12.3", ...
1
28
28
ba24f60e30749877906a4494be5991502a400d48
Tony Arcieri
2022-09-16T13:29:56
signature_derive: fix support for `where` bounds (#1118) Retains the original where bounds provided in a type declaration. Additionally this adds `__` to the names of the type parameters used by the `impl` to avoid clashes with ones that might be specified for a given type.
diff --git a/signature/derive/src/lib.rs b/signature/derive/src/lib.rs index d47216c..8de7618 100644 --- a/signature/derive/src/lib.rs +++ b/signature/derive/src/lib.rs @@ -10,9 +10,12 @@ )] use proc_macro::TokenStream; -use proc_macro2::TokenStream as TokenStream2; +use proc_macro2::{Span, TokenStream as TokenStre...
1
159
75
efae60b6ab40631e52ad1346dd2dd1437ca45110
Tony Arcieri
2022-09-15T20:05:30
async-signature: deprecate `AsyncKeypair` (#1112) As of #1107 this trait is shaped the same as `Keypair`, so there's no need for it to continue to exist. It will be removed in the next breaking release.
diff --git a/signature/async/src/lib.rs b/signature/async/src/lib.rs index 0d77574..fe12a3c 100644 --- a/signature/async/src/lib.rs +++ b/signature/async/src/lib.rs @@ -76,6 +76,7 @@ where /// Keypair with async signer component and an associated verifying key. /// /// This represents a type which holds both an asyn...
1
2
0
c593aa1e8f01667b5472524f04598915e7a46fe5
Dmitry Baryshkov
2022-09-15T18:06:55
signature: relax `Keypair` type bounds (#1107) * signature: relax Keypair boundaries The Keypair trait might be useful for representing relationship between DigestSigner and DigestVerifier, RandomizedSigner and RandomizedVerifier, etc. in addition to just Signer/Verfifier pair. Relax type boundaries for the Ke...
diff --git a/signature/async/src/lib.rs b/signature/async/src/lib.rs index 50de885..0d77574 100644 --- a/signature/async/src/lib.rs +++ b/signature/async/src/lib.rs @@ -13,7 +13,6 @@ pub use signature::{self, Error, Signature}; pub use signature::digest::{self, Digest}; use async_trait::async_trait; -use signature:...
2
5
6
2711ff5ad0719dacc588dcad3d0f5b835e347598
Tony Arcieri
2022-09-09T17:25:19
signature_derive: `DigestSigner`/`DigestVerifier` support (#1103) Adds support for deriving `DigestSigner`/`DigestVerifier` for types which impl `hazmat::{PrehashSigner, PrehashVerifier}`. Custom derive is used instead of a blanket impl in case implementations wish to specialize the `Digest*` impls. For example, ...
diff --git a/signature/derive/src/lib.rs b/signature/derive/src/lib.rs index 59fdfaf..f4f3fdf 100644 --- a/signature/derive/src/lib.rs +++ b/signature/derive/src/lib.rs @@ -12,7 +12,7 @@ use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2; use quote::quote; -use syn::{parse_macro_input, DeriveI...
4
174
28
726e5cd96e75099185e7fc6870525010e044bee2
KizzyCode
2022-09-09T13:57:29
elliptic-curve: add to_sec1_bytes (#1102)
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 1dc8585..f5ca888 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -37,6 +37,9 @@ use pkcs8::EncodePublicKey; #[cfg(any(feature = "jwk", feature = "pem"))] use alloc::string::{String, ToString}...
1
20
0
9d1b5b3c7e1877cf298d8272a7f6b582c0e1ab1d
Tony Arcieri
2022-09-09T02:45:52
signature_derive: remove `synstructure` dependency (#1100) It wasn't actually being used for anything structural, but rather for its higher-level proc macro API and testing facilities. However, both of those aren't too hard to replace, using `syn` for testing (via `parse_quote!`)
diff --git a/Cargo.lock b/Cargo.lock index 77f4595..a6c1498 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1184,7 +1184,6 @@ dependencies = [ "proc-macro2", "quote", "syn", - "synstructure", ] [[package]] diff --git a/signature/derive/Cargo.toml b/signature/derive/Cargo.toml index 12e82ea..9fe1179 100644 --- a/...
3
123
104
fae070d27c2b8e0ab46c7cbbe8d5378dd9d4c998
Артём Павлов [Artyom Pavlov]
2022-09-02T23:01:51
Update Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 0ea1549..77f4595 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -495,7 +495,7 @@ dependencies = [ "sec1", "serde_json", "serdect", - "sha2 0.10.3", + "sha2 0.10.5", "sha3", "subtle", "zeroize", @@ -677,7 +677,7 @@ dependencies = [ "hkdf 0.12.3", "hmac 0.12.1", "...
1
9
9
652088f22d0245270cc5622a4495dd80009e4cf4
Michael Rosenberg
2022-08-22T18:47:46
KEM: Updated HPKE deps for testing (#1090)
diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 326865c..60cc0e5 100644 --- a/kem/Cargo.toml +++ b/kem/Cargo.toml @@ -24,13 +24,15 @@ p256 = { version = "0.9", features = [ "ecdsa" ] } pqcrypto = { version = "0.15", default-features = false, features = [ "pqcrypto-saber" ] } pqcrypto-traits = "0.3" -# rust-hpke ...
2
9
9
48bd97000b062a21fe2b22b1bde1967ab84dd9e9
Artyom Pavlov
2022-08-22T17:58:59
Update Cargo.toml and desable HPKE tests in kem (#1089)
diff --git a/Cargo.lock b/Cargo.lock index 3bac158..0e67e0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "aead" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b613b8e1e3cf911a08...
3
277
238
826b0f048182cfc6d2e579e494dec8429747a493
Artyom Pavlov
2022-08-22T17:49:43
Replace Choice::unwrap_u8() == 1 with Choice::into() (#1088)
diff --git a/digest/src/mac.rs b/digest/src/mac.rs index 76f8df2..ccbd95b 100644 --- a/digest/src/mac.rs +++ b/digest/src/mac.rs @@ -144,7 +144,7 @@ impl<T: Update + FixedOutput + MacMarker> Mac for T { return Err(MacError); } let choice = self.finalize_fixed().ct_eq(tag); - if cho...
2
5
5
b1a538c18c8b45b3eac99bc760a3ef7ab7fb023f
Tony Arcieri
2022-08-14T18:49:07
async-signature: add `AsyncKeypair` (#1085) Adds a trait which provides an async equivalent of `Keypair` with requests to the signer sent async. Like `Signer`/`AsyncSigner`, also provides a blanket impl for the non-async `Keypair` trait.
diff --git a/signature/async/src/lib.rs b/signature/async/src/lib.rs index 4592c50..50de885 100644 --- a/signature/async/src/lib.rs +++ b/signature/async/src/lib.rs @@ -13,6 +13,7 @@ pub use signature::{self, Error, Signature}; pub use signature::digest::{self, Digest}; use async_trait::async_trait; +use signature:...
1
26
0
e7f2abae0dcb476f10fc84289c407a6be86275fc
Tony Arcieri
2022-08-14T16:45:59
signature: bump `hex-literal` dependency to v0.3 (#1083)
diff --git a/Cargo.lock b/Cargo.lock index 987f971..7a05581 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -416,7 +416,7 @@ dependencies = [ "ff 0.12.0", "generic-array", "group 0.12.0", - "hex-literal 0.3.4", + "hex-literal", "hkdf 0.12.3", "pem-rfc7468 0.6.0", "pkcs8 0.9.0", @@ -536,31 +536,12 @@ dependencie...
2
3
28
55da859b6f820f9b5ce9773e4f5461533db28960
Tony Arcieri
2022-08-14T12:37:12
signature: add `Keypair` trait (#1080) Adds a trait for types which represent a combination of both a signing key and verifying key as is common in many digital signature systems. The `Keypair` name follows Rust standard capitalization rules for the closed compound word "keypair" as commonly used in cryptography.
diff --git a/signature/src/keypair.rs b/signature/src/keypair.rs new file mode 100644 index 0000000..c5a55de --- /dev/null +++ b/signature/src/keypair.rs @@ -0,0 +1,17 @@ +//! Signing keypairs. + +use crate::{Signature, Signer, Verifier}; + +/// Signing keypair with an associated verifying key. +/// +/// This represent...
2
19
1
c53bf5b591f7ff485d8ec12a998117d2ac5519da
Tony Arcieri
2022-08-10T03:21:03
crypto: re-export `crypto-common` (#1076)
diff --git a/Cargo.lock b/Cargo.lock index 9de80d5..169341a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,6 +237,7 @@ version = "0.4.0-pre" dependencies = [ "aead 0.5.1", "cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", + "crypto-common 0.1.6", "digest 0.10.3 (registry+https://github.co...
3
8
0
7475fb13903a72515e470d3bf9fcbbc94df8e67c
Tony Arcieri
2022-08-10T01:44:48
aead: add `AeadCore::generate_nonce` (#1073) Adds a provided trait method to `AeadCore` for random nonce genreation, gated on the `rand_core` feature. Includes documentation with guidance from NIST SP 800-38D regarding the safety of random nonces, noting their suggested limit of 2^32 encryption operations per ke...
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index ba5d673..41191cf 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -64,6 +64,9 @@ use alloc::vec::Vec; #[cfg(feature = "bytes")] use bytes::BytesMut; +#[cfg(feature = "rand_core")] +use rand_core::{CryptoRng, RngCore}; + /// Error type. /// /// This type i...
1
49
0
2030e4c560d7a3e1fbf7b917f60d00261664b56a
Tony Arcieri
2022-08-02T02:55:54
elliptic-curve: add aliases for SEC1 compressed/uncompressed points (#1067) Adds `GenericArray` type aliases for representing compressed/uncompressed SEC1 points, along with type aliases for calculating their sizes.
diff --git a/elliptic-curve/src/sec1.rs b/elliptic-curve/src/sec1.rs index fd6d2c1..3e16359 100644 --- a/elliptic-curve/src/sec1.rs +++ b/elliptic-curve/src/sec1.rs @@ -5,14 +5,27 @@ pub use sec1::point::{Coordinates, ModulusSize, Tag}; use crate::{Curve, FieldSize, Result, SecretKey}; +use generic_array::GenericAr...
1
13
0
e1959bd709e994f02b74700f095dff42bae4b047
Tony Arcieri
2022-07-24T18:00:19
universal-hash v0.5.0-pre.2 (#1060)
diff --git a/Cargo.lock b/Cargo.lock index 10cfdf5..f0b0d65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,7 +242,7 @@ dependencies = [ "elliptic-curve 0.12.2", "password-hash", "signature 1.5.0", - "universal-hash 0.5.0-pre.1", + "universal-hash 0.5.0-pre.2", ] [[package]] @@ -1118,7 +1118,7 @@ dependencie...
3
4
4
ec0757d03b594aeef1c37c30f6b106dc3833dc98
Tony Arcieri
2022-07-24T17:36:38
universal-hash: add `UhfBackend::blocks_needed_to_align` (#1059) Originally suggested by @str4d here: https://github.com/RustCrypto/traits/pull/965#discussion_r857126434 The use case is ensuring unbuffered processing of the input AEAD message body when the AAD does not line up with the number of blocks it's pr...
diff --git a/universal-hash/src/lib.rs b/universal-hash/src/lib.rs index a8b6b79..c645899 100644 --- a/universal-hash/src/lib.rs +++ b/universal-hash/src/lib.rs @@ -53,6 +53,13 @@ pub trait UhfBackend: ParBlocksSizeUser { self.proc_block(block); } } + + /// Returns the number of blocks tha...
1
7
0
0904bed0e85f798bea4f1a61437ec55e4f089865
Tony Arcieri
2022-07-20T13:57:55
universal-hash v0.5.0-pre.1 (#1056)
diff --git a/Cargo.lock b/Cargo.lock index 9e6e413..f80935d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,7 +242,7 @@ dependencies = [ "elliptic-curve 0.12.2", "password-hash", "signature 1.5.0", - "universal-hash 0.5.0-pre", + "universal-hash 0.5.0-pre.1", ] [[package]] @@ -1118,7 +1118,7 @@ dependencies ...
3
4
4
53c47220e1316f68629336284277d34277e4aaa8
Agost Biro
2022-07-19T19:04:02
elliptic-curve: fix outdated doc (#1048) The `zeroize` feature flag has been removed, zeroization on drop is now done by default.
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index f6fd707..0fc3daf 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -2,10 +2,8 @@ //! //! The [`SecretKey`] type is a wrapper around a secret scalar value which is //! designed to prevent unint...
1
2
4
ccd718279f406e1ebee088fb4cdc6b578ec23740
Tony Arcieri
2022-07-19T17:57:16
universal-hash: add back `finalize_reset` (#1054) This method was used by the `aes-gcm-siv` crate to handle a case where consuming `self` is problematic and borrowing `&mut self` is much more straightforward. It seems we've had several cases like this pop up with similar methods that were removed in other crates li...
diff --git a/universal-hash/src/lib.rs b/universal-hash/src/lib.rs index 91d4b13..a8b6b79 100644 --- a/universal-hash/src/lib.rs +++ b/universal-hash/src/lib.rs @@ -32,7 +32,7 @@ extern crate std; pub use crypto_common::{ self, generic_array, typenum::{self, consts}, - Block, Key, KeyInit, ParBlocks, + ...
1
13
1
74db58175466681f005834403ba543c1db7cc127
Tony Arcieri
2022-07-16T21:48:09
crypto-common: move `ParBlocks*` from `cipher` crate (#1052) Moves `ParBlocks`/`ParBlocksSizeUser` from the `cipher` crate so it can be reused in the `universal-hash` crate (see #965, #1051). The `cipher` crate re-exports them in an API-compatible way, so this is not a breaking change.
diff --git a/cipher/src/lib.rs b/cipher/src/lib.rs index c97ae43..59b0d75 100644 --- a/cipher/src/lib.rs +++ b/cipher/src/lib.rs @@ -51,21 +51,11 @@ pub use crypto_common::{ generic_array, typenum::{self, consts}, AlgorithmName, Block, InnerIvInit, InvalidLength, Iv, IvSizeUser, Key, KeyInit, KeyIvInit, ...
2
13
11
cbaec6013837f488eab56d24661b6efc006238d5
Tony Arcieri
2022-07-02T21:13:49
aead v0.5.0-pre.2 (#1046)
diff --git a/Cargo.lock b/Cargo.lock index e36a2bd..8759615 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.5.0-pre.1" +version = "0.5.0-pre.2" dependencies = [ "blobby", "bytes", @@ -235,7 +235,7 @@ dependencies = [ name = "crypto" version ...
3
4
4
d34c61d10b513b48072042901e427526d925e721
Tony Arcieri
2022-07-02T20:41:07
aead: fix `new_test!` macro (#1045) It was referencing the now-removed `NewAead` trait
diff --git a/aead/src/dev.rs b/aead/src/dev.rs index a5795c9..a0fc7db 100644 --- a/aead/src/dev.rs +++ b/aead/src/dev.rs @@ -11,7 +11,7 @@ macro_rules! new_test { use aead::{ dev::blobby::Blob6Iterator, generic_array::{typenum::Unsigned, GenericArray}, - Aea...
1
1
1
7ffdfa7a0d4546d2806aca159a51a083dc15b915
Tony Arcieri
2022-07-02T19:37:24
aead v0.5.0-pre.1 (#1043)
diff --git a/Cargo.lock b/Cargo.lock index f3396a4..e36a2bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.5.0-pre" +version = "0.5.0-pre.1" dependencies = [ "blobby", "bytes", @@ -235,7 +235,7 @@ dependencies = [ name = "crypto" version = ...
3
4
4
8aa52b109a82060076f506db7e15fdc7e8c154c7
Tony Arcieri
2022-07-02T19:26:13
aead: `getrandom` eature (#1042) Adds a `getrandom` feature which activates `crypto-common/getrandom` and makes it simple to access `OsRng` without importing an additional dependency.
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index da10b15..cadd524 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -15,7 +15,7 @@ keywords = ["crypto", "encryption"] categories = ["cryptography", "no-std"] [dependencies] -crypto-common = { version = "0.1", path = "../crypto-common" } +crypto-common = { ver...
2
10
3
106df27c3cbf9524dffbb0be58ac050d49fc6084
Tony Arcieri
2022-07-01T23:15:17
aead: use `crypto-common` (#1033) Replaces the `NewAead` trait with the same-shaped `KeyInit` trait.
diff --git a/Cargo.lock b/Cargo.lock index 2ac4258..63aa6ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,21 +5,21 @@ version = 3 [[package]] name = "aead" version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b613b8e1e3cf911a086f53f03bf286f52fd7a7258e4fa606f0ef220d39d887...
5
24
61
8675be60763fad7bd841c6ca12cd0c596dcf1b25
Tony Arcieri
2022-07-01T14:42:07
elliptic-curve: bump `crypto-bigint` to v0.4.8 (#1039) Fixes deprecation warnings
diff --git a/Cargo.lock b/Cargo.lock index 59b6ec8..6f0a091 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,9 +259,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac961631d66e80ac7ac2ac0132...
4
19
19
5e1f26074efff8d81042bc798db0cf873a0c98f2
Tony Arcieri
2022-06-30T00:39:32
Make Cargo.toml comments on optional dependencies consistent (#1035) This style is consistent with other crates in this repo (and elsewhere in the project), for example `cipher`.
diff --git a/crypto-common/Cargo.toml b/crypto-common/Cargo.toml index dd9be5b..1f85b00 100644 --- a/crypto-common/Cargo.toml +++ b/crypto-common/Cargo.toml @@ -13,9 +13,10 @@ categories = ["cryptography", "no-std"] [dependencies] generic-array = { version = "0.14.4", features = ["more_lengths"] } +typenum = "1.14"...
3
5
3
6b0b6bd295c92a250844a4b54d9e836959af2f80
Tony Arcieri
2022-06-29T19:28:28
crypto-common: add `getrandom` feature (#1034) Transitively enables `rand_core/getrandom`, making it possible to access `crypto_common::rand_core::OsRng`.
diff --git a/crypto-common/Cargo.toml b/crypto-common/Cargo.toml index 9e07b31..dd9be5b 100644 --- a/crypto-common/Cargo.toml +++ b/crypto-common/Cargo.toml @@ -19,6 +19,7 @@ typenum = "1.14" [features] std = [] +getrandom = ["rand_core/getrandom"] [package.metadata.docs.rs] all-features = true
1
1
0
a60e3dc04c8ffafb1ed4dcf4085a6494d87f7103
Tony Arcieri
2022-06-28T00:07:31
password-hash: fix docs.rs metadata (#1031)
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index 2a1277f..4230828 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -29,5 +29,5 @@ alloc = ["base64ct/alloc"] std = ["alloc", "base64ct/std", "rand_core/std"] [package.metadata.docs.rs] -rustc-args = ["--cfg", "docsrs"] all...
1
1
1
ccdae97547507b18881ab3ff6d669bce8ec226af
Tony Arcieri
2022-06-12T13:24:30
elliptic-curve: generic impl of complete prime order formulas (#1022) Adds a generic implementation of the complete addition formulas from Renes-Costello-Batina 2015[1] adapted from @str4d's original implementation for the `p256` crate: https://github.com/RustCrypto/elliptic-curves/pull/15 This implementation ...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 93aafc9..62ac785 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -66,13 +66,30 @@ extern crate std; #[cfg_attr(docsrs, doc(cfg(feature = "rand_core")))] pub use rand_core; +#[macro_use] +mod macros; + pub mod ops; ...
2
147
14
6937f5d2fbf9454c0fc2d48c1fb1bb7591ef1d4b
Tony Arcieri
2022-06-10T00:45:11
elliptic-curve: add `impl_field_element!` macro (#1021) Extracts the macro of the same name from the `p384` crate so it can be used with other elliptic curve crates. Closes #1017.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 4e42471..305508a 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -707,6 +707,78 @@ impl Neg for ProjectivePoint { } } +/// Constant representing the base field modulus +/// p = 2^{224}(2^{32} − 1) + 2^{192} + 2^{9...
3
515
0
f1e3868fce59d0d157bae4994ee27fac6dec7c73
Tony Arcieri
2022-05-31T15:11:51
elliptic-curve: bump `crypto-bigint` to v0.4.3 (#1018) An explicit requirement for the full version ensures that the `AsRef`/`AsMut` impls are available: https://github.com/RustCrypto/crypto-bigint/pull/89
diff --git a/Cargo.lock b/Cargo.lock index f102512..d604c73 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,9 +259,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de3e45371ac6a1370324b085ac...
2
4
4
283e3b1360d471cd2b7228dcc7ad3c09f5dc6d74
Michael Rosenberg
2022-05-26T12:43:45
KEM v2 (#982) I made a few changes to the KEM API ## Deserialization As discussed over Zulip earlier this year, there should probably be a way to deserialize an encapsulated key sent over the wire. This breaks a bit with the rest of RustCrypto because it uses `&GenericArray` rather than `&[u8]` for bitstrings. ...
diff --git a/Cargo.lock b/Cargo.lock index 4f61812..f1c054a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -550,6 +550,7 @@ dependencies = [ "rand", "rand_core", "x3dh-ke", + "zeroize", ] [[package]] @@ -1016,3 +1017,18 @@ name = "zeroize" version = "1.5.5" source = "registry+https://github.com/rust-lang/crate...
6
159
60
30a048761b38fbec6942355f7eed146fd9f72832
Tony Arcieri
2022-05-09T03:25:40
elliptic-curve: `ecdh::SharedSecret::extract` HKDF helper (#1007) Adds support for using HKDF to generate key material from an ECDH shared secret using the `hkdf` crate. Renames the previous `as_bytes` method to `raw_secret_bytes` with a warning that the `extract` method should be preferred instead.
diff --git a/Cargo.lock b/Cargo.lock index 8c3bc5d..6eec933 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -286,6 +286,7 @@ checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" dependencies = [ "block-buffer 0.10.2", "crypto-common 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)...
4
69
27
4e4e69ac1127984d214a631d39e021b15c48990e
Tony Arcieri
2022-05-09T02:47:40
Cargo.lock: bump dependencies (#1008)
diff --git a/Cargo.lock b/Cargo.lock index b3f3271..8c3bc5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,15 +23,21 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.52" +version = "0.1.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "061a7acccaa286c011ddc30970...
1
46
32
f864dd077af12aae42fce5f417d16a908b9de957
Tony Arcieri
2022-05-09T00:06:09
elliptic-curve: bump `der`, `pkcs8`, and `sec1` (#1006) Bumps the following to final release versions: - `der` v0.6 - `pkcs8` v0.9 - `sec1` v0.3
diff --git a/Cargo.lock b/Cargo.lock index d31c04e..bc514ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -244,9 +244,9 @@ dependencies = [ [[package]] name = "der" -version = "0.6.0-pre.4" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0daf09ee3ea2f7e4f5761deb921bd4...
2
18
18
7ed813dd3bde17e009b255a2c487e8108d7e4d1f
Tony Arcieri
2022-05-08T18:52:54
elliptic-curve: bump `crypto-bigint` to v0.4 (#1005)
diff --git a/Cargo.lock b/Cargo.lock index 5ae9b1c..d31c04e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -194,9 +194,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.4.0-pre.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae6297ed3c636678b749...
2
4
4
196bee3f82b97d093cb0f5466003e068658fe591
Tony Arcieri
2022-05-08T02:53:05
elliptic-curve: bump `sec1` dependency to v0.3.0-pre.4 (#1004)
diff --git a/Cargo.lock b/Cargo.lock index cb32d84..5ae9b1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -174,7 +174,7 @@ dependencies = [ "cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "crypto-mac", "digest 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)", - "elliptic-curve...
2
9
7
916ae38e588ecd90daf975b57b3390565d98e5e1
Tony Arcieri
2022-05-07T16:53:11
elliptic-curve v0.12.0-pre.3 (#1003)
diff --git a/Cargo.lock b/Cargo.lock index aa82aea..cb32d84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -174,7 +174,7 @@ dependencies = [ "cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "crypto-mac", "digest 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)", - "elliptic-curve...
2
3
3
6d70420aa10fea3161fc0e7f1379189797619bb2
Tony Arcieri
2022-05-07T16:16:12
elliptic-curve: bump `crypto-bigint` to v0.4.0-pre.1 (#1002)
diff --git a/Cargo.lock b/Cargo.lock index 464c0b2..aa82aea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -194,9 +194,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.4.0-pre.0" +version = "0.4.0-pre.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a9df9647255ed...
2
4
4
63ced8d97188fd1ec468f9e253fcb6744c3af300
Tony Arcieri
2022-05-07T14:26:25
elliptic-curve: replace `AlgorithmParamters` with `AssociatedOid` (#1001) Uses the `AssociatedOid` trait from `const-oid` to replace the similarly shaped `AlgorithmParameters` trait.
diff --git a/Cargo.lock b/Cargo.lock index 34dbbf7..464c0b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -# version = 3 [[package]] @@ -325,6 +324,7 @@ dependencies = [ "group 0.12.0", "hex-literal 0.3.4", ...
6
40
50
24d84b137a43d6205ade0fef1c2f765bd030bff8
Tony Arcieri
2022-05-06T23:24:58
elliptic-curve: fix broken rustdoc links (#998)
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index a733005..dbcb151 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -44,8 +44,8 @@ where /// /// `len_in_bytes = <Self::FieldElement a...
2
7
7
4880e230fa8b0aaed2f1b9469b06458ed8499056
Tony Arcieri
2022-05-06T15:35:03
elliptic-curve v0.12.0-pre.2 (#997)
diff --git a/Cargo.lock b/Cargo.lock index df2f045..bb3719e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -174,7 +174,7 @@ dependencies = [ "cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", "crypto-mac", "digest 0.10.3 (registry+https://github.com/rust-lang/crates.io-index)", - "elliptic-curve...
2
3
3
a874af7f57a0ae57f3b1df554048e3c37b35a118
Tony Arcieri
2022-05-06T14:16:21
elliptic-curve: use `serdect` crate (#996) Uses the `serdect` crate, which provides constant time-ish serde serializers/deserializers, for impl'ing the `serde::{Deserialize, Serialize}` traits.
diff --git a/Cargo.lock b/Cargo.lock index 16e5bd5..df2f045 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,8 +326,8 @@ dependencies = [ "pem-rfc7468 0.5.1", "rand_core", "sec1", - "serde", "serde_json", + "serdect", "sha2 0.10.2", "sha3", "subtle", @@ -780,6 +780,16 @@ dependencies = [ "serde", ] +...
6
29
65
86c4dd72ca701056823687adb3823245306137ca
Tony Arcieri
2022-05-06T13:14:08
elliptic-curve: bump `der` to v0.6.0-pre.4 (#995) Also bumps `pkcs8` to v0.9.0-pre.2. This should hopefully be the last prerelease before a final release.
diff --git a/Cargo.lock b/Cargo.lock index ccafb4e..16e5bd5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,9 +153,9 @@ checksum = "9d6f2aa4d0537bcc1c74df8755072bd31c1ef1a3a1b85a68e8404a8c353b7b8b" [[package]] name = "const-oid" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang...
8
36
35
8f61b3ab696e699f2eda8fbd0781ff89e7208684
Tony Arcieri
2022-05-05T03:55:49
elliptic-curve: bump `ff` + `group` to v0.12 (#994) Release notes: - `ff` v0.12: https://github.com/zkcrypto/ff/blob/main/CHANGELOG.md#0120---2022-05-04 - `group` v0.12: https://github.com/zkcrypto/group/blob/main/CHANGELOG.md#0120---2022-05-04
diff --git a/Cargo.lock b/Cargo.lock index c0c70f0..ccafb4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,9 +55,9 @@ dependencies = [ [[package]] name = "bitvec" -version = "0.22.3" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5237f00a8c86130a0cc317830e558b966d...
2
17
17
34540dcd05e3f7337a9cf322999520f5aea6f759
Tony Arcieri
2022-04-08T15:28:15
elliptic-curve: remove `Zeroize` impl from `ecdh::SharedSecret` (#978) The purpose of zeroization is to clear the bytes of the shared secret on drop. However, before this commit `SharedSecret` also had a `Zeroize` impl which could be called before `Drop`. Used incorrectly, this could potentially erase the shar...
diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs index 40307ea..7b6540d 100644 --- a/elliptic-curve/src/ecdh.rs +++ b/elliptic-curve/src/ecdh.rs @@ -204,16 +204,10 @@ impl<C: Curve> From<FieldBytes<C>> for SharedSecret<C> { } } -impl<C: Curve> Zeroize for SharedSecret<C> { - fn zeroize(&m...
1
1
7
c5ab0d6233a690fb34cc4a95c4bc828ec31a83f2
Agost Biro
2022-04-06T16:42:07
Fix typo in comment (#977)
diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs index 6f0fa67..735f2c8 100644 --- a/cipher/src/stream.rs +++ b/cipher/src/stream.rs @@ -168,7 +168,7 @@ pub trait StreamCipherSeek { /// Seek to the given position /// /// # Panics - /// If provided position value is bigger than keystream leangt...
1
1
1
e9e0f1cb32bdc52a5666c4ecd1219d37d29b1402
Tony Arcieri
2022-04-06T16:36:48
password-hash: add `authentication` category to Cargo.toml (#976)
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index 3ea1275..37e1a13 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" documentation = "https://docs.rs/password-hash" repository = "https://github.com/RustCrypto...
1
1
1
ad0572f49fb5924de078cb5233e025562ebfd4b2
Tony Arcieri
2022-03-17T04:09:47
elliptic-curve: add hex `serde` (de)serializer for `PublicKey` (#967) This commit changes the `Serializer` and `Deserializer` impls on the `PublicKey` type to work more like the ones on other types in this crate and its downstream dependencies: - Use binary DER serialization with binary formats (what it does toda...
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 59897d4..684a258 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -42,7 +42,7 @@ sha3 = "0.10" [features] default = ["arithmetic"] -alloc = ["der/alloc", "sec1/alloc", "zeroize/alloc"] # todo: use weak activation for `...
2
21
12
d728dda991b355d3afc7422a6fd4c88a77b37a52
Tony Arcieri
2022-03-09T18:18:09
password-hash: make `Ident::new` fallible; add `Ident::new_unwrap` (#960) Unifies the `const fn` implementation of `Ident::new` and `TryFrom`, with the former now able to return a result thanks to const panic. Since `Debug` isn't const-friendly yet and therefore `Result::unwrap` cannot be used in const contexts, ...
diff --git a/password-hash/src/ident.rs b/password-hash/src/ident.rs index 8283385..02e3269 100644 --- a/password-hash/src/ident.rs +++ b/password-hash/src/ident.rs @@ -47,41 +47,42 @@ impl<'a> Ident<'a> { /// Parse an [`Ident`] from a string. /// - /// # Panics - /// - /// Must conform to the cont...
5
63
105
107530fdee0cc85cc4c99587285f255581c57651
Tony Arcieri
2022-03-07T17:32:59
password-hash: add docs for `Salt::RECOMMENDED_LENGTH` (#957) Incorporates documentation from the PHC string format specification as to why the given length was chosen
diff --git a/password-hash/src/salt.rs b/password-hash/src/salt.rs index b5f09f8..9702f74 100644 --- a/password-hash/src/salt.rs +++ b/password-hash/src/salt.rs @@ -37,7 +37,7 @@ const INVARIANT_VIOLATED_MSG: &str = "salt string invariant violated"; /// # Recommended length /// The recommended default length for a sa...
1
10
1
98d33669560a6a8b0b7f6b28bb302e2798b39e2f
Artyom Pavlov
2022-02-17T12:35:01
Add doc cfg to zeroize re-export (#944)
diff --git a/cipher/src/lib.rs b/cipher/src/lib.rs index 2f84ca2..afa68f9 100644 --- a/cipher/src/lib.rs +++ b/cipher/src/lib.rs @@ -32,6 +32,7 @@ pub use crypto_common::rand_core; pub use inout::block_padding; #[cfg(feature = "zeroize")] +#[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))] pub use zeroize; #[cf...
1
1
0
2137b13bb6b9955b43c77e84c503a0275bc4088e
Artyom Pavlov
2022-02-10T23:05:31
Update lock files (#935)
diff --git a/Cargo.lock b/Cargo.lock index 65efb35..2495b46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,40 +69,39 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "683d6b536309245c849479fba3da410962a43ed8e51c2...
4
56
59
bf77a1194a0bb1c542a579e54febecb4cf6506f0
Tony Arcieri
2022-01-19T22:17:46
elliptic-curve v0.12.0-pre.1 (#916)
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 9fd5b94..8187f46 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "elliptic-curve" -version = "0.12.0-pre.0" # Also update html_root_url in lib.rs when bumping this +version = "0.12.0-pre.1"...
2
2
2
30cdb2e945e687a9d7d23f60a3d056e889ecdb0f
daxpedda
2022-01-19T18:27:54
Better constraint that `Output` is `ProjectivePoint` (#906)
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index ba28790..a733005 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -1,15 +1,16 @@ //! Traits for handling hash to curve. use super::{hash_t...
1
10
9
898022ddcddaaf915d96c52abcb2999b6afd2e77
Tony Arcieri
2022-01-19T13:50:54
elliptic-curve: bump dependencies in Cargo.lock (#915) Dependabot wasn't taking care of these since `elliptic-curve` is split out into its own workspace since older MSRV crates can't handle the 2021 edition.
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 6f1b4d2..886ca8c 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -10,9 +10,9 @@ checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce" [[package]] name = "base64ct" -version = "1.3.1" +version =...
1
18
18
a9fd0a7ab85374d5936c01e778a2d7f3f564b045
Tony Arcieri
2022-01-19T13:39:33
password-hash: remove `base64ct` version restrictions (#914) These were in place to prevent MSRV-related breakages. Now that `password-hash` has been bumped to a higher MSRV than `base64ct`, it's no longer needed.
diff --git a/password-hash/Cargo.lock b/password-hash/Cargo.lock index a10c756..fe63ec2 100644 --- a/password-hash/Cargo.lock +++ b/password-hash/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "base64ct" -version = "1.0.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-inde...
2
3
3
03cbd28d1f6d97fcc35beecdc7af92c307c557cc
Tony Arcieri
2022-01-19T01:36:36
elliptic-curve: simplify `Reduce::from_*_digest_reduce` bounds (#904) Several of the previous bounds are unnecessary for the actual operation performed, which is just `finalize_fixed`. This commit removes the unneeded bounds.
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index 64a0eb3..580c5ae 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -8,7 +8,7 @@ use crypto_bigint::{ArrayEncoding, ByteArray, Integer}; use {group::Group, subtle::CtOption}; #[cfg(feature = "digest")] -use digest::{core...
1
5
5
27536e0b298a39bd13290529aa209dbd7e995a42
daxpedda
2022-01-18T16:28:58
elliptic-curve: move `hash2field` into `hash2curve` module (#903)
diff --git a/elliptic-curve/src/hash2curve.rs b/elliptic-curve/src/hash2curve.rs index 1ac1d35..3df394f 100644 --- a/elliptic-curve/src/hash2curve.rs +++ b/elliptic-curve/src/hash2curve.rs @@ -3,11 +3,13 @@ //! <https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve> mod group_digest; +mod hash2field; mod ...
7
5
9
15d2c1945f1f4600138d2bbabd9b26245b8c12b8
Tony Arcieri
2022-01-18T15:50:11
elliptic-curve v0.12.0-pre.0 (#902)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 1375bfa..6f1b4d2 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -100,7 +100,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.12.0-pre" +version = "0.12.0-pre.0" dependencies = [ "base16ct", ...
3
3
3
f899a15cb2cd293d69d1b6502e7cc537d3da480d
daxpedda
2022-01-18T13:41:08
Handle empty `dst` (#899)
diff --git a/elliptic-curve/src/hash2field/expand_msg.rs b/elliptic-curve/src/hash2field/expand_msg.rs index 6fd88df..dfb3bab 100644 --- a/elliptic-curve/src/hash2field/expand_msg.rs +++ b/elliptic-curve/src/hash2field/expand_msg.rs @@ -3,7 +3,7 @@ pub(super) mod xmd; pub(super) mod xof; -use crate::Result; +use cr...
3
24
18
e8f838ab6fe91324ee246b909b296ea122f509ce
Tony Arcieri
2022-01-17T21:54:34
elliptic-curve: make `ToCompactEncodedPoint` return `CtOption` (#895) This is more consistent with the `ToEncodedPoint` trait.
diff --git a/elliptic-curve/src/sec1.rs b/elliptic-curve/src/sec1.rs index f548a7f..fd6d2c1 100644 --- a/elliptic-curve/src/sec1.rs +++ b/elliptic-curve/src/sec1.rs @@ -49,7 +49,7 @@ where { /// Serialize this value as a SEC1 [`EncodedPoint`], optionally applying /// point compression. - fn to_compact_enc...
1
1
1
bb3d0de358006a476533720fae6fcadffcbe12cf
Tony Arcieri
2022-01-17T21:48:26
elliptic-curve: make `NonZeroScalar::invert` infallible (#894) Because `NonZeroScalar` means we'll never divide by 0, it's possible to make the implementation infallible. To accomplish this, `CtOption` is removed from the `Invert` trait's signature, and used as the result type for scalars that are potentially ze...
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index d6a2154..64a0eb3 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -3,10 +3,9 @@ pub use core::ops::{Add, AddAssign, Mul, Neg, Sub, SubAssign}; use crypto_bigint::{ArrayEncoding, ByteArray, Integer}; -use subtle::CtOpti...
2
9
8
dc47a5abc2d05a5f05366d3b4dc1f677570a4db8
Tony Arcieri
2022-01-17T21:37:49
elliptic-curve: bump version to 0.12 prerelease (#893) Switching over to making breaking changes again now that #883 is merged. There are a number of other pent up breaking changes that have been desired which we can now start working on.
diff --git a/crypto/Cargo.lock b/crypto/Cargo.lock index 905a71d..296df35 100644 --- a/crypto/Cargo.lock +++ b/crypto/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.11.9" +version = "0.12.0-pre" dependencies = [ "base16ct", "crypto-bigint", diff --git a/crypto...
5
5
5
981af7794590ea25f0e7d5796ccde7a8a3734de2
daxpedda
2022-01-17T21:31:11
Update to digest 0.10 (#883)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 76ee28d..b3896be 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -28,20 +28,13 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-l...
5
60
60
ff14dadb2a252940ecc579928fc88b5fba03e601
Tony Arcieri
2022-01-17T15:59:51
elliptic-curve: activate `bits`, `hash2curve`, `voprf` on docs.rs (#891) Expands the list of features that appear in rustdoc documentation published to https://docs.rs/elliptic-curve/ to include all of the newly added features which shipped in v0.11.8. We'll need to publish a v0.11.9 in order for this to render.
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 18f8f5c..662d485 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -60,5 +60,5 @@ std = ["alloc", "rand_core/std"] voprf = ["digest"] [package.metadata.docs.rs] -features = ["arithmetic", "ecdh", "jwk", "pem", "std"] +f...
1
1
1
d3e544885f0f8c6bd07658470d6f5f6fd0a95b57
Daiki Mizukami
2022-01-15T23:14:29
digest: bump `generic-array` dependency to v0.14.4 (#885) `generic-array` v0.14.4 uses `typenum` v1.12.0, which makes `Unsigned` imply `Default`, which, in turn, is required for `CoreWrapper` to to implement `Digest`.
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 9ec439e..037216d 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["digest", "crypto", "hash"] categories = ["cryptography", "no-std"] [dependencies] -generic-array = "0.14" +generic-array = "0.14.4" crypto-common = { versi...
1
1
1
6aa3eb26dc7d843b4df8a8841f04602cb109457f
Tony Arcieri
2022-01-15T20:11:29
elliptic-curve: replace `hex` module with `base16ct` (#888) Completely replaces the previous `hex` module with the `base16ct` crate
diff --git a/elliptic-curve/src/hex.rs b/elliptic-curve/src/hex.rs deleted file mode 100644 index 2d782ab..0000000 --- a/elliptic-curve/src/hex.rs +++ /dev/null @@ -1,49 +0,0 @@ -//! Hexadecimal encoding helpers - -use crate::{Error, Result}; -use core::str; - -/// Decode the provided hexadecimal string into the provid...
4
7
55
77ec628f0f8ab3276efd6a8418f66d2ac4a58140
Tony Arcieri
2022-01-15T15:51:34
elliptic-curve: use `base16ct::HexDisplay` (#887) Uses a constant time-ish implementation of a hexadecimal display formatter to replace what was previously in the `hex` module.
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 620cd43..a28aad7 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "base16ct" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-...
5
10
52
bbc18e2038c044f09b6cf1ae3c821741d4c446c4
Tony Arcieri
2022-01-15T14:14:16
elliptic-curve: use the `base16ct` crate (#886) Uses the new `base16ct` crate for hex decoding. The encoder is still implemented in a non-constant-time manner. The functionality to encode to a `fmt::Formatter` needs to be upstreamed into the `base16ct` crate.
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 77fa775..620cd43 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -2,6 +2,12 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "base16ct" +version = "0.1.0" +source = "registry+https://github...
4
19
39
e5b99207535ed36964ddfc454d1ea46fb1425a07
daxpedda
2022-01-14T20:56:27
Implement `ZeroizeOnDrop` on appropriate items (#884)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index b40da86..77fa775 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -337,6 +337,6 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/cr...
5
14
6
e484b4db9647d8a9fbe3c14dbbbb70ccc22f3d3e
daxpedda
2022-01-14T18:19:58
Fix `GroupDigest` docs (#881)
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index 644d149..be42553 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -44,7 +44,7 @@ pub trait GroupDigest: ProjectiveArithmetic<ProjectivePoint =...
1
3
3
e844f78cccb89c9e9250f687eaa4746d1830b365
daxpedda
2022-01-11T13:03:17
Improve API for hash2curve functions (#876) - Allow methods to accept multiple `data`/`msg`s by using `&[&[u8]]`, á la `Hkdf::expand_multi_info()` - Implement `hash_to_scalar`, got an implementation for P-256 already working with test vectors. - Remove `'static` requirement for `dst`. The goal here is to make thi...
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 9e476cd..30528f5 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -49,7 +49,7 @@ alloc = ["der/alloc", "sec1/alloc", "zeroize/alloc"] # todo: use weak activation arithmetic = ["ff", "group"] bits = ["arithmetic", "ff/bit...
6
201
77
c8b73e556e060d53d500d662d6ecaa7f2c261b39
Tony Arcieri
2022-01-08T00:29:24
elliptic-curve: hash2curve rustdoc improvements (#877) - Moves doc comments on `mod <modname>` into toplevel module comments. These have the same effect, but also self-document the module you are looking at, and are more amenable to rich top-of-module documentation. - Breaks apart the rustdoc "headline" from...
diff --git a/elliptic-curve/src/hash2curve.rs b/elliptic-curve/src/hash2curve.rs index 5b81eca..1ac1d35 100644 --- a/elliptic-curve/src/hash2curve.rs +++ b/elliptic-curve/src/hash2curve.rs @@ -1,11 +1,10 @@ -/// Traits for handling hash to curve +//! Traits for hashing byte sequences to curve points. +//! +//! <https:/...
10
61
38
cabb47bf5ebefed1c0f1499f165a740da9cbf70c
Tony Arcieri
2022-01-07T23:01:19
elliptic-curve: refactor `hash2curve::expand_msg*` module structure (#875) The `hash2curve` module has three submodules which start with the `expand_msg` prefix: - `expand_msg` - `expand_msg_xmd` - `expand_msg_xof` This commit refactors them into a structure I think its more idiomatic, placing `xmd` and `xof...
diff --git a/elliptic-curve/src/hash2field.rs b/elliptic-curve/src/hash2field.rs index 8d0c088..953855c 100644 --- a/elliptic-curve/src/hash2field.rs +++ b/elliptic-curve/src/hash2field.rs @@ -1,10 +1,6 @@ mod expand_msg; -mod expand_msg_xmd; -mod expand_msg_xof; -pub use expand_msg::*; -pub use expand_msg_xmd::*; -...
5
5
6
7f1b5f516eed312a5268d5f8da077f5093d8b227
Tony Arcieri
2022-01-07T15:46:02
elliptic-curve: make `ExpandMsg` fallible (#871) As noted on #865 there are some potential overflow problems constructing the messages used for expansion, particularly around input lengths. This commit changes `ExpandMsg::expand_message`, and all of its transitive callers, to be fallible in order to handle these ...
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index 736f7c9..f0a0dc1 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -1,5 +1,8 @@ use super::MapToCurve; -use crate::hash2field::{hash_to_field,...
5
35
22
4b5c1e4ee7b1eec5c58d4cab6462efda9c365131
Michael Lodder
2022-01-07T03:41:38
elliptic-curve: add traits for group digest (#865)
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 3249ec1..0f48d46 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -47,10 +47,10 @@ alloc = ["der/alloc", "sec1/alloc", "zeroize/alloc"] # todo: use weak activation arithmetic = ["ff", "group"] bits = ["arithmetic", "ff/b...
11
343
91
0de6d560bfffa11ff6586f9368bff000bb62038a
Michael Lodder
2022-01-03T18:22:20
gate behind hashing => digest (#863) Signed-off-by: Michael Lodder <redmike7@gmail.com>
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 242ce34..3249ec1 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -48,7 +48,6 @@ arithmetic = ["ff", "group"] bits = ["arithmetic", "ff/bits"] dev = ["arithmetic", "hex-literal", "pem", "pkcs8"] ecdh = ["arithmetic"] -h...
2
2
3
1e1ab1da05e2d7480e2aca46c4a381173a968476
Tony Arcieri
2022-01-03T16:48:10
elliptic-curve: fixups for `Mul` impls for `NonZeroScalar` (#862) - Uses a `PrimeCurve` bound to ensure curve is prime order - Composes the owned and borrowed impls of `Mul`, implementing the former in terms of the latter
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 8aabd37..0f38d7c 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -5,7 +5,8 @@ use crate::{ hex, ops::{Invert, Reduce, ReduceNonZero}, rand_core::{CryptoRng, RngCo...
1
8
10
43b46ac39b32b4b07c7c5bf14651e9fa120110b7
Bogdan Opanchuk
2022-01-03T16:21:07
Add impl Mul for NonZeroScalar * NonZeroScalar (#857)
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 3ed3535..8aabd37 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -9,7 +9,7 @@ use crate::{ }; use core::{ fmt, - ops::{Deref, Neg}, + ops::{Deref, Mul, Neg}, s...
1
31
1
432a96491c4c6ea70fe9a79ad8ba437d189f0483
Michael Lodder
2022-01-03T16:20:26
feat: add hash to field (#855) Signed-off-by: Michael Lodder <redmike7@gmail.com>
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 9352ce4..812bece 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "base64ct" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-...
7
171
16
a84630d6088bf59d23dd3911c3e0bed05f22356f
Alexander Wagner
2022-01-03T14:52:37
digest: Fix typo in docs (#858)
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 7aa346e..b896bb9 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -8,9 +8,8 @@ //! usually prefer using these traits. //! - **Mid-level traits**: [`Update`], [`FixedOutput`], [`FixedOutputReset`], //! [`ExtendableOutput`], [`ExtendableOutputReset`...
1
2
3
dcbce6a19db9003b2b7faaaad651e8b10a5ddf24
Michael Lodder
2021-12-22T20:32:42
feat: add osswu trait (#854) Signed-off-by: Michael Lodder <redmike7@gmail.com>
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index bcda307..848b3e5 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -49,6 +49,7 @@ dev = ["arithmetic", "hex-literal", "pem", "pkcs8"] ecdh = ["arithmetic"] hazmat = [] jwk = ["alloc", "base64ct/alloc", "serde", "serde_js...
3
90
0
c235c0c0d828202f63cb3f263e310e45dda9901d
Tony Arcieri
2021-12-20T21:53:38
elliptic-curve: type conversions chart (#852) Adds a chart which illustrates the various conversions possible between the various types defined by this crate to the toplevel rustdoc.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 3b2d3b5..3e5974f 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -20,6 +20,13 @@ //! the above crates, either via an external ECDSA implementation, or //! using native curve arithmetic where applicable. //! +//! ## Typ...
1
7
0
f97307afb8632897187102a0e8346309080cd545
Tony Arcieri
2021-12-14T18:35:02
signature: bump `digest` dependency to v0.10 (#850)
diff --git a/Cargo.lock b/Cargo.lock index cd72be0..72e9e2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ dependencies = [ [[package]] name = "async-signature" -version = "0.0.1" +version = "0.1.0-pre" dependencies = [ "async-trait", "signature", @@ -43,15 +43,6 @@ version = "0.3.1" source = "reg...
8
122
118
f7cd3abd05d60b9d2dde0e158eaa2e3e14bf9c0c
Popog
2021-12-11T16:23:40
Fix typo (#844)
diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs index e33dd15..0e7d88e 100644 --- a/cipher/src/stream.rs +++ b/cipher/src/stream.rs @@ -57,7 +57,7 @@ pub trait StreamCipherSeek { /// Seek to the given position /// /// # Panics - /// If provided position value is bigger than keystream leangth ...
1
1
1
ef0f3e32e256b67d7bfc8f5b7d0429cb8e7634e0
Artyom Pavlov
2021-12-08T18:19:13
Fix doc cfg for CtOutput and MacError (#842)
diff --git a/digest/src/mac.rs b/digest/src/mac.rs index efebe1d..fdddb83 100644 --- a/digest/src/mac.rs +++ b/digest/src/mac.rs @@ -157,7 +157,7 @@ impl<T: KeyInit + Update + FixedOutput + MacMarker> Mac for T { /// /// It is useful for implementing Message Authentication Codes (MACs). #[derive(Clone)] -#[cfg_attr(...
1
2
1
e10f28775673563e9f0ade9c549dd30f5649fedc
Tony Arcieri
2021-12-04T18:23:30
elliptic-curve: revised `LinearCombination` trait (#835) Changes `LinearCombination` to be impl'd on the `ProjectivePoint` type for a given curve, rather than the curve ZST. This better fits the trait-based structure used by the `group` crate, and also makes sense as `ProjectivePoint` is the return type, so it's ...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index b69c1a4..fa445f1 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,6 +1,8 @@ //! Elliptic curve arithmetic traits. -use crate::{AffineXCoordinate, Curve, FieldBytes, IsHigh, PrimeCurve, Sca...
3
10
10
ad3fa7356c6b8870810e924d028f31149254697d
Tony Arcieri
2021-12-04T17:33:47
elliptic-curve: fix `ecdh` docs (#834) There's an example marked `ignore` for the `diffie_hellman` function which is no longer valid. This commit fixes it.
diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs index 90aff47..8b59602 100644 --- a/elliptic-curve/src/ecdh.rs +++ b/elliptic-curve/src/ecdh.rs @@ -51,7 +51,7 @@ use zeroize::Zeroize; /// /// ```ignore /// let shared_secret = elliptic_curve::ecdh::diffie_hellman( -/// secret_key.secret_scala...
1
1
1
012e39ec2cde06d87611d4b5aede3b3b296cfedb
Tony Arcieri
2021-12-04T16:57:25
elliptic-curve: add `LinearCombination` trait (#832) Adds a trait for computing `x * k + y * l`. This allows curve implementations to provide optimized arithmetic when available (e.g. Shamir's Trick)
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index 3558164..b49e1b3 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -5,6 +5,9 @@ pub use core::ops::{Add, AddAssign, Mul, Neg, Sub, SubAssign}; use crypto_bigint::{ArrayEncoding, ByteArray, Integer}; use subtle::CtOption; ...
1
23
0
559eb9e349884ff53db032db9bff7044b9d73dad
Tony Arcieri
2021-12-04T00:40:25
elliptic-curve: serde documentation (#831) Document serde serializations provided by this crate
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 9755dde..8df1408 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -56,7 +56,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.11.2" +version = "0.11.3" dependencies = [ "base64ct", "crypto-bi...
5
28
5