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 |
|---|---|---|---|---|---|---|---|
8b9741e5f8b17e2064106c50d9bf5cddcf183a35 | Tony Arcieri | 2020-12-12T23:49:58 | pkcs8: DER encoding support (#120)
Adds support for encoding `AlgorithmIdentifier` and `PrivateKeyInfo` | diff --git a/pkcs8/Cargo.toml b/pkcs8/Cargo.toml
index cb6f0f4..d548b31 100644
--- a/pkcs8/Cargo.toml
+++ b/pkcs8/Cargo.toml
@@ -15,7 +15,7 @@ keywords = ["crypto", "key", "private"]
readme = "README.md"
[dependencies.const-oid]
-version = "0.3"
+version = "0.3.5"
path = "../const-oid"
[dependencies.subtle-enco... | 9 | 429 | 213 |
976137fd5591a07d6fbdf8148bca9e813c4ae53c | Tony Arcieri | 2020-12-06T18:51:38 | pkcs8: add helper methods to load keys from the local filesystem (#115)
Adds the following methods gated on the `std` feature:
- `pkcs8::FromPrivateKey::{load_pkcs8_der, load_pkcs8_pem}`
- `pkcs8::FromPublicKey::{load_public_key_der, load_public_key_pem}` | diff --git a/pkcs8/src/traits.rs b/pkcs8/src/traits.rs
index ecb1413..aeca95d 100644
--- a/pkcs8/src/traits.rs
+++ b/pkcs8/src/traits.rs
@@ -5,12 +5,15 @@ use crate::{PrivateKeyInfo, Result, SubjectPublicKeyInfo};
#[cfg(feature = "pem")]
use crate::{PrivateKeyDocument, PublicKeyDocument};
+#[cfg(feature = "std")]
+... | 1 | 48 | 1 |
08830b98f587d15b4998ad098886e63052b10572 | Tony Arcieri | 2020-12-05T20:16:35 | const-oid: documentation improvements (#112)
Removes some obsolete descriptions of how this crate worked previously. | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index b4866b1..e9ca24c 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -1,14 +1,5 @@
-//! Object Identifier (OID) constants with heapless `no_std` support.
-//!
-//! This crate supports creating [`ObjectIdentifier`] constants with
-//! compile-tim... | 1 | 2 | 11 |
133b47f9df2a49ed9bb7ce289044d943bd50c3d4 | Tony Arcieri | 2020-12-05T17:39:14 | const-oid: doc improvements (#107) | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index eb21c27..0c877fb 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -12,15 +12,25 @@
//!
//! # About OIDs
//!
-//! Object Identifiers, a.k.a. OIDs, are an International Telecommunications Union (ITU) and
-//! ISO/IEC standard for naming any ... | 1 | 14 | 4 |
45af26ddd2741ec6e2d4ad36c4ebec996d21df06 | Tony Arcieri | 2020-12-05T17:22:06 | const-oid: impl TryFrom<&[u32]> for ObjectIdentifier (#105) | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index 5c2267b..c04b747 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -88,6 +88,8 @@ impl ObjectIdentifier {
///
/// For that reason this method is not recommended except for use in
/// constants (where it will generate a compiler ... | 1 | 34 | 4 |
165d1c93385a1bf8b7ba6630ef13ed8559783b86 | Tony Arcieri | 2020-12-05T17:00:01 | pkcs8: re-export the `FromPublicKey` trait (#104) | diff --git a/pkcs8/src/lib.rs b/pkcs8/src/lib.rs
index 1f23e93..7275580 100644
--- a/pkcs8/src/lib.rs
+++ b/pkcs8/src/lib.rs
@@ -52,7 +52,7 @@ pub use crate::{
error::{Error, Result},
private_key_info::PrivateKeyInfo,
spki::SubjectPublicKeyInfo,
- traits::FromPrivateKey,
+ traits::{FromPrivateKey, ... | 1 | 1 | 1 |
00e434c0391c5f996fbec65f76777dded4ecc683 | Tony Arcieri | 2020-12-05T16:48:41 | pkcs8: add `FromPublicKey` trait (#103)
Also renames the former `FromPkcs8` trait to `FromPrivateKey`. | diff --git a/pkcs8/src/lib.rs b/pkcs8/src/lib.rs
index c092618..1f23e93 100644
--- a/pkcs8/src/lib.rs
+++ b/pkcs8/src/lib.rs
@@ -39,6 +39,7 @@ mod asn1;
mod error;
mod private_key_info;
mod spki;
+mod traits;
#[cfg(feature = "alloc")]
mod document;
@@ -51,34 +52,9 @@ pub use crate::{
error::{Error, Result},... | 2 | 58 | 26 |
d21e5612f6c9af9b64d7613cffb3a5e6b694b0e7 | Tony Arcieri | 2020-12-05T16:26:55 | pkcs8: PEM support for decoding SubjectPublicKeyInfo (#101)
Generalizes PEM support so it can support both public and private keys,
splitting `pkcs8::Document` into `pkcs8::PublicKeyDocument` and
`pkcs8::PrivateKeyDocument`. | diff --git a/pkcs8/src/document.rs b/pkcs8/src/document.rs
index 4373694..85f2771 100644
--- a/pkcs8/src/document.rs
+++ b/pkcs8/src/document.rs
@@ -1,7 +1,7 @@
-//! PKCS#8 documents: serialized PKCS#8 private keys
+//! PKCS#8 documents: serialized PKCS#8 private keys and SPKI public keys
// TODO(tarcieri): heapless s... | 6 | 146 | 39 |
8e6ab88981e2ab5c7b9090f6c29baa1f92c8534b | Tony Arcieri | 2020-12-04T23:11:39 | const-oid: reformat array construction (#99) | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index 3a59283..1e8953b 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -112,31 +112,41 @@ impl ObjectIdentifier {
// TODO(tarcieri): use `const_mut_ref` when stable.
// See: <https://github.com/rust-lang/rust/issues/57349>
+ ... | 1 | 22 | 12 |
8fd6865abdea356ba75417bc1c9309f4cc848cf9 | Tony Arcieri | 2020-12-04T23:08:55 | const-oid: better error message (#98) | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index 3d5e088..3a59283 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -52,7 +52,7 @@ pub struct Error;
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- f.write_str("Error")
+ f.write... | 1 | 1 | 1 |
2549a116f859a3da860434566f0da06fc6042356 | Tony Arcieri | 2020-12-04T23:01:51 | pkcs8: better error message (#97) | diff --git a/pkcs8/src/error.rs b/pkcs8/src/error.rs
index 97cae7b..163351e 100644
--- a/pkcs8/src/error.rs
+++ b/pkcs8/src/error.rs
@@ -8,7 +8,7 @@ pub struct Error;
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- f.write_str("Error")
+ f.write_str("PKCS... | 1 | 1 | 1 |
4183dbfdab9797d2b90e11e19b8750b426d2e179 | Tony Arcieri | 2020-12-04T22:29:19 | pkcs8: add FromPkcs8 trait (#96)
Adds a trait for deserializing PKCS#8 encoded private keys which
wraps up parsing DER into `PrivateKeyInfo` and, when the `pem` feature
is enabled, parsing it from PEM as well. | diff --git a/pkcs8/src/document.rs b/pkcs8/src/document.rs
index 00155ce..4373694 100644
--- a/pkcs8/src/document.rs
+++ b/pkcs8/src/document.rs
@@ -30,7 +30,7 @@ impl Document {
/// Parse [`Document`] from PEM-encoded PKCS#8.
///
- /// PEM-encoded can be identified by the leading delimiter:
+ /// PEM... | 2 | 27 | 1 |
ffcf44a0e23ba4a43f750996c8e1c5665b6dc1df | Tony Arcieri | 2020-12-04T20:40:58 | pkcs8: length handling improvements (#94)
Rejects some cases that were previously accepted but MUST be rejected by
ASN.1 DER when parsing lengths:
- When the length is between 0 and 127, the short form of length must
be used
- Ensures a minimum number of octets are used by disallowing 3-byte
lengths for val... | diff --git a/pkcs8/src/asn1.rs b/pkcs8/src/asn1.rs
index cd8fc22..996e2a6 100644
--- a/pkcs8/src/asn1.rs
+++ b/pkcs8/src/asn1.rs
@@ -1,4 +1,12 @@
-//! PKCS#8 parser
+//! PKCS#8 parser: supports the subset of ASN.1 DER needed to parse PKCS#8.
+//!
+//! Note: per RFC 5208, PKCS#8 is technically BER encoded (despite what
... | 1 | 32 | 4 |
b4c159d730ebdbeea2fe08def545374ea94affcd | Tony Arcieri | 2020-12-04T19:48:02 | pkcs8: add `Debug` impl for `PrivateKeyInfo` (#93)
Omits the actual private key data to avoid leaking it in e.g. logs | diff --git a/pkcs8/src/private_key_info.rs b/pkcs8/src/private_key_info.rs
index f35b1aa..6b10515 100644
--- a/pkcs8/src/private_key_info.rs
+++ b/pkcs8/src/private_key_info.rs
@@ -1,7 +1,7 @@
//! PKCS#8 `PrivateKeyInfo`.
use crate::{asn1, AlgorithmIdentifier, Error, Result};
-use core::convert::TryFrom;
+use core:... | 1 | 10 | 1 |
a9ebedcd9be0af538c9aef319d2025fa607e9566 | Tony Arcieri | 2020-12-04T18:05:32 | pkcs8: extract PrivateKeyInfo into module (#92) | diff --git a/pkcs8/src/lib.rs b/pkcs8/src/lib.rs
index 286fb52..eff59d0 100644
--- a/pkcs8/src/lib.rs
+++ b/pkcs8/src/lib.rs
@@ -37,6 +37,7 @@ extern crate std;
mod algorithm;
mod asn1;
mod error;
+mod private_key_info;
#[cfg(feature = "pem")]
#[cfg_attr(docsrs, doc(cfg(feature = "pem")))]
@@ -45,53 +46,6 @@ pub... | 2 | 52 | 48 |
c64f848150a42929e673be948cdbfb513e79e7cb | Tony Arcieri | 2020-12-04T17:35:53 | pkcs8: rename AlgorithmIdentifier `algorithm` field => `oid` (#91)
Otherwise it's referenced as `private_key_info.algorithm.algorithm`
which feels redundant.
This doesn't technically match the name in the ASN.1 schema, however the
documentation addresses that. | diff --git a/pkcs8/src/algorithm.rs b/pkcs8/src/algorithm.rs
index 21de7ba..c3aaa5d 100644
--- a/pkcs8/src/algorithm.rs
+++ b/pkcs8/src/algorithm.rs
@@ -16,7 +16,9 @@ use core::convert::TryFrom;
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct AlgorithmIdentifier {
/// Algorithm OID.
- pub algorithm: O... | 3 | 6 | 7 |
ad504c5fababbc1cc3f73d67d2f4723c312a5ec6 | Артём Павлов [Artyom Pavlov] | 2020-07-02T05:48:39 | clippy and fmt | diff --git a/blobby/examples/convert.rs b/blobby/examples/convert.rs
index 1d62ae1..85f973a 100644
--- a/blobby/examples/convert.rs
+++ b/blobby/examples/convert.rs
@@ -1,8 +1,8 @@
//! Convert utility
-use std::{env, error::Error, fs::File};
+use blobby::BlobIterator;
use std::collections::HashMap;
-use std::io::{sel... | 11 | 179 | 121 |
0ddc5c48c4d4282b3fd28c34cd364404f06c6f17 | Artyom Pavlov | 2020-07-02T03:37:14 | minor doctest edit | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index e5f2a1e..cb4e769 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -38,7 +38,7 @@
//!
//! let mut v = blobby::Blob4Iterator::new(buf).unwrap();
//! assert_eq!(v.next(), Some(Ok([&b"hello"[..], b" ", b"", b"world!"])));
-//! assert_eq!(v.next(), Some(Ok... | 1 | 1 | 1 |
018c1bff94003534851e1c13d3e5e4057bd4d2a2 | Artyom Pavlov | 2020-07-01T20:18:32 | blobby: new storage format (#64) | diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
index a73f8b3..d22f804 100644
--- a/blobby/Cargo.toml
+++ b/blobby/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "blobby"
-version = "0.2.0"
+version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Iterator over simple bina... | 4 | 321 | 282 |
049ad71d39f596ff78e98af8de2cffa0a4e34474 | Artyom Pavlov | 2020-06-11T18:55:43 | Add cpuid-bool crate (#62) | diff --git a/Cargo.toml b/Cargo.toml
index 44974eb..20773ce 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ members = [
"block-padding",
"byte-tools",
"collectable",
+ "cpuid-bool",
"dbl",
"fake-simd",
"hex-literal",
diff --git a/cpuid-bool/Cargo.toml b/cpuid-bool/Cargo.toml
ne... | 3 | 130 | 0 |
16464056b59eeb223318ad36de9b01eeb06c0c6b | Artyom Pavlov | 2020-06-11T14:26:04 | opaque-debug v0.3.0 (#61) | diff --git a/opaque-debug/Cargo.toml b/opaque-debug/Cargo.toml
index 6094d5d..d2d788e 100644
--- a/opaque-debug/Cargo.toml
+++ b/opaque-debug/Cargo.toml
@@ -1,10 +1,9 @@
[package]
name = "opaque-debug"
-version = "0.2.3"
+version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descripti... | 3 | 16 | 4 |
5d66d5c20d58791e8b569429a88f8719094a219d | Артём Павлов [Artyom Pavlov] | 2020-06-10T16:49:32 | block-buffer v0.9.0 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 8deda70..6766856 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -11,5 +11,5 @@ categories = ["cryptography", "no-std"]
edition = "2018"
[dependencies]
-block-padding = { version = "0.2.0-pre", path = "../block-padding", opti... | 1 | 1 | 1 |
df5dcbe86e57965c0d3bbacd66bd0ad0b382c9b9 | Artyom Pavlov | 2020-06-10T16:46:45 | block-buffer v0.9.0 and block-padding v0.2.0 (#60) | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 0e18fcc..8deda70 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.9.0-pre"
+version = "0.9.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descri... | 2 | 2 | 2 |
dcb2b89047c28444beb5a901f2ace4b296a5d9fe | Artyom Pavlov | 2020-06-10T13:42:04 | fix signature of block-buffer method (#58) | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index bebc971..49b8b3d 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -18,7 +18,7 @@ pub struct BlockBuffer<BlockSize: ArrayLength<u8>> {
impl<BlockSize: ArrayLength<u8>> BlockBuffer<BlockSize> {
/// Process data in `input` in ... | 1 | 4 | 4 |
48d17793ea3405e31aac10b4414bf2b8b25499fa | Artyom Pavlov | 2020-06-10T13:20:12 | block-buffer improvements (#56) | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index d94e7a1..0e18fcc 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.8.0"
+version = "0.9.0-pre"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descri... | 4 | 116 | 93 |
6599c3f5dc405cfa861a65d01ff609be854acf1d | Tony Arcieri | 2020-06-04T18:50:30 | dbl v0.3.0 | diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml
index 6d6ea89..f5c6165 100644
--- a/dbl/Cargo.toml
+++ b/dbl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "dbl"
-version = "0.3.0-pre"
+version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Double operation in Galois Field (GF... | 1 | 1 | 1 |
0a227bee6680d31aad40fdfb6bccd11f128d9fb7 | Tony Arcieri | 2020-06-04T18:42:03 | block-buffer v0.8.0 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 41314f0..d94e7a1 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.8.0-pre"
+version = "0.8.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descri... | 1 | 1 | 1 |
2aae8a40556e166e9ca06aebc944091dda24b769 | Artyom Pavlov | 2020-06-01T09:42:09 | bump hex-literal-impl to v0.2.2 (#52) | diff --git a/hex-literal/hex-literal-impl/Cargo.toml b/hex-literal/hex-literal-impl/Cargo.toml
index 6f23cce..6f7ca08 100644
--- a/hex-literal/hex-literal-impl/Cargo.toml
+++ b/hex-literal/hex-literal-impl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hex-literal-impl"
-version = "0.2.1"
+version = "0.2.2"
authors = ... | 1 | 1 | 1 |
bd10ffa38416864868fbe636d5a1bb4f77ae8dec | Aaron Hill | 2020-06-01T09:34:29 | Handle `Group`s with `Delimiter::None` (#50)
Currently, rustc does not pass the exact original `TokenStream` to
proc-macros in several cases. This has many undesirable effects, such as
losing correct location information in error message.
See https://github.com/rust-lang/rust/issues/43081 for more details
In the... | diff --git a/hex-literal/hex-literal-impl/src/lib.rs b/hex-literal/hex-literal-impl/src/lib.rs
index dfa3408..bc4e615 100644
--- a/hex-literal/hex-literal-impl/src/lib.rs
+++ b/hex-literal/hex-literal-impl/src/lib.rs
@@ -1,6 +1,6 @@
extern crate proc_macro;
-use proc_macro::{TokenStream, TokenTree};
+use proc_macro:... | 1 | 23 | 2 |
a0e48018d38545935152cd1715382bc1984b5699 | Tony Arcieri | 2020-05-31T14:30:05 | block-buffer: bump version to v0.8.0-pre | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index ac87ed9..41314f0 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.7.3"
+version = "0.8.0-pre"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descri... | 1 | 1 | 1 |
5a5596f128385af8221e73df22df5b0f8a6fea1f | Tony Arcieri | 2020-05-31T14:29:03 | dbl: bump version to v0.3.0-pre | diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml
index 9bddd61..6d6ea89 100644
--- a/dbl/Cargo.toml
+++ b/dbl/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "dbl"
-version = "0.2.1"
+version = "0.3.0-pre"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Double operation in Galois Field (GF... | 1 | 1 | 1 |
bfd969cd9165bda3eb0b4be1957d4b702eeef1df | Tony Arcieri | 2020-05-31T14:08:15 | dbl: bump generic array to v0.14 | diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml
index 34ee345..9bddd61 100644
--- a/dbl/Cargo.toml
+++ b/dbl/Cargo.toml
@@ -9,4 +9,4 @@ repository = "https://github.com/RustCrypto/utils"
keywords = ["crypto", "dbl", "gf", "galois"]
[dependencies]
-generic-array = "0.12"
+generic-array = "0.14" | 1 | 1 | 1 |
4bae0a1354fde0a14acfcaf317ddf15f20026195 | Tony Arcieri | 2020-05-27T23:40:31 | block-buffer: bump generic array to v0.14 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 20dd162..ac87ed9 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
byteorder = { version = "1.1", default-features = false }
byte-tools = "0.3"
block-padding = "0.1"
-generi... | 1 | 1 | 1 |
e406efbc82b23b02efbd788a31a964b45b695675 | Tony Arcieri | 2020-05-24T23:03:29 | collectable: revert iterator borrow
...and restore the original `IntoIterator` bounds.
A `&mut I: Iterator` impls `IntoIterator` so there is no need to borrow
as the borrowed case is covered by the `IntoIterator` bound. | diff --git a/collectable/src/lib.rs b/collectable/src/lib.rs
index 1b9da31..0eb570a 100644
--- a/collectable/src/lib.rs
+++ b/collectable/src/lib.rs
@@ -44,16 +44,16 @@ pub trait TryExtend<A> {
type Error;
/// Try to extend the collection from the given iterator.
- fn try_extend<T>(&mut self, iter: &mut ... | 1 | 7 | 7 |
f1f5a8a8fa9ae169cebbe9395f6dfa7000a63f11 | Tony Arcieri | 2020-05-24T20:14:14 | collectable: have TryCollect borrow iterator
This finishes out the changes from #44 by borrowing the iterator when
`try_collect()`ing it.
This allows potentially recovering the values within an iterator if the
`try_collect()` operation fails. | diff --git a/collectable/src/lib.rs b/collectable/src/lib.rs
index 98463f6..1b9da31 100644
--- a/collectable/src/lib.rs
+++ b/collectable/src/lib.rs
@@ -96,7 +96,7 @@ pub trait TryPush<T> {
/// [`TryCollect`] is an extension to [`Iterator`] which allows for performing
/// a fallible collection into a collection type.... | 1 | 3 | 3 |
62ce918ad160bb1a6a1a672f7e73577f08b277b7 | Tony Arcieri | 2020-05-24T20:07:47 | collectable: add TryPush trait
Fallible push which returns the original item in the event the
underlying collection is full. | diff --git a/collectable/src/lib.rs b/collectable/src/lib.rs
index df836ef..98463f6 100644
--- a/collectable/src/lib.rs
+++ b/collectable/src/lib.rs
@@ -9,7 +9,10 @@
extern crate alloc;
/// Collection types implement all of the traits in this crate.
-pub trait Collection<T>: Default + Length + Truncate + TryExtend<... | 1 | 12 | 1 |
3b26dadd678f372d0cc7f038658ae6af669bf30e | Tony Arcieri | 2020-05-24T19:52:13 | collectable: borrow iterators rather than consume them
The previous APIs consumed the underlying iterators even in the event
there was insufficient capacity in the collection.
By borrowing them rather than consuming them, we can leave the
unconsumed elements in the iterator rather than losing them. | diff --git a/collectable/src/lib.rs b/collectable/src/lib.rs
index 05a60ff..df836ef 100644
--- a/collectable/src/lib.rs
+++ b/collectable/src/lib.rs
@@ -41,16 +41,16 @@ pub trait TryExtend<A> {
type Error;
/// Try to extend the collection from the given iterator.
- fn try_extend<T>(&mut self, iter: T) ->... | 1 | 12 | 12 |
b917b0713c71a4e2c4c6046ba08a986bd778bdc9 | Dirkjan Ochtman | 2020-01-15T13:24:41 | Remove unused import | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index d3b6916..edfd981 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -8,7 +8,6 @@ use byteorder::{ByteOrder, BE};
use byte_tools::zero;
use block_padding::{Padding, PadError};
use generic_array::{GenericArray, ArrayLength};
-use c... | 1 | 0 | 1 |
cc43eca7d6ab0527b9359b8879adb63308dac427 | Dirkjan Ochtman | 2020-01-15T13:24:41 | Bump block-buffer's generic-array dep to 0.13 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 236d265..20dd162 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
byteorder = { version = "1.1", default-features = false }
byte-tools = "0.3"
block-padding = "0.1"
-generi... | 1 | 1 | 1 |
78eca096689597105bbca866508df6144637ca2b | newpavlov | 2019-11-07T16:10:28 | block-padding v0.1.5 | diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml
index 618ab7b..3999ff5 100644
--- a/block-padding/Cargo.toml
+++ b/block-padding/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-padding"
-version = "0.1.4"
+version = "0.1.5"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descr... | 1 | 1 | 1 |
3dcfab42f84e2114b8b7161bc16b75bcecfbcfd8 | zer0x64 | 2019-11-07T16:06:01 | NoPadding for block-padding (#37) | diff --git a/block-padding/src/lib.rs b/block-padding/src/lib.rs
index 69ea3b4..5c4c8c3 100644
--- a/block-padding/src/lib.rs
+++ b/block-padding/src/lib.rs
@@ -275,3 +275,49 @@ impl Padding for Iso7816 {
Ok(&data[..n])
}
}
+
+/// Don't pad the data. Useful for key wrapping. Padding will fail if the data... | 1 | 46 | 0 |
2a5da5c1152c25cf20eb70154f34c73690b384dc | Peter Todd | 2019-10-03T21:01:51 | Fix typo (#33) | diff --git a/opaque-debug/src/lib.rs b/opaque-debug/src/lib.rs
index 618626e..a15460b 100644
--- a/opaque-debug/src/lib.rs
+++ b/opaque-debug/src/lib.rs
@@ -8,7 +8,7 @@ pub extern crate core as __core;
///
/// It will use the following format: "StructName { ... }". While it's
/// convinient to have it (e.g. for incl... | 1 | 1 | 1 |
7b6d5f27d3ef1075d6f0ea6353057cb1f42e22c0 | Yechan Bae | 2019-09-06T18:27:37 | Fix incorrect comment (#31) | diff --git a/byte-tools/src/lib.rs b/byte-tools/src/lib.rs
index b4a450f..0c29f96 100644
--- a/byte-tools/src/lib.rs
+++ b/byte-tools/src/lib.rs
@@ -3,7 +3,7 @@ use core::ptr;
/// Copy bytes from `src` to `dst`
///
-/// Panics if `src.len() < dst.len()`
+/// Panics if the size of `src` is bigger than the size of `d... | 1 | 1 | 1 |
2373e467dd1f7699d344622ebac8cbcaddbebb9d | newpavlov | 2019-08-24T23:09:22 | hex-literal(-impl) v0.2.1 | diff --git a/hex-literal/Cargo.toml b/hex-literal/Cargo.toml
index ca3e9c8..f8760a9 100644
--- a/hex-literal/Cargo.toml
+++ b/hex-literal/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hex-literal"
-version = "0.2.0"
+version = "0.2.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "... | 3 | 3 | 3 |
9358ee158003ac7835c9aa09b2eb0796143f1d19 | Cameron Bytheway | 2019-08-24T23:07:28 | add no_std to hex-literal (#30) | diff --git a/hex-literal/src/lib.rs b/hex-literal/src/lib.rs
index ed033a6..6a90d46 100644
--- a/hex-literal/src/lib.rs
+++ b/hex-literal/src/lib.rs
@@ -27,6 +27,7 @@
//! ```
#![doc(html_logo_url =
"https://raw.githubusercontent.com/RustCrypto/meta/master/logo_small.png")]
+#![no_std]
use proc_macro_hack::pro... | 1 | 1 | 0 |
4a9addbcf6e494a187b77ca537849bdf6a1e8134 | newpavlov | 2019-07-30T14:38:54 | bump opaque-debug version | diff --git a/opaque-debug/Cargo.toml b/opaque-debug/Cargo.toml
index 0f7c50d..6094d5d 100644
--- a/opaque-debug/Cargo.toml
+++ b/opaque-debug/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opaque-debug"
-version = "0.2.2"
+version = "0.2.3"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descriptio... | 1 | 1 | 1 |
cdc3ed8428e01f4f6d01e264a3198588a88701ea | Konrad Borowski | 2019-07-30T14:34:55 | Don't depend on user crate's std feature (#28) | diff --git a/opaque-debug/src/lib.rs b/opaque-debug/src/lib.rs
index c3648c3..618626e 100644
--- a/opaque-debug/src/lib.rs
+++ b/opaque-debug/src/lib.rs
@@ -1,6 +1,9 @@
//! Macro for opaque `Debug` trait implementation.
#![no_std]
+#[doc(hidden)]
+pub extern crate core as __core;
+
/// Macro for defining opaque `D... | 1 | 6 | 13 |
30b57d799ae45f5ff4854f5831855efed1dba323 | newpavlov | 2019-04-23T14:52:51 | hex-literal v0.2.0 | diff --git a/hex-literal/Cargo.toml b/hex-literal/Cargo.toml
index f2c077f..ca3e9c8 100644
--- a/hex-literal/Cargo.toml
+++ b/hex-literal/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hex-literal"
-version = "0.1.4"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "... | 3 | 11 | 8 |
8c499f234ea68b66416280d13863fdb8446ee779 | Stanislav Tkach | 2019-04-23T14:35:09 | Migrate hex-literal to the 2018 edition (#13) | diff --git a/hex-literal/Cargo.toml b/hex-literal/Cargo.toml
index d5d6c89..f2c077f 100644
--- a/hex-literal/Cargo.toml
+++ b/hex-literal/Cargo.toml
@@ -7,8 +7,8 @@ description = "Procedural macro for converting hexadecimal string to byte array
documentation = "https://docs.rs/hex-literal"
repository = "https://githu... | 4 | 39 | 47 |
646d1604b00ea3bd277e16d705480b5d7d81de0f | newpavlov | 2019-04-22T17:51:57 | block-padding v0.1.4 | diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml
index 8a1029b..618ab7b 100644
--- a/block-padding/Cargo.toml
+++ b/block-padding/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-padding"
-version = "0.1.3"
+version = "0.1.4"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descr... | 1 | 1 | 1 |
6ab1bbf4c9f580576e44079bd95cadf49220e575 | newpavlov | 2019-04-15T12:32:57 | block-buffer v0.7.3 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index ee3605b..236d265 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.7.2"
+version = "0.7.3"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descriptio... | 1 | 1 | 1 |
edab714932ef445b25ce7015741cd7282f0d0751 | Christopher Durham | 2019-04-15T12:31:45 | Make block-buffer minimal-versions correct (#23)
byteorder:1.0.0 does not export byteorder::BE.
It was added in byteorder:1.1.0. | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 8014b26..ee3605b 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -10,7 +10,7 @@ keywords = ["block", "buffer"]
categories = ["cryptography", "no-std"]
[dependencies]
-byteorder = { version = "1", default-features = false }
+b... | 1 | 1 | 1 |
3cdecb4bd8c651dc0e03005ecd4dcbdd401044a4 | Sebastian | 2019-04-06T01:38:23 | Relaxed restrictions on padding buffer size. See #20 (#21) | diff --git a/block-padding/src/lib.rs b/block-padding/src/lib.rs
index c088d80..69ea3b4 100644
--- a/block-padding/src/lib.rs
+++ b/block-padding/src/lib.rs
@@ -31,21 +31,17 @@ pub trait Padding {
/// Pads message with length `pos` in the provided buffer.
///
- /// `&buf[..pos]` is percieved as the messa... | 1 | 16 | 15 |
1f9655532f53cfd639718174b47ce02299c8c4f4 | Артём Павлов [Artyom Pavlov] | 2019-02-22T19:53:06 | hex-literal v0.1.3 | diff --git a/hex-literal/Cargo.toml b/hex-literal/Cargo.toml
index ecda6e5..7e6a9b9 100644
--- a/hex-literal/Cargo.toml
+++ b/hex-literal/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hex-literal"
-version = "0.1.2"
+version = "0.1.3"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "... | 2 | 4 | 3 |
7f8eb536ecb0606df930cc96bcbea5a3647462ab | plafü | 2019-02-22T19:50:30 | Removes unnecessary backtick from hex-literal doc (#16)
The extra backtick breaks formatting in docs.rs | diff --git a/hex-literal/src/lib.rs b/hex-literal/src/lib.rs
index 63db306..b3e846e 100644
--- a/hex-literal/src/lib.rs
+++ b/hex-literal/src/lib.rs
@@ -5,7 +5,7 @@
//!
//! - `'0'...'9'`, `'a'...'f'`, `'A'...'F'` — hex characters which will be used
//! in construction of the output byte array
-//! - `' '`, `'\r'... | 1 | 1 | 1 |
fd52602520735fcd640f044ff7f6796bcb757e21 | Артём Павлов [Artyom Pavlov] | 2019-02-08T07:34:28 | comment out input2 method | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index a82bbdb..d3b6916 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -55,6 +55,7 @@ impl<BlockSize: ArrayLength<u8>> BlockBuffer<BlockSize> {
self.pos += input.len();
}
+ /*
/// Process data in `input` in bloc... | 1 | 2 | 0 |
9ae69ae6dda897f92c7d8a81ad4cf2c1a77d45ac | newpavlov | 2019-01-28T15:00:47 | opaque-debug v0.2.2 | diff --git a/opaque-debug/Cargo.toml b/opaque-debug/Cargo.toml
index a4c1624..0f7c50d 100644
--- a/opaque-debug/Cargo.toml
+++ b/opaque-debug/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opaque-debug"
-version = "0.2.1"
+version = "0.2.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
descriptio... | 1 | 1 | 1 |
088c596b0076bb5d84ded9c43a79d1086d969f5c | Артём Павлов [Artyom Pavlov] | 2018-12-09T17:59:27 | add input2 method to block-buffer | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index c400045..ac4cf16 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.7.0"
+version = "0.7.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 39 | 1 |
4ea08ec06d34199ad83980824738f388c2cb2dd3 | newpavlov | 2018-10-04T15:14:33 | add convert example | diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
index d169b5c..66a7c80 100644
--- a/blobby/Cargo.toml
+++ b/blobby/Cargo.toml
@@ -11,5 +11,9 @@ categories = ["no-std"]
[dependencies]
byteorder = { version = "1", default-features = false }
+[dev-dependencies]
+hex = "0.3"
+byteorder = { version = "1", features = ... | 2 | 90 | 0 |
bac382b71694caf8fb11956f1a9ae155be83851b | Артём Павлов [Artyom Pavlov] | 2018-10-03T21:58:16 | block-padding v0.1.2 | diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml
index 0be33ba..4fa2d7c 100644
--- a/block-padding/Cargo.toml
+++ b/block-padding/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-padding"
-version = "0.1.1"
+version = "0.1.2"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
descript... | 2 | 3 | 1 |
ca12c3a87e083d33f522e4835fbc9f3ee5fffb60 | Andrey Kutejko | 2018-10-03T21:55:43 | fix substraction overflow (#11) | diff --git a/block-padding/src/lib.rs b/block-padding/src/lib.rs
index 9b90eac..9931c4f 100644
--- a/block-padding/src/lib.rs
+++ b/block-padding/src/lib.rs
@@ -137,6 +137,11 @@ impl Padding for ZeroPadding {
/// assert_eq!(padded_msg, b"test\x02\x02");
/// assert_eq!(Pkcs7::unpad(&padded_msg).unwrap(), msg);
/// ``... | 1 | 12 | 2 |
c68c5283fc0b550bd23d6899b426fa4d3ec43363 | Luis de Bethencourt | 2018-10-03T13:50:18 | Use while let (#10)
Loop is more readable as a 'while let'. | diff --git a/hex-literal/hex-literal-impl/src/lib.rs b/hex-literal/hex-literal-impl/src/lib.rs
index 024cd5d..630945a 100644
--- a/hex-literal/hex-literal-impl/src/lib.rs
+++ b/hex-literal/hex-literal-impl/src/lib.rs
@@ -37,8 +37,7 @@ proc_macro_expr_impl! {
s.push('[');
let mut iter = input.chars()... | 1 | 1 | 2 |
e4d056372c141affdd7dc1ba4c024cbad929445d | newpavlov | 2018-10-02T11:01:45 | dbl v0.2.0 | diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml
index 66135b3..329cb50 100644
--- a/dbl/Cargo.toml
+++ b/dbl/Cargo.toml
@@ -1,12 +1,12 @@
[package]
name = "dbl"
-version = "0.1.0"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "Double operation in Galois Field (GF)"
-d... | 1 | 3 | 3 |
1d38aa71976bbb41b11997bdfc9e8130e7798799 | newpavlov | 2018-10-01T17:14:22 | block-buffer v0.7.0 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 6fd33ca..c400045 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.6.0"
+version = "0.7.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 1 | 2 | 2 |
7df0c688b31e0194c4d3e7a416eb4b7bf7b77980 | newpavlov | 2018-09-26T17:01:22 | add blobby docs | diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
index 86e51b5..d169b5c 100644
--- a/blobby/Cargo.toml
+++ b/blobby/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "blobby"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Iterator over simple bina... | 2 | 31 | 1 |
3e70c4684630dcec475f0a2b11055f057192884b | newpavlov | 2018-09-26T15:00:27 | blobby v0.1.0 | diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
index 33fa2c5..86e51b5 100644
--- a/blobby/Cargo.toml
+++ b/blobby/Cargo.toml
@@ -1,7 +1,12 @@
[package]
name = "blobby"
version = "0.1.0"
-authors = ["newpavlov <newpavlov@gmail.com>"]
+authors = ["RustCrypto Developers"]
+license = "MIT OR Apache-2.0"
+description... | 1 | 6 | 1 |
22eddb4a0ca0ff8ec25573749dc80a7885bb45a1 | newpavlov | 2018-09-26T13:30:23 | blobby change | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index 4af3d08..d003008 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -2,130 +2,151 @@
extern crate byteorder;
use byteorder::{LE, ByteOrder};
-use core::iter::{Iterator, ExactSizeIterator};
+use core::iter::Iterator;
-pub struct DupBlobIterator<'a> {
... | 2 | 184 | 154 |
8797271cb585caaca926abd91f58682ba2d76237 | newpavlov | 2018-09-26T10:48:54 | fix blobby's MSRV and no_std supprt | diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
index ad489f0..33fa2c5 100644
--- a/blobby/Cargo.toml
+++ b/blobby/Cargo.toml
@@ -4,4 +4,4 @@ version = "0.1.0"
authors = ["newpavlov <newpavlov@gmail.com>"]
[dependencies]
-byteorder = "1"
+byteorder = { version = "1", default-features = false }
diff --git a/blobb... | 2 | 4 | 4 |
82c9245071a9c530c074d34cf1318ec7e0d2304a | newpavlov | 2018-08-31T13:38:28 | additionall errors | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index fed4b2f..9f9a21f 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -12,10 +12,14 @@ pub struct DupBlobIterator<'a> {
impl<'a> DupBlobIterator<'a> {
pub fn new(data: &'a [u8]) -> Result<Self, &'static str> {
+ if data.len() < 8 { Err("data i... | 1 | 8 | 0 |
39b1017ab6d2eb871fcbbfcd10c672bcd33b7482 | newpavlov | 2018-08-31T12:22:14 | use get_unchecked | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index 577229c..fed4b2f 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -35,10 +35,21 @@ impl<'a> Iterator for DupBlobIterator<'a> {
fn next(&mut self) -> Option<&'a [u8]> {
if self.pos >= self.index.len()/8 { return None; }
let n = 8*se... | 1 | 26 | 6 |
706f32e0381a8ce065138880c367a696dd55602e | newpavlov | 2018-08-31T11:47:01 | two blobby iterators | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index 9e3d1ff..577229c 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -4,32 +4,32 @@ extern crate byteorder;
use byteorder::{LE, ByteOrder};
use core::iter::{Iterator, FusedIterator, ExactSizeIterator};
-pub struct BlobIterator<'a> {
+pub struct DupBlobI... | 2 | 125 | 23 |
8eb9bfe1f701cd6f057485c47bb5a014d906bc19 | newpavlov | 2018-08-29T15:20:29 | blobby update | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index fd54378..9e3d1ff 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -2,25 +2,30 @@
extern crate byteorder;
use byteorder::{LE, ByteOrder};
-use core::iter::Iterator;
+use core::iter::{Iterator, FusedIterator, ExactSizeIterator};
pub struct BlobItera... | 2 | 39 | 24 |
852a3d30cabfd29bb726a114bbf71aa1ff9b1f03 | newpavlov | 2018-08-28T14:25:31 | use u16 instead of u32 | diff --git a/blobby/src/lib.rs b/blobby/src/lib.rs
index 5bbdeed..fd54378 100644
--- a/blobby/src/lib.rs
+++ b/blobby/src/lib.rs
@@ -13,11 +13,11 @@ pub struct BlobIterator<'a> {
impl<'a> BlobIterator<'a> {
pub fn new(data: &'a [u8]) -> Self {
- let (len, data) = data.split_at(4);
- let len = LE::... | 2 | 13 | 13 |
785e8331403e3af453e9e8647935f653401a5b79 | newpavlov | 2018-08-28T14:19:23 | added blobby | diff --git a/Cargo.toml b/Cargo.toml
index 04366af..917e1d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,6 @@
[workspace]
members = [
+ "blobby",
"block-buffer",
"block-padding",
"byte-tools",
diff --git a/blobby/Cargo.toml b/blobby/Cargo.toml
new file mode 100644
index 0000000..ad489f0
--- /... | 4 | 89 | 0 |
d2ee2eb58af3897293eed543fce3c2201c0154a4 | Артём Павлов [Artyom Pavlov] | 2018-08-22T02:48:34 | block-buffer v0.6.0 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index c3f898c..6fd33ca 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.5.1"
+version = "0.6.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 17 | 12 |
aa1409ea8c64ba53dcb018301dee407875a83651 | Артём Павлов [Artyom Pavlov] | 2018-08-22T02:31:26 | block-padding v0.1.1 | diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml
index 4e154f4..0be33ba 100644
--- a/block-padding/Cargo.toml
+++ b/block-padding/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-padding"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
descript... | 2 | 7 | 14 |
4fe8d2c2a5c25aedd6d725049cfa2328e1b82040 | Артём Павлов [Artyom Pavlov] | 2018-08-22T02:23:41 | byte-tools v0.3.0 | diff --git a/byte-tools/Cargo.toml b/byte-tools/Cargo.toml
index 0fdc55f..05ba895 100644
--- a/byte-tools/Cargo.toml
+++ b/byte-tools/Cargo.toml
@@ -1,9 +1,9 @@
[package]
name = "byte-tools"
version = "0.3.0"
-authors = ["The Rust-Crypto Project Developers"]
+authors = ["RustCrypto Developers"]
license = "MIT/Apach... | 2 | 14 | 12 |
9b3ac7f91add1730b79cf29bccac2c3daccee563 | Артём Павлов [Artyom Pavlov] | 2018-08-22T02:18:21 | deprecate byte order methods in favor of byteorder | diff --git a/byte-tools/Cargo.toml b/byte-tools/Cargo.toml
index ce79750..0fdc55f 100644
--- a/byte-tools/Cargo.toml
+++ b/byte-tools/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "byte-tools"
-version = "0.2.0"
+version = "0.3.0"
authors = ["The Rust-Crypto Project Developers"]
license = "MIT/Apache-2.0"
descriptio... | 6 | 2 | 179 |
1ad2c5192f4471699a861d27279dffd7022bdab7 | Артём Павлов [Artyom Pavlov] | 2018-08-22T02:17:12 | use byteorder in the block-buffer | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 1dfb0da..c3f898c 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -6,10 +6,10 @@ license = "MIT/Apache-2.0"
description = "Fixed size buffer for block processing of data"
documentation = "https://docs.rs/block-buffer"
repositor... | 2 | 24 | 41 |
d2abf4356f0230f3a134cbe3ccfb107d6d017253 | newpavlov | 2018-08-13T08:45:35 | remove prefix, fix 128 len padding, add reset method | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index 03b42fe..f6883f3 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -75,14 +75,14 @@ impl<BlockSize: ArrayLength<u8>> BlockBuffer<BlockSize> {
/// has at least `up_to` free bytes. All remaining bytes get
/// zeroed-out.
... | 1 | 25 | 18 |
1e8674cc7f1b435730f4cf49db8c0bc2efc83baf | newpavlov | 2018-08-09T17:49:49 | re-export generic-array and block-padding crates | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 3e6dcff..1dfb0da 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.5.0"
+version = "0.5.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 3 | 3 |
fe350a934e2b632c3a8af0b64ce15f2b9caf9808 | newpavlov | 2018-08-09T17:21:47 | block-buffer v0.5 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 3e095c3..3e6dcff 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.4.0"
+version = "0.5.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 162 | 193 |
82f3e1b886c4c3dd1fdec41758daa4b0920a1ae7 | newpavlov | 2018-02-20T14:31:02 | block-buffer version change | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 641bcf3..3e095c3 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.3.3"
+version = "0.4.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 1 | 2 | 2 |
582423feeafef216d5b314c9f13518ba890260f0 | newpavlov | 2018-02-20T12:19:14 | use of block-padding crate and other changes in the block-buffer | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 5a1583c..641bcf3 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -12,3 +12,4 @@ categories = ["cryptography", "no-std"]
[dependencies]
arrayref = "0.3"
byte-tools = "0.2"
+block-padding = { path = "../block-padding" }
diff --g... | 3 | 63 | 157 |
03b705279d4a6f7546c6a8e11d1f42378167155b | Kaz Wesley | 2018-02-20T11:55:46 | Lazy flush (#5)
* buffer input(): eliminate an unnecessary special case
* block-buffer: add input_with_lazy_flush for tweakable block ciphers | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index 9b20bd6..6f6a0e2 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -34,23 +34,15 @@ macro_rules! impl_buffer {
impl $name {
#[inline]
pub fn input<F: FnMut(&[u8; $len])>(&mut self, mut input: &[u8... | 1 | 39 | 22 |
8e61a8e13764a8f9254b170497869573b28ea3b2 | Jean-Marie Comets | 2018-02-16T21:52:35 | Add len_padding_with to specify the prefix byte (#7) | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index 7f5c8af..9b20bd6 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -69,10 +69,10 @@ macro_rules! impl_buffer {
}
#[inline]
- fn digest_pad<F>(&mut self, up_to: usize, func: &mut F)
+ ... | 1 | 21 | 6 |
55140872c23ffdcf514521c0339c42168fdd7cdf | newpavlov | 2018-02-14T14:26:52 | added block-padding crate | diff --git a/Cargo.toml b/Cargo.toml
index 76e48c7..04366af 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,9 @@
[workspace]
members = [
"block-buffer",
+ "block-padding",
"byte-tools",
- "crypto-tests",
- #"ctgrind",
- #"digest-buffer",
+ "dbl",
"fake-simd",
"hex-literal",
... | 3 | 288 | 3 |
25b3a01b7214362c5efe90139358babf607174bb | newpavlov | 2018-02-09T09:04:43 | improved compilation errors in hex-literal | diff --git a/hex-literal/Cargo.toml b/hex-literal/Cargo.toml
index 0d6a7e7..07d69da 100644
--- a/hex-literal/Cargo.toml
+++ b/hex-literal/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hex-literal"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "Pro... | 3 | 17 | 13 |
c915d5c30f5a2116abb25606c1d0e46b23a13a36 | newpavlov | 2017-11-27T10:59:23 | opaque-debug fix | diff --git a/opaque-debug/Cargo.toml b/opaque-debug/Cargo.toml
index 4b5bfde..438d468 100644
--- a/opaque-debug/Cargo.toml
+++ b/opaque-debug/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opaque-debug"
-version = "0.2.0"
+version = "0.2.1"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 7 | 3 |
f9303506e496c6cb26d9ecc922487d91a6347b57 | newpavlov | 2017-11-27T10:57:18 | opaque-debug v0.2.0 | diff --git a/opaque-debug/Cargo.toml b/opaque-debug/Cargo.toml
index 920414b..4b5bfde 100644
--- a/opaque-debug/Cargo.toml
+++ b/opaque-debug/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "opaque-debug"
-version = "0.1.0"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 17 | 9 |
a67b42ad8b3acf92edfdde11591337fa547f0a7b | newpavlov | 2017-11-20T16:16:16 | added dbl crate | diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml
new file mode 100644
index 0000000..66135b3
--- /dev/null
+++ b/dbl/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "dbl"
+version = "0.1.0"
+authors = ["RustCrypto Developers"]
+license = "MIT/Apache-2.0"
+description = "Double operation in Galois Field (GF)"
+documentation ... | 2 | 155 | 0 |
b0f25e3aced296ddb29b1fc8f96162cdc79ddc78 | newpavlov | 2017-11-09T09:47:44 | updated MAC test | diff --git a/crypto-tests/src/mac.rs b/crypto-tests/src/mac.rs
index f4c0ac1..8b4ae17 100644
--- a/crypto-tests/src/mac.rs
+++ b/crypto-tests/src/mac.rs
@@ -23,17 +23,17 @@ macro_rules! new_mac_tests {
pub fn mac_test<M: Mac>(tests: &[MacTest]) {
for test in tests.iter() {
- let mut hmac = M::new(test.ke... | 1 | 6 | 6 |
f62385f67bd5ea5751a4fdefd4421b9e7c52cc79 | newpavlov | 2017-11-07T14:30:52 | Updated variable hash test | diff --git a/crypto-tests/src/hash.rs b/crypto-tests/src/hash.rs
index c64cce8..aa358aa 100644
--- a/crypto-tests/src/hash.rs
+++ b/crypto-tests/src/hash.rs
@@ -50,12 +50,12 @@ pub fn main_test<D: Digest + Debug + Clone>(tests: &[Test]) {
}
pub fn variable_test<D>(tests: &[Test])
- where D: Input + VariableOutpu... | 1 | 3 | 3 |
7422dab9f5fe817a8b3ccb38ef5d7fa5a313de3c | Артём Павлов [Artyom Pavlov] | 2017-10-31T06:33:15 | update to crypto-mac v0.5 | diff --git a/Cargo.toml b/Cargo.toml
index abb46d9..6cd1dc4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,3 +11,4 @@ members = [
[patch.crates-io]
block-cipher-trait = { git = "https://github.com/RustCrypto/traits" }
digest = { git = "https://github.com/RustCrypto/traits" }
+crypto-mac = { git = "https://github.co... | 2 | 2 | 1 |
824892ab137e980515ab43bbd8b206aff638ab78 | Артём Павлов [Artyom Pavlov] | 2017-10-31T06:25:43 | Added Debug+Clone bound for hash tests | diff --git a/crypto-tests/src/hash.rs b/crypto-tests/src/hash.rs
index 5488bcf..c64cce8 100644
--- a/crypto-tests/src/hash.rs
+++ b/crypto-tests/src/hash.rs
@@ -1,4 +1,5 @@
use digest::{Digest, Input, VariableOutput, ExtendableOutput, XofReader};
+use core::fmt::Debug;
pub struct Test {
pub name: &'static str,... | 1 | 9 | 4 |
d1bf9229a28f45d7ac3d419af574d9b025782448 | Артём Павлов [Artyom Pavlov] | 2017-10-30T04:44:19 | Added xof_test | diff --git a/crypto-tests/src/hash.rs b/crypto-tests/src/hash.rs
index 515d44c..5488bcf 100644
--- a/crypto-tests/src/hash.rs
+++ b/crypto-tests/src/hash.rs
@@ -1,4 +1,4 @@
-use digest::{Digest, Input, VariableOutput};
+use digest::{Digest, Input, VariableOutput, ExtendableOutput, XofReader};
pub struct Test {
... | 1 | 33 | 1 |
3c75bacfef7102987909281241675bd7f3376dd0 | Артём Павлов [Artyom Pavlov] | 2017-10-30T03:59:15 | Additional buffers for sha3 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index d371876..5a1583c 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "block-buffer"
-version = "0.3.2"
+version = "0.3.3"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description =... | 2 | 7 | 1 |
099bcbd957dfe6a3c9f73480ee7e968fac6addaf | Артём Павлов [Artyom Pavlov] | 2017-10-30T02:44:31 | removed unnecessary mut | diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs
index ad5ec8c..7d415ec 100644
--- a/block-buffer/src/lib.rs
+++ b/block-buffer/src/lib.rs
@@ -69,7 +69,7 @@ macro_rules! impl_buffer {
}
#[inline]
- fn digest_pad<F>(&mut self, up_to: usize, mut func: &mut F)
+ ... | 1 | 1 | 1 |
21b491a3ca1011c797ccb2ea138dd45ef2d7b972 | Артём Павлов [Artyom Pavlov] | 2017-10-30T02:42:15 | Added BlockBuffer128 | diff --git a/block-buffer/Cargo.toml b/block-buffer/Cargo.toml
index 8825581..d371876 100644
--- a/block-buffer/Cargo.toml
+++ b/block-buffer/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "block-buffer"
-version = "0.3.1"
-authors = ["The RustCrypto Devs"]
+version = "0.3.2"
+authors = ["RustCrypto Developers"]
licens... | 2 | 3 | 2 |
63041f550816555a28969316296d1c740d922ff9 | Артём Павлов [Artyom Pavlov] | 2017-10-30T02:16:03 | removed unnececary `extern crate` | diff --git a/crypto-tests/src/lib.rs b/crypto-tests/src/lib.rs
index 71b8b4b..45f0618 100644
--- a/crypto-tests/src/lib.rs
+++ b/crypto-tests/src/lib.rs
@@ -1,7 +1,6 @@
#![no_std]
extern crate digest;
extern crate crypto_mac;
-extern crate generic_array;
extern crate block_cipher_trait;
pub mod hash; | 1 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.