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
0027106e2c36bc536da4e9d59e199f50fb16032c
Shun Sakai
2022-05-25T04:17:31
Fix missing space (#313)
diff --git a/camellia/src/camellia.rs b/camellia/src/camellia.rs index 7557b92..71bf9f5 100644 --- a/camellia/src/camellia.rs +++ b/camellia/src/camellia.rs @@ -284,7 +284,7 @@ macro_rules! impl_camellia { #[cfg(feature = "zeroize")] #[cfg_attr(docsrs, doc(cfg(feature = "zeroize")))] impl Dro...
1
1
1
ca6a657e8d8368270baad4053922f442338d2ac8
Niclas Schwarzlose
2022-03-18T15:17:04
aes: implement `ZeroizeOnDrop` for aes keys (#310)
diff --git a/Cargo.lock b/Cargo.lock index 7d13c9d..e148b12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,6 +10,7 @@ dependencies = [ "cipher", "cpufeatures", "hex-literal", + "zeroize", ] [[package]] @@ -191,6 +192,6 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[pack...
7
187
3
423945db3b2462d653a3257f3b508242a8ec4793
Artyom Pavlov
2022-02-22T17:11:04
Update Cargo.lock (#308)
diff --git a/Cargo.lock b/Cargo.lock index 7b5ba54..7d13c9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -48,9 +48,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crat...
1
4
4
81e0de582e4d842d17705ca33764a9253ff11f72
Konrad Borowski
2022-02-04T17:16:42
Update byteorder to 1.1.0 (#299)
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 669a51a..c147e1b 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"] [dependencies] cipher = "0.3" -byteorder = { version = "1", default-features = false } +byteorder = { version = "1.1.0", ...
1
1
1
e9e4511befc8e16afbbc92b667ed4f5314ec861b
str4d
2021-10-19T18:40:40
aes: Add some SAFETY comments to the `aes::ni` module (#288) Suggested during review of `aes-gcm` for inclusion in Fuchsia OS: https://fuchsia-review.googlesource.com/c/fuchsia/+/585023
diff --git a/aes/src/ni/aes192/expand.rs b/aes/src/ni/aes192/expand.rs index 797b986..20f9af2 100644 --- a/aes/src/ni/aes192/expand.rs +++ b/aes/src/ni/aes192/expand.rs @@ -37,6 +37,8 @@ macro_rules! shuffle { #[inline(always)] pub(super) fn expand(key: &[u8; 24]) -> (RoundKeys, RoundKeys) { unsafe { + //...
3
8
1
859ca00b5aa525801f6a7aae678a61c2bd394ab1
Justus Winter
2021-09-15T21:36:50
twofish: Derive Clone for Twofish. (#287) This aligns Twofish with AES. Among other things, it allows its use with EAX with requires Clone. Co-authored-by: Justus Winter <teythoon@avior.uberspace.de>
diff --git a/twofish/src/lib.rs b/twofish/src/lib.rs index c35a4b2..e99f279 100644 --- a/twofish/src/lib.rs +++ b/twofish/src/lib.rs @@ -25,6 +25,7 @@ use crate::consts::{MDS_POLY, QBOX, QORD, RS, RS_POLY}; type Block = GenericArray<u8, U16>; /// Twofish block cipher +#[derive(Clone)] pub struct Twofish { s: ...
1
1
0
5ab2c80c836dbf4ff369100979eeabe9aa31d87e
Tony Arcieri
2021-08-26T16:14:04
aes: bump `cpufeatures` dependency to v0.2 (#281) This release incorporates the removal of the `crypto` target feature from nightly rustc.
diff --git a/Cargo.lock b/Cargo.lock index 4cca9d5..eefb439 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -79,9 +79,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.1.5" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66c99696f6c9dd7f35d486b9d04d7e...
2
5
5
ccbc2f8f284039a6ed4149297d60d10f2c03b10e
Tony Arcieri
2021-08-26T15:09:35
aes: use `core::arch::aarch64::vst1q_u8` intrinsic on `armv8` (#280) It previously wasn't mapped, but it is now: https://doc.rust-lang.org/core/arch/aarch64/fn.vst1q_u8.html
diff --git a/aes/Cargo.lock b/aes/Cargo.lock index dd43499..056e857 100644 --- a/aes/Cargo.lock +++ b/aes/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "aes" -version = "0.7.3" +version = "0.7.4" dependencies = [ "cfg-if", "cipher", @@ -38,18 +38,18 @@ dependencies = [ [[package]] name = "cpufe...
5
8
19
36db47b16007d9fec1ddb5edc6f470a24f940918
Tony Arcieri
2021-06-01T04:46:22
aes: add private `if_intrinsics_available!` macro (#271) Simplifies runtime CPU feature-based gating inside the `hazmat` module.
diff --git a/aes/src/hazmat.rs b/aes/src/hazmat.rs index 2784b3a..ff628e5 100644 --- a/aes/src/hazmat.rs +++ b/aes/src/hazmat.rs @@ -36,6 +36,25 @@ use crate::ni::hazmat as intrinsics; ))] cpufeatures::new!(aes_intrinsics, "aes"); +/// Execute the provided body if CPU intrinsics are available. +// TODO(tarcieri): m...
1
31
66
758169d470a7d376217f32e60d8a02a5235166ad
Tony Arcieri
2021-05-31T17:06:32
aes: soft `hazmat` backend (#268) The `hazmat` API provides access to the raw AES cipher round, equivalent inverse cipher round, mix columns, and inverse mix column operations. This commit wires up support in the "soft" backend (or more specifically, both the 32-bit and 64-bit fixsliced backends). It would ben...
diff --git a/aes/Cargo.lock b/aes/Cargo.lock index 70a22b1..dd43499 100644 --- a/aes/Cargo.lock +++ b/aes/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "aes" -version = "0.7.2" +version = "0.7.3" dependencies = [ "cfg-if", "cipher", diff --git a/aes/src/soft/fixslice32.rs b/aes/src/soft/fixslice32....
4
128
34
92704fc55ff2740a997e46e2acf4415bd3e5f842
Tony Arcieri
2021-05-30T22:59:21
aes: soft `hazmat` modules (#267) Adds a preliminary module structure for supporting the low-level `hazmat` APIs in the `soft` backend.
diff --git a/aes/src/hazmat.rs b/aes/src/hazmat.rs index 0c96699..6c10f22 100644 --- a/aes/src/hazmat.rs +++ b/aes/src/hazmat.rs @@ -11,21 +11,22 @@ //! We do NOT recommending using it to implement any algorithm which has not //! received extensive peer review by cryptographers. -use crate::Block; +use crate::{soft...
5
97
19
6bdb1be6b2a26cf40dfd0896bf2a9fa84001f8d2
Tony Arcieri
2021-05-26T14:32:45
aes: add `BLOCK_SIZE` constant (#263) I've found myself wanting this in downstream crates which consume this one. I think it could be also used in a number of places in the implementation of this crate in order to make it clearer. It's also similar to the existing constant in the `polyval` crate: https://docs....
diff --git a/aes/src/lib.rs b/aes/src/lib.rs index 385fa2e..6fdbcaa 100644 --- a/aes/src/lib.rs +++ b/aes/src/lib.rs @@ -133,3 +133,6 @@ pub type Block = cipher::generic_array::GenericArray<u8, cipher::consts::U16>; /// 8 x 128-bit AES blocks to be processed in parallel pub type ParBlocks = cipher::generic_array::G...
2
4
1
9fa86915900f42a005d57bba97a4cf67ac1cfa9b
Tony Arcieri
2021-05-26T14:30:46
aes: use Block and ParBlocks type aliases in rustdoc (#264) These are a bit easier to work with versus GenericArray, and ideally also futureproof for a const generics upgrade.
diff --git a/aes/src/lib.rs b/aes/src/lib.rs index 4114717..385fa2e 100644 --- a/aes/src/lib.rs +++ b/aes/src/lib.rs @@ -44,15 +44,15 @@ //! //! # Usage example //! ``` -//! use aes::Aes128; +//! use aes::{Aes128, Block, ParBlocks}; //! use aes::cipher::{ //! BlockCipher, BlockEncrypt, BlockDecrypt, NewBlockCi...
1
3
3
5e020f14d5fbff531bb6f9f15e9b97c366b8919c
Tony Arcieri
2021-05-18T15:54:06
aes: add `mix_columns` function to `hazmat` module (#260) Like the other functions in the `hazmat` module, this is presently an intrinsics-only implementation. On ARMv8 we can use the dedicated `AESMC` instruction. Intel AES-NI has no explicit instruction for mix columns, but it can be emulated by performing `...
diff --git a/aes/src/armv8/hazmat.rs b/aes/src/armv8/hazmat.rs index 8751a0d..f81b0a9 100644 --- a/aes/src/armv8/hazmat.rs +++ b/aes/src/armv8/hazmat.rs @@ -46,6 +46,15 @@ pub(crate) unsafe fn equiv_inv_cipher_round(block: &mut Block, round_key: &Block vst1q_u8(block.as_mut_ptr(), state); } +/// AES mix columns...
4
45
0
45061f3aafc97e082eb398b368d1f97453465ebd
Tony Arcieri
2021-05-18T14:20:17
aes: rename `hazmat` module; add `inv_mix_columns` (#259) Renames the `round` module to `hazmat` to make it more general (and match the `hazmat` feature name). Adds an `inv_mix_columns` function to it with backends for both the ARMv8 Cryptography Extensions as well as AES-NI.
diff --git a/aes/src/armv8.rs b/aes/src/armv8.rs index 85acb75..be88b60 100644 --- a/aes/src/armv8.rs +++ b/aes/src/armv8.rs @@ -10,7 +10,7 @@ #![allow(clippy::needless_range_loop)] #[cfg(feature = "hazmat")] -pub(crate) mod round; +pub(crate) mod hazmat; mod decrypt; mod encrypt; diff --git a/aes/src/armv8/rou...
7
80
38
4112255d60a557f2e271ad3cbbe61f8a2c4cd2e3
Tony Arcieri
2021-05-17T21:13:11
aes: simplify `soft` module structure (#256) Moves the impl macros to the `soft` module
diff --git a/aes/src/lib.rs b/aes/src/lib.rs index 3170a75..b47c989 100644 --- a/aes/src/lib.rs +++ b/aes/src/lib.rs @@ -90,14 +90,14 @@ )] #![warn(missing_docs, rust_2018_idioms)] +mod soft; + use cfg_if::cfg_if; cfg_if! { if #[cfg(all(target_arch = "aarch64", feature = "armv8", not(feature = "force-soft"...
5
113
121
17674c9306843c14f0da3cc068f54258885211db
Tony Arcieri
2021-05-17T17:52:38
aes: rustdoc improvements (#255) Fixes inconsistencies in the rustdoc relating ot the newly added ARMv8 intrinsics features. Moves all docs relating to backends to separate subsections, and removes the superfluous/obsolete docs.
diff --git a/aes/src/lib.rs b/aes/src/lib.rs index e2bf719..3170a75 100644 --- a/aes/src/lib.rs +++ b/aes/src/lib.rs @@ -1,17 +1,22 @@ //! Pure Rust implementation of the Advanced Encryption Standard //! (a.k.a. Rijndael) //! -//! # Supported platforms -//! This crate provides two different backends based on what ta...
1
19
11
371d7116de835cdb2681f97e0184447557c08c42
Tony Arcieri
2021-05-13T18:20:33
aes: remove outdated docs (#249) These docs are leftover from the `aesni` crate and no longer describe the current state of the `aes` crate, namely that it now supports CPUID detection with a software fallback.
diff --git a/Cargo.lock b/Cargo.lock index dce158f..b7c8fd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "aes" -version = "0.7.0" +version = "0.7.1" dependencies = [ "cfg-if", "cipher", diff --git a/aes/src/ni.rs b/aes/src/ni.rs index b8d3c26..f3545f9 100644 --- a/aes...
2
3
18
0fd47e3085cf8451ea696851c3a0f343bc675397
Tony Arcieri
2021-05-09T17:06:41
aes: restore fixslice64.rs (#247) It appears that `fixslice64.rs` was accidentally overwritten with `fixslice32.rs` in #208. This restores the 64-bit implementation to what it was prior to that PR. Closes #246.
diff --git a/aes/src/soft/fixslice32.rs b/aes/src/soft/fixslice32.rs index 802081e..77e87a0 100644 --- a/aes/src/soft/fixslice32.rs +++ b/aes/src/soft/fixslice32.rs @@ -1,5 +1,5 @@ -//! Fixsliced implementations of AES-128, AES-192 and AES-256 -//! adapted from the C implementation. +//! Fixsliced implementations of AE...
2
197
143
f68ad0db49c2136e9d3b3a5d3b2e098782b030a8
Jade
2021-05-06T14:10:49
Fix a typo in the docstring (#243)
diff --git a/block-modes/src/lib.rs b/block-modes/src/lib.rs index 220e9f9..8d7b429 100644 --- a/block-modes/src/lib.rs +++ b/block-modes/src/lib.rs @@ -41,7 +41,7 @@ //! ``` //! //! With an enabled `alloc` feature (which is enabled by default) you can use -//! `encrypt_vec` and `descrypt_vec` methods: +//! `encrypt...
1
1
1
957db90596c5475cae14f9b4fb9b63ca002905be
Tony Arcieri
2021-04-29T15:58:32
aes: bump `ctr` crate dependency to v0.7 (#237) Release notes: https://github.com/RustCrypto/stream-ciphers/pull/229
diff --git a/Cargo.lock b/Cargo.lock index 5c9cd25..2b98ddd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -82,9 +82,9 @@ checksum = "5cd5a7748210e7ec1a9696610b1015e6e31fbf58f77a160801f124bd1c36592a" [[package]] name = "ctr" -version = "0.7.0-pre.4" +version = "0.7.0" source = "registry+https://github.com/rust-lang/c...
2
3
3
d5c86d47fb2d4939b869269f5a491e081626ffb7
Tony Arcieri
2021-04-29T14:46:32
aes: use `cpufeatures` v0.1 crate release (#236) Renamed from `cpuid-bool`
diff --git a/Cargo.lock b/Cargo.lock index 8f10110..5c9cd25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,7 +6,7 @@ version = "0.7.0-pre" dependencies = [ "cfg-if", "cipher", - "cpuid-bool", + "cpufeatures", "ctr", "opaque-debug", ] @@ -75,10 +75,10 @@ dependencies = [ ] [[package]] -name = "cpuid-bool" ...
3
7
7
db3763260d02187f841ee57a51a83ce60045013d
Tony Arcieri
2021-04-28T22:55:52
Bump `cipher` dependency to v0.3 release (#235)
diff --git a/Cargo.lock b/Cargo.lock index 4c24548..8f10110 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -66,9 +66,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.3.0-pre.4" +version = "0.3.0" source = "registry+https://github.com/rust-lan...
15
32
32
b06c9c13d273789363ab99ed7e47143a00fc8759
Andelf
2021-04-05T15:21:52
sm4: fix repo link (#231)
diff --git a/sm4/Cargo.toml b/sm4/Cargo.toml index 29a5e95..78a74f4 100644 --- a/sm4/Cargo.toml +++ b/sm4/Cargo.toml @@ -5,7 +5,7 @@ authors = ["andelf <andelf@gmail.com>"] license = "Apache-2.0 OR MIT" description = "SM4 block cipher algorithm" documentation = "https://docs.rs/sm4" -repository = "https://github.com...
1
1
1
289a4009ae945c4da02cd3ad63d340e78aecd8c8
Tony Arcieri
2021-03-31T13:29:29
rustfmt (#232)
diff --git a/aes/src/autodetect.rs b/aes/src/autodetect.rs index 50e3f82..27fa2dc 100644 --- a/aes/src/autodetect.rs +++ b/aes/src/autodetect.rs @@ -21,7 +21,7 @@ macro_rules! define_aes_impl { #[doc=$doc] pub struct $name { inner: $module::Inner, - token: aes_cpuid::InitToken ...
3
41
26
c8fa3a495365666304c5db76ca011fc5deded622
Tony Arcieri
2021-02-07T22:38:26
aes: refactor NI backend (#225) - Uses array operations on the block buffer - Uses loops where they don't appear to impact performance
diff --git a/aes/src/ni/aes128/expand.rs b/aes/src/ni/aes128/expand.rs index cc4afbc..f7b65b6 100644 --- a/aes/src/ni/aes128/expand.rs +++ b/aes/src/ni/aes128/expand.rs @@ -5,7 +5,7 @@ use core::mem; macro_rules! expand_round { ($enc_keys:expr, $dec_keys:expr, $pos:expr, $round:expr) => { - let mut t1 = ...
4
41
68
b12b5ea14c13cf3dff71562ddd5ae14b341ae7bc
Tony Arcieri
2021-02-06T14:50:51
aes: replace AES-NI macros with inline(always) functions (#224) The previous usage of macros made refactoring extremely difficult, with small changes resulting in hundreds upon hundreds of errors when the macros are expanded, as opposed to a single error in a particular function. This commit replaces the AES-NI ...
diff --git a/aes/src/ni/aes128.rs b/aes/src/ni/aes128.rs index c0bec6e..16f2934 100644 --- a/aes/src/ni/aes128.rs +++ b/aes/src/ni/aes128.rs @@ -1,40 +1,47 @@ -use super::arch::*; +use super::{ + arch::*, + utils::{ + aesdec8, aesdeclast8, aesenc8, aesenclast8, load8, store8, xor8, Block128, Block128x8, + ...
7
240
216
3215a921f894f533882dc1a3cf55242237fca4ed
Tony Arcieri
2020-12-30T16:44:48
Bump `cipher` crate to v0.3.0-pre.4 (#218)
diff --git a/Cargo.lock b/Cargo.lock index 96cde5c..b0defeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -66,9 +66,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.3.0-pre.3" +version = "0.3.0-pre.4" source = "registry+https://github.com/ru...
30
72
72
c2bdea13300c9a6980651993d56b1a77a60eeb9b
Tony Arcieri
2020-12-02T18:47:12
aes: remove Copy from public types of "soft" impls (#215) When using the `autodetect` module, we store the possible backing AES implementations in a `union`, which presently requires all fields be `Copy` until `ManuallyDrop` stabilizes in Rust 1.49. However, the "soft" types are directly exposed on non-x86 archit...
diff --git a/aes/src/soft/impls.rs b/aes/src/soft/impls.rs index 31c2e93..d3de8e0 100644 --- a/aes/src/soft/impls.rs +++ b/aes/src/soft/impls.rs @@ -20,7 +20,11 @@ macro_rules! define_aes_impl { $doc:expr ) => { #[doc=$doc] - #[derive(Copy, Clone)] + #[derive(Clone)] + #[cfg_...
1
5
1
6cb05bfa3a7fed71c2ec929501327fc2cf7ac786
Tony Arcieri
2020-12-02T17:36:09
aes: detect AES-NI + SSSE3 for AES-CTR (#214) The accelerated AES-CTR implementation in this crate makes use of SSSE3 instructions. Though in theory all CPUs with AES-NI should have SSSE3, the `aes` target feature does not implicitly enable SSSE3 per the Rust Reference: https://doc.rust-lang.org/reference/attr...
diff --git a/aes/src/autodetect.rs b/aes/src/autodetect.rs index 2e15b7f..86d40ca 100644 --- a/aes/src/autodetect.rs +++ b/aes/src/autodetect.rs @@ -104,7 +104,7 @@ define_aes_impl!(Aes256, aes256, U32, "AES-256 block cipher instance"); #[cfg(feature = "ctr")] pub(crate) mod ctr { - use super::{aes_cpuid, Aes128...
1
4
2
ed88fb062d44716d0afc9fc06e834db62090043d
Tony Arcieri
2020-11-25T20:09:58
aes: use cfg-if crate (#203) Simplifies cfg-based gating
diff --git a/Cargo.lock b/Cargo.lock index 71fd7e6..e6939e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,6 +4,7 @@ name = "aes" version = "0.7.0-pre" dependencies = [ + "cfg-if", "cipher", "ctr", "opaque-debug", @@ -56,6 +57,12 @@ dependencies = [ "opaque-debug", ] +[[package]] +name = "cfg-if" +version...
3
30
42
989af1e4a8f1be9d9528a69da9436eb477b0e682
Peter Dettman
2020-11-12T14:17:13
Rework of xor_columns (#197) - also tweak the lib.rs cfg for fixslice
diff --git a/aes/aes-soft/src/fixslice32.rs b/aes/aes-soft/src/fixslice32.rs index 21daa3a..fda0543 100644 --- a/aes/aes-soft/src/fixslice32.rs +++ b/aes/aes-soft/src/fixslice32.rs @@ -48,6 +48,7 @@ pub(crate) fn aes128_key_schedule(key: &GenericArray<u8, U16>) -> FixsliceKeys12 rk_off += 8; sub_byt...
3
36
37
bf1af3a8da58be39f48987874e16997b59f3bec3
Peter Dettman
2020-11-12T09:53:20
Add benches for aes-soft 'new' impls (#196)
diff --git a/aes/aes-soft/benches/aes128.rs b/aes/aes-soft/benches/aes128.rs index c04b48b..fa56266 100644 --- a/aes/aes-soft/benches/aes128.rs +++ b/aes/aes-soft/benches/aes128.rs @@ -4,6 +4,14 @@ extern crate test; use aes_soft::cipher::{BlockCipher, NewBlockCipher}; use aes_soft::Aes128; +#[bench] +pub fn aes128...
3
24
0
b638145b4bf8abb09cf8ce19136df45b3cd1fccb
Tony Arcieri
2020-11-01T22:26:10
Bump `cipher` crate to v0.2.5 (#194) This PR also addresses the deprecation warnings which were introduced
diff --git a/Cargo.lock b/Cargo.lock index 52389d3..0405023 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,9 +74,9 @@ dependencies = [ [[package]] name = "cipher" -version = "0.2.1" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f7954ae5588102b35257639b1c36a2e74...
25
40
40
7c48d6e86e8ce3fd3af30c623a7f66f3be2fa7b7
Tony Arcieri
2020-10-28T16:02:59
aes-soft: forbid unsafe (#190) We don't have to retain this in perpetuity, but now that the implementation is fully safe code, adding this attribute gets a 🔒 in cargo-geiger.
diff --git a/aes/aes-soft/src/lib.rs b/aes/aes-soft/src/lib.rs index e2a6892..0f851df 100644 --- a/aes/aes-soft/src/lib.rs +++ b/aes/aes-soft/src/lib.rs @@ -42,7 +42,7 @@ html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg", html_favicon_url = "https://raw.githubusercontent.com/...
1
1
1
1dbede2ca5abeefa41f1a0189fdf59faecf69c2d
Peter Dettman
2020-10-28T15:26:23
Re-order (inv)_sbox using custom scheduler (#189) - see https://github.com/Ko-/aes-armcortexm
diff --git a/aes/aes-soft/src/fixslice32.rs b/aes/aes-soft/src/fixslice32.rs index dae6bcb..043c72b 100644 --- a/aes/aes-soft/src/fixslice32.rs +++ b/aes/aes-soft/src/fixslice32.rs @@ -591,6 +591,9 @@ pub(crate) fn aes256_encrypt(rkeys: &FixsliceKeys256, blocks: &mut [Block]) { fn inv_sbox(state: &mut [u32]) { de...
2
628
416
336bc11a3f969d8305be565a7da90235dc07ae2d
Tony Arcieri
2020-10-28T13:25:23
aes-soft: fix comment (#187) The fixsliced implementations now support encryption and decryption.
diff --git a/aes/aes-soft/src/fixslice32.rs b/aes/aes-soft/src/fixslice32.rs index d7a2482..dae6bcb 100644 --- a/aes/aes-soft/src/fixslice32.rs +++ b/aes/aes-soft/src/fixslice32.rs @@ -1,4 +1,4 @@ -//! Fixsliced implementations of AES-128, AES-192 and AES-256 (encryption-only) +//! Fixsliced implementations of AES-128,...
2
2
2
3a6d27879d11600bb73b5a942851db633d89afb0
Peter Dettman
2020-10-28T12:38:47
Improved AES fixslice MixColumns algorithm(s) (#184) * Improved fixslice MixColumns algorithm(s) * Fold rotations and rename for clarity
diff --git a/aes/aes-soft/src/fixslice32.rs b/aes/aes-soft/src/fixslice32.rs index 445ec11..f198b9c 100644 --- a/aes/aes-soft/src/fixslice32.rs +++ b/aes/aes-soft/src/fixslice32.rs @@ -587,184 +587,113 @@ fn sbox_nots(state: &mut [u32]) { /// Computation of the MixColumns transformation in the fixsliced representati...
2
244
360
316fcd6f4f55e66d54e7a19ae03e2faed7e8de84
Peter Dettman
2020-10-27T16:36:34
Add 64-bit fixslice AES implementation (#180)
diff --git a/aes/aes-soft/src/fixslice.rs b/aes/aes-soft/src/fixslice32.rs similarity index 99% rename from aes/aes-soft/src/fixslice.rs rename to aes/aes-soft/src/fixslice32.rs index fc9e940..445ec11 100644 --- a/aes/aes-soft/src/fixslice.rs +++ b/aes/aes-soft/src/fixslice32.rs @@ -20,6 +20,9 @@ use cipher::{ }; use...
4
1,130
6
8d25089d9a2cf986e376401b94d59709330b8a40
Peter Dettman
2020-10-27T14:45:31
Improvements for 32-bit fixslice AES (#179) - change bitslice format to match existing implementations - use more descriptive method names for clarity - factor more of the format-dependent code into methods
diff --git a/aes/aes-soft/src/fixslice.rs b/aes/aes-soft/src/fixslice.rs index 356435f..fc9e940 100644 --- a/aes/aes-soft/src/fixslice.rs +++ b/aes/aes-soft/src/fixslice.rs @@ -32,91 +32,86 @@ pub(crate) type FixsliceKeys256 = [u32; 120]; /// 256-bit internal state type State = [u32; 8]; -/// Fully bitsliced AES-12...
1
534
452
dce16137d9233e5f6b1ea53536d40337eb315310
Peter Dettman
2020-10-26T18:25:03
Perf. opt. for 8-block (un)bitslice (#171) Also adds algorithmic explanations
diff --git a/aes/aes-soft/src/bitslice.rs b/aes/aes-soft/src/bitslice.rs index d2a97b0..82a3b1a 100644 --- a/aes/aes-soft/src/bitslice.rs +++ b/aes/aes-soft/src/bitslice.rs @@ -398,16 +398,15 @@ pub fn un_bit_slice_1x16_with_u16(bs: &Bs8State<u16>, output: &mut [u8]) { // Bit Slice a 128 byte array of eight 16 byte ...
2
151
195
83dcffde7ac9ecb38f6a4599f58408ec54037c39
Tony Arcieri
2020-10-26T18:24:13
aes-soft: use fixslicing for AES encryption (#176) Fixslicing is presently defined for encryption only. However, accelerating just encryption is still useful for AES-CTR. Performance is improved by ~3X as measured on an Intel Core i9 (despite the fixslicing implementation being 32-bit only)
diff --git a/aes/aes-soft/benches/aes128.rs b/aes/aes-soft/benches/aes128.rs index 8a0beed..c04b48b 100644 --- a/aes/aes-soft/benches/aes128.rs +++ b/aes/aes-soft/benches/aes128.rs @@ -2,7 +2,7 @@ extern crate test; use aes_soft::cipher::{BlockCipher, NewBlockCipher}; -use aes_soft::{Aes128, Aes128Fixsliced}; +use ...
8
443
662
cd1837a4954dab0363f3faedfcfddc0b4aafd463
Peter Dettman
2020-10-26T16:27:44
aes-soft: fixslicing for AES-192 encryption (#177)
diff --git a/aes/aes-soft/benches/aes192.rs b/aes/aes-soft/benches/aes192.rs index 5309870..726c624 100644 --- a/aes/aes-soft/benches/aes192.rs +++ b/aes/aes-soft/benches/aes192.rs @@ -2,7 +2,7 @@ extern crate test; use aes_soft::cipher::{BlockCipher, NewBlockCipher}; -use aes_soft::Aes192; +use aes_soft::{Aes192, ...
4
205
4
ad0cb54692c601ffaa076084c363f1d6df76fdb0
Tony Arcieri
2020-10-25T13:38:01
aes-soft: fixslicing (#174) Translation ofithe portable C implementation of the "fixslicing" technique described in: https://eprint.iacr.org/2020/1123.pdf Original C code: https://github.com/aadomn/aes/tree/10a9dc9/opt32/fixslicing Relicensed as Apache 2.0 + MIT with permission.
diff --git a/aes/aes-soft/benches/aes128.rs b/aes/aes-soft/benches/aes128.rs index c04b48b..8a0beed 100644 --- a/aes/aes-soft/benches/aes128.rs +++ b/aes/aes-soft/benches/aes128.rs @@ -2,7 +2,7 @@ extern crate test; use aes_soft::cipher::{BlockCipher, NewBlockCipher}; -use aes_soft::Aes128; +use aes_soft::{Aes128, ...
5
1,011
3
ec0a0f694f0e0b4791ca479e143f02d618a49bdd
Peter Dettman
2020-10-25T00:55:24
Perf. opt. for 1-block (un)bitslice (#175)
diff --git a/aes/aes-soft/src/bitslice.rs b/aes/aes-soft/src/bitslice.rs index dc6a30a..945274f 100644 --- a/aes/aes-soft/src/bitslice.rs +++ b/aes/aes-soft/src/bitslice.rs @@ -296,39 +296,48 @@ impl<T: BitXor<Output = T> + Copy> Bs2State<T> { // Bit Slice data in the form of 4 u32s in column-major order #[inline(alw...
1
86
87
88902c713bface4d550dae971e602429a6cdc325
Tony Arcieri
2020-10-16T15:55:16
aesni/gost-modes: rustdoc fixups (#170) Fixes links to obsolete crates (`block-cipher-traits`, `stream-cipher`)
diff --git a/aes/aesni/src/lib.rs b/aes/aesni/src/lib.rs index 03358ef..73c49c4 100644 --- a/aes/aesni/src/lib.rs +++ b/aes/aesni/src/lib.rs @@ -11,8 +11,8 @@ //! otherwise you will get a compilation error. You can do it either by using //! `RUSTFLAGS="-C target-feature=+aes"` or by editing your `.cargo/config`. //!...
2
5
6
22339bcef0d73e29d32024a3090c49ddf9c08561
Jack Lloyd
2020-10-15T17:51:11
aesni: Add target_feature annotations to allow intrinsic inlining (#165)
diff --git a/aes/aesni/src/aes128.rs b/aes/aesni/src/aes128.rs index b686801..c227f58 100644 --- a/aes/aesni/src/aes128.rs +++ b/aes/aesni/src/aes128.rs @@ -19,8 +19,9 @@ pub struct Aes128 { impl Aes128 { #[inline(always)] pub(crate) fn encrypt8(&self, mut blocks: [__m128i; 8]) -> [__m128i; 8] { - let...
3
63
36
99b219ac9bf4ea6884d66b7dcc623b8122960b43
Peter Dettman
2020-10-15T17:28:26
Performance improvements in aes_soft (#166)
diff --git a/aes/aes-soft/src/bitslice.rs b/aes/aes-soft/src/bitslice.rs index d6d24d0..dc6a30a 100644 --- a/aes/aes-soft/src/bitslice.rs +++ b/aes/aes-soft/src/bitslice.rs @@ -808,70 +808,96 @@ impl<T: AesBitValueOps + Copy + 'static> AesOps for Bs8State<T> { ) } - // Formula from [5] + // See "F...
3
120
100
75c2c2106d099a90fcc5a0af450948b52168c2e8
Sergey
2020-10-10T12:26:40
Update lib.rs (#164)
diff --git a/aes/aesni/src/lib.rs b/aes/aesni/src/lib.rs index 6f8da04..95e97c0 100644 --- a/aes/aesni/src/lib.rs +++ b/aes/aesni/src/lib.rs @@ -19,7 +19,7 @@ //! CTR mode implementation. This functionality requires additionall `ssse3` //! target feature and feature-gated behind `ctr` feature flag, which is enabled ...
1
1
1
eaefa64eef9766efc6125e3dbe6b33befc36c7f2
Artyom Pavlov
2020-08-28T01:20:07
Use SVG logo (#160)
diff --git a/aes/aes-soft/src/lib.rs b/aes/aes-soft/src/lib.rs index 89f84f5..7eafd25 100644 --- a/aes/aes-soft/src/lib.rs +++ b/aes/aes-soft/src/lib.rs @@ -34,7 +34,10 @@ //! [1]: https://github.com/DaGenix/rust-crypto/blob/master/src/aessafe.rs #![no_std] -#![doc(html_logo_url = "https://raw.githubusercontent.com...
16
64
16
902c3171b83b55050d39ed598248002d70181e0e
Pierre Tholoniat
2020-08-19T21:23:55
Fix typo. (#155) "enviromental variable" -> "environment variable"
diff --git a/aes/aesni/src/target_checks.rs b/aes/aesni/src/target_checks.rs index e21f461..9d3a568 100644 --- a/aes/aesni/src/target_checks.rs +++ b/aes/aesni/src/target_checks.rs @@ -12,7 +12,7 @@ compile_error!("crate can only be used on x86 and x86_64 architectures"); ))] compile_error!( "enable aes and ssse...
1
2
2
0cb2f4b825bbbc1d76f0ce25b21f87f295396711
Artyom Pavlov
2020-08-18T20:02:37
threefish: remove byte-tools dependency (#154)
diff --git a/Cargo.lock b/Cargo.lock index c7841f8..1c70efa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,12 +68,6 @@ dependencies = [ "opaque-debug", ] -[[package]] -name = "byte-tools" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0919189ba800c7ffe8778278116b...
3
19
18
27160c13343054f567041d2bc913a52752bb9694
wcampbell
2020-08-16T17:44:59
[cast5] remove glob imports (#148)
diff --git a/cast5/src/cast5.rs b/cast5/src/cast5.rs index 637673b..eab811a 100644 --- a/cast5/src/cast5.rs +++ b/cast5/src/cast5.rs @@ -4,7 +4,7 @@ use block_cipher::generic_array::GenericArray; use block_cipher::{BlockCipher, InvalidKeyLength, NewBlockCipher}; use byteorder::{BigEndian, ByteOrder}; -use crate::co...
2
2
2
ce28449eff1a75f1f8cf9334da99ed02742ac90e
wcampbell
2020-08-16T16:11:18
Improve des (#147) * Use repeat expression * Use ref in iterator * Use u64::from()
diff --git a/des/src/des.rs b/des/src/des.rs index 971ad9c..c38d54b 100644 --- a/des/src/des.rs +++ b/des/src/des.rs @@ -110,7 +110,7 @@ fn p(block: u64) -> u64 { /// Generate the 16 subkeys pub(crate) fn gen_keys(key: u64) -> [u64; 16] { - let mut keys: [u64; 16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
1
3
3
b799ee9b7c884082bbbbc7f7dba6a69b00447c9d
Артём Павлов
2020-08-14T19:17:15
update lock file
diff --git a/Cargo.lock b/Cargo.lock index f157889..34dbc61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,7 +45,7 @@ dependencies = [ [[package]] name = "block-modes" -version = "0.6.0" +version = "0.6.1" dependencies = [ "aes", "block-cipher",
1
1
1
6838ccfee54ecc201a2ad5109c3c6810b8ccf0e2
Josh Stone
2020-07-21T12:01:51
Upgrade to opaque-debug 0.3 (#140)
diff --git a/Cargo.lock b/Cargo.lock index 3f044e5..5bd1377 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,9 +169,9 @@ dependencies = [ [[package]] name = "opaque-debug" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2839e79665f131bdb5782e51f2c...
33
32
65
e3c76758077cf66d80d05509876bc0b06aa7d0ee
Артём Павлов
2020-07-17T14:10:51
disable rustfmt for macros
diff --git a/kuznyechik/src/macros.rs b/kuznyechik/src/macros.rs index 0d507a2..a47b746 100644 --- a/kuznyechik/src/macros.rs +++ b/kuznyechik/src/macros.rs @@ -1,6 +1,7 @@ #![cfg_attr(rustfmt, rustfmt_skip)] #[cfg(not(feature = "no_unroll"))] +#[rustfmt::skip] macro_rules! unroll9 { ($var:ident, $body:block)...
1
2
0
d96978df2878ce3b872a720f2e164331e37669b9
Artyom Pavlov
2020-07-17T13:51:02
Simplify gost-modes a bit (#139)
diff --git a/gost-modes/src/cbc.rs b/gost-modes/src/cbc.rs index 6c2daa7..6ae12fe 100644 --- a/gost-modes/src/cbc.rs +++ b/gost-modes/src/cbc.rs @@ -1,4 +1,5 @@ use crate::utils::xor; +use crate::GostPadding; use block_modes::block_cipher::{Block, BlockCipher, NewBlockCipher}; use block_modes::block_padding::Padding...
6
100
47
1f0726831aacd9598aa72ace4b0afa2eda493801
Артём Павлов
2020-07-03T17:18:30
update lock file
diff --git a/Cargo.lock b/Cargo.lock index 6cd49ff..3bd8ff1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,8 +127,8 @@ dependencies = [ "block-modes", "generic-array", "hex-literal", - "kuznyechik 0.4.0", - "magma 0.4.0", + "kuznyechik 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "magma 0.4...
1
2
2
b1d1d370617baa511b44cb9e0026881c85d740de
Артём Павлов
2020-07-03T10:54:41
use OR in license fields
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 331b4ef..5f1d4ef 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -3,7 +3,7 @@ name = "blowfish" version = "0.5.0" description = "Blowfish block cipher" authors = ["RustCrypto Developers"] -license = "MIT/Apache-2.0" +license = "MIT OR Apache-...
5
5
5
d9ec448d277b51eea64dd86fba450c47f699788e
Артём Павлов
2020-07-03T08:56:23
fix clippy warning
diff --git a/threefish/src/lib.rs b/threefish/src/lib.rs index 0f388be..11615e7 100644 --- a/threefish/src/lib.rs +++ b/threefish/src/lib.rs @@ -61,7 +61,7 @@ macro_rules! impl_threefish( } } - $name { sk: sk } + $name { sk } } ...
1
1
1
1a28d88fbb0956f35c4d9ad01283e7d9b545f4c1
Tony Arcieri
2020-06-05T13:58:36
Cargo.toml: remove [patch.crates-io] section (#123)
diff --git a/Cargo.lock b/Cargo.lock index 44d6cdb..00598f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,7 +39,8 @@ dependencies = [ [[package]] name = "block-cipher" version = "0.7.0" -source = "git+https://github.com/RustCrypto/traits.git#b7a2165d1bcc8e57ae485d0217d55fd7d154ddf0" +source = "registry+https://git...
2
4
6
ef38038521c357862640ca11c0247239674e3865
Tony Arcieri
2020-06-04T23:53:01
Update to `block-cipher` v0.7 and `stream-cipher` v0.4 releases (#122) * Update to `block-cipher` v0.7 and `stream-cipher` v0.4 releases * Fix rustfmt
diff --git a/Cargo.lock b/Cargo.lock index c258f12..44d6cdb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -38,8 +38,8 @@ dependencies = [ [[package]] name = "block-cipher" -version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#c2266385dc366383baaf5699b727a27c62d3f446" +version = "0.7.0" +sourc...
17
192
179
49f41f6c8f3a1dc711cf22fb5b0faf956a1fd587
Tony Arcieri
2020-06-03T19:39:33
aesni: impl FromBlockCipher for AES-CTR types (#121) Impls the new `FromBlockCipher` trait introduced in: https://github.com/RustCrypto/traits/pull/164
diff --git a/Cargo.lock b/Cargo.lock index 75280a3..c258f12 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,7 +39,7 @@ dependencies = [ [[package]] name = "block-cipher" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#9cfac08fc7c151122ddebd580e0754c240d23db2" +source = "git+https://gith...
3
12
17
f2d2e41f1cec0e64f6dff15baec2b54d37d813a3
Tony Arcieri
2020-06-03T16:45:07
magma: fix rustfmt (#120) It appears rustfmt strips all trailing comments: https://github.com/rust-lang/rustfmt/issues/4028
diff --git a/magma/tests/lib.rs b/magma/tests/lib.rs index 6b67098..9fcb1a2 100644 --- a/magma/tests/lib.rs +++ b/magma/tests/lib.rs @@ -1,5 +1,5 @@ #![no_std] -#![cfg_attr(rustfmt, rustfmt_skip)] + use magma; use block_cipher::generic_array::GenericArray; @@ -7,6 +7,7 @@ use block_cipher::{BlockCipher, NewBlockCi...
1
2
28
8eafaaa85e9c15b7533a9460c2e3f6e475698a38
Artyom Pavlov
2020-06-03T11:14:30
Fix GOST byte order (#118)
diff --git a/kuznyechik/src/consts.rs b/kuznyechik/src/consts.rs index 7eafb86..d02c49b 100644 --- a/kuznyechik/src/consts.rs +++ b/kuznyechik/src/consts.rs @@ -1,144 +1,171 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /// Substitution table pub const P: [u8; 256] = [ - 252, 238, 221, 17, 207, 110, 49, 22, 251, 196, 25...
7
244
168
d3f194282e1785a79443f960c231190c8ab24d5a
Tony Arcieri
2020-05-27T16:39:43
aesni: use mem::zeroed instead of MaybeUninit It's slightly shorter/more readable.
diff --git a/aes/aesni/src/aes128/expand.rs b/aes/aesni/src/aes128/expand.rs index 845721f..12f7037 100644 --- a/aes/aesni/src/aes128/expand.rs +++ b/aes/aesni/src/aes128/expand.rs @@ -1,6 +1,6 @@ use crate::arch::*; -use core::mem::MaybeUninit; +use core::mem; macro_rules! expand_round { ($enc_keys:expr, $d...
4
11
13
fd3d8d20f1603c29abe595f7469a2e1d502efc4f
Tony Arcieri
2020-05-27T15:30:18
aesni: use MaybeUninit::zeroed() to init XMM registers Resolves clippy lints about soundness, and will be optimized away by the compiler: https://rust.godbolt.org/z/inEYXR
diff --git a/aes/aesni/src/aes128/expand.rs b/aes/aesni/src/aes128/expand.rs index a94dbc4..845721f 100644 --- a/aes/aesni/src/aes128/expand.rs +++ b/aes/aesni/src/aes128/expand.rs @@ -26,11 +26,9 @@ macro_rules! expand_round { #[inline(always)] pub(super) fn expand(key: &[u8; 16]) -> ([__m128i; 11], [__m128i; 11])...
4
7
18
058349cd296efd500d6535f84928f22999920543
Tony Arcieri
2020-05-27T14:50:14
serpent: add benchmark Results are not good: test decrypt ... bench: 4,640 ns/iter (+/- 1,016) = 3 MB/s test encrypt ... bench: 4,870 ns/iter (+/- 906) = 3 MB/s
diff --git a/serpent/benches/lib.rs b/serpent/benches/lib.rs new file mode 100644 index 0000000..9386db0 --- /dev/null +++ b/serpent/benches/lib.rs @@ -0,0 +1,6 @@ +#![no_std] +#![feature(test)] + +use block_cipher::bench; + +bench!(serpent::Serpent, 16);
1
6
0
dd174c7b0c26e882e36bee7ce6f26a91df318d0f
Tony Arcieri
2020-05-27T14:38:57
aes-soft: replace transmute with pointer casts ...as recommended by clippy
diff --git a/aes/aes-soft/src/impls.rs b/aes/aes-soft/src/impls.rs index 9dd330e..8720b1a 100644 --- a/aes/aes-soft/src/impls.rs +++ b/aes/aes-soft/src/impls.rs @@ -1,10 +1,7 @@ -#![allow(clippy::transmute_ptr_to_ptr)] // TODO: replace with casts - pub use block_cipher::{BlockCipher, NewBlockCipher}; use block_ciph...
1
2
5
b91346f890481b73d354424dfca0ec73ef1de183
Tony Arcieri
2020-05-27T14:32:47
Use `block_cipher::consts::*` This is a re-export of `typenum::consts` which is more convenient than `block_cipher::generic_array::typenum::*`. Inspired by a similar pattern in the `heapless` crate.
diff --git a/aes/aes-soft/src/impls.rs b/aes/aes-soft/src/impls.rs index 616d642..9dd330e 100644 --- a/aes/aes-soft/src/impls.rs +++ b/aes/aes-soft/src/impls.rs @@ -1,11 +1,10 @@ #![allow(clippy::transmute_ptr_to_ptr)] // TODO: replace with casts -use core::mem; +pub use block_cipher::{BlockCipher, NewBlockCipher}; ...
19
22
26
28aae8ee75cd79b2da4734425d1311cb3ccb40c8
Tony Arcieri
2020-05-27T05:08:18
Bump all versions to `*-pre` ...to reflect the breaking `block-cipher` update
diff --git a/Cargo.lock b/Cargo.lock index 1df9775..66c7d0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [[package]] name = "aes" -version = "0.3.2" +version = "0.4.0-pre" dependencies = [ "aes-soft", "aesni", @@ -11,7 +11,7 @@ dependencies = [ [[package]]...
17
33
35
8de340d2fd52a0aa6b5ea14cbf6a0d14b4814813
Tony Arcieri
2020-05-27T04:49:15
twofish: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 836eed9..1df9775 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,17 +42,7 @@ version = "0.7.0-pre" source = "git+https://github.com/RustCrypto/traits.git#9cfac08fc7c151122ddebd580e0754c240d23db2" dependencies = [ "blobby", - "generic-array 0.14.1", -] - -[[package]] -name ...
5
32
42
46824e8f25b188b10d9f643aa611e81f83ac353a
Tony Arcieri
2020-05-27T04:32:49
threefish: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/threefish/Cargo.toml b/threefish/Cargo.toml index 8664cd2..de2e53e 100644 --- a/threefish/Cargo.toml +++ b/threefish/Cargo.toml @@ -6,10 +6,13 @@ license = "MIT/Apache-2.0" description = "Threefish block cipher" documentation = "https://docs.rs/threefish" readme = "README.md" +edition = "2018" reposito...
3
31
32
cad53ae079e32d13d82f7d95050b5d8a83cfe7cf
Tony Arcieri
2020-05-27T04:05:35
sm4: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 5036e0b..836eed9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -223,7 +223,7 @@ dependencies = [ name = "sm4" version = "0.0.1" dependencies = [ - "block-cipher-trait", + "block-cipher", "byteorder", "opaque-debug", ] diff --git a/sm4/Cargo.toml b/sm4/Cargo.toml index fa...
7
149
153
e953c60e8c83bee92abd86887e86a820736d6ddd
Tony Arcieri
2020-05-27T03:55:44
Cargo.toml(s): remove Travis CI badges We've migrated to GitHub Actions
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 8840bc0..2d5c4bd 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -21,6 +21,3 @@ block-cipher = { version = "= 0.7.0-pre", features = ["dev"] } [features] bcrypt = [] - -[badges] -travis-ci = { repository = "RustCrypto/block-ciphers" } diff -...
8
0
20
f9ad80300ab9c33cc06b938eadf240307ccf7bbe
Tony Arcieri
2020-05-27T03:45:22
serpent: `block-cipher` crate upgrade Upgrades to the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 54027c3..5036e0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -214,7 +214,7 @@ dependencies = [ name = "serpent" version = "0.0.1" dependencies = [ - "block-cipher-trait", + "block-cipher", "byteorder", "opaque-debug", ] diff --git a/serpent/Cargo.toml b/serpent/Cargo.t...
4
34
14
ba76ff6f902904997e86bc1283531d3f018126b3
Tony Arcieri
2020-05-27T03:24:19
rc2: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index de9b38b..54027c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,7 +206,7 @@ checksum = "38c47dcb1594802de8c02f3b899e2018c78291168a22c281be21ea0fb4796842" name = "rc2" version = "0.3.0" dependencies = [ - "block-cipher-trait", + "block-cipher", "opaque-debug", ] diff ...
5
27
18
8b6952e1a0dc42eb4638bc95ddcf2a01b69f2963
Tony Arcieri
2020-05-27T02:59:27
magma: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 13bc570..de9b38b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -176,7 +176,7 @@ dependencies = [ name = "magma" version = "0.3.0" dependencies = [ - "block-cipher-trait", + "block-cipher", "byteorder", "opaque-debug", ] diff --git a/magma/Cargo.toml b/magma/Cargo.toml in...
7
39
28
0895855b8a843428278cba4bb77fb71d9953b44b
Tony Arcieri
2020-05-27T02:23:44
Import cleanups
diff --git a/block-modes/src/lib.rs b/block-modes/src/lib.rs index bb891a7..d89fddf 100644 --- a/block-modes/src/lib.rs +++ b/block-modes/src/lib.rs @@ -78,19 +78,19 @@ #![deny(unsafe_code)] #![warn(missing_docs, rust_2018_idioms)] -pub use block_padding; #[cfg(feature = "std")] extern crate std; mod errors; ...
5
13
16
7cab0808e2355aedd6a061dddb35ae17970d954e
Tony Arcieri
2020-05-27T02:06:44
kuznyechik: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index a9e9851..13bc570 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,7 +168,7 @@ dependencies = [ name = "kuznyechik" version = "0.3.0" dependencies = [ - "block-cipher-trait", + "block-cipher", "opaque-debug", ] diff --git a/kuznyechik/Cargo.toml b/kuznyechik/Cargo.toml ...
5
30
17
15444de31a178323ceae26fd994793663c40fa42
Tony Arcieri
2020-05-27T01:37:37
idea: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 569a996..a9e9851 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,7 +160,7 @@ dependencies = [ name = "idea" version = "0.0.1" dependencies = [ - "block-cipher-trait", + "block-cipher", "opaque-debug", ] diff --git a/des/tests/lib.rs b/des/tests/lib.rs index 1c7a5fb..b...
6
31
19
edaf5340a5d41d9488ca098de2fc828bbaa7cfe5
Tony Arcieri
2020-05-27T00:47:07
cast5: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index e8f4757..8db23a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,7 +105,7 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" name = "cast5" version = "0.6.0" dependencies = [ - "block-cipher-trait", + "block-cipher", "byteorder", "opaque-d...
7
34
24
65d6e4224fe077128af49ccf262dafa126fdc437
Tony Arcieri
2020-05-27T00:16:51
blowfish: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 0a53d3c..e8f4757 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,7 +78,7 @@ dependencies = [ name = "blowfish" version = "0.4.0" dependencies = [ - "block-cipher-trait", + "block-cipher", "byteorder", "opaque-debug", ] diff --git a/block-modes/src/lib.rs b/block-modes/...
6
28
17
a2807d019ecf39ffc86d0682a3d504097328a8dd
Tony Arcieri
2020-05-26T23:45:17
block-modes: 2018 edition and `block-cipher` crate upgrade Upgrades to Rust 2018 edition and the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 35142b7..0a53d3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ name = "aes" version = "0.3.2" dependencies = [ - "aes-soft 0.3.3", + "aes-soft", "aesni", "block-cipher", ] @@ -18,17 +18,6 @@ dependencies = [ "opaque-debug", ] -[[package]] -name = "aes-s...
10
84
67
e59142b26edcaa5e287c7e5067be8a501b42f9cb
Tony Arcieri
2020-05-26T21:04:06
aes: 2018 edition and `block-cipher` crate upgrade Upgrades the `aes`, `aes-soft`, and `aesni` crates to Rust 2018 edition. Additionally upgrades them to the (now 2018 edition) `block-cipher` crate (formerly `block-cipher-trait`).
diff --git a/Cargo.lock b/Cargo.lock index 89d913b..35142b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,14 +6,14 @@ version = "0.3.2" dependencies = [ "aes-soft 0.3.3", "aesni", - "block-cipher-trait", + "block-cipher", ] [[package]] name = "aes-soft" version = "0.3.3" dependencies = [ - "block-cipher-tr...
39
189
145
a3420af55b791f635b4390cf5f42a9adab50230f
Igor Raits
2020-05-14T06:26:02
chmod -x *.rs Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
diff --git a/des/benches/des.rs b/des/benches/des.rs old mode 100755 new mode 100644 diff --git a/des/src/lib.rs b/des/src/lib.rs old mode 100755 new mode 100644 diff --git a/des/tests/lib.rs b/des/tests/lib.rs old mode 100755 new mode 100644
3
0
0
ade06aedf67a4f545f36c6b41429d1c1ec6ad465
Hubert Hirtz
2020-04-26T15:46:50
Forbid unsafe code where possible `#![forbid(unsafe_code)]` attributes make rustc abort compilation if there are any unsafe blocks in the crate, and exceptions cannot be made with allow/warn attributes.
diff --git a/blowfish/src/lib.rs b/blowfish/src/lib.rs index 07afe1a..126ac8f 100644 --- a/blowfish/src/lib.rs +++ b/blowfish/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![forbid(unsafe_code)] pub extern crate block_cipher_trait; extern crate byteorder; #[macro_use] extern crate opaque_debug; diff --git a/cast5/src/lib...
7
7
1
a308e2385d010683785e965c764e8385fcded437
Andelf
2020-01-15T05:21:07
fix(sm4): now compiles under Rust 1.22.0
diff --git a/sm4/Cargo.toml b/sm4/Cargo.toml index f7a3339..f911650 100644 --- a/sm4/Cargo.toml +++ b/sm4/Cargo.toml @@ -2,7 +2,6 @@ name = "sm4" version = "0.1.0" authors = ["andelf <andelf@gmail.com>"] -edition = "2018" license = "MIT OR Apache-2.0" description = "SM4 block cipher algorithm" documentation = "ht...
3
4
4
c4723c95c049692442091694aef4c5e43e48fd90
Andelf
2020-01-15T05:12:38
test(sm4): add sm4 benches
diff --git a/sm4/benches/lib.rs b/sm4/benches/lib.rs new file mode 100644 index 0000000..2f71685 --- /dev/null +++ b/sm4/benches/lib.rs @@ -0,0 +1,7 @@ +#![no_std] +#![feature(test)] +#[macro_use] +extern crate block_cipher_trait; +extern crate sm4; + +bench!(sm4::Sm4, 16);
1
7
0
8c8bceb1582846235f07b27f6a1225e077a664b4
Andelf
2020-01-15T05:06:16
test(sm4): add all tests from GM/T 0002-2012
diff --git a/sm4/src/lib.rs b/sm4/src/lib.rs index 4d24a53..9dd2b89 100644 --- a/sm4/src/lib.rs +++ b/sm4/src/lib.rs @@ -1,3 +1,8 @@ +//! An implementation of the [SM4][1] block cipher. +//! +//! [1]: https://en.wikipedia.org/wiki/SM4_(cipher) +#![no_std] +pub extern crate block_cipher_trait; mod sm4; mod consts; @...
3
62
29
3c1f3428482921241c8d1fa4e8982f000d3f758b
andelf
2020-01-14T21:50:50
fix: add sm4 to workspace
diff --git a/Cargo.toml b/Cargo.toml index 97c2041..bdc9330 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,5 +8,6 @@ members = [ "kuznyechik", "magma", "rc2", + "sm4", "twofish", ]
1
1
0
8968da299cf4b40a2d215c7f446e981286f93a29
Blocs
2019-12-04T21:37:38
Removes a comment
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index 8fda3b7..5a2071c 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -81,8 +81,6 @@ fn round_bitslice( } else { linear_transform_bitslice(s_i, b_output); } - - // println!("i={} : {:?}", i, s_i); } fn round_inverse_bitslice( ...
1
0
2
41849bc8ef982575272073fa01708cbd3bc8a30c
Blocs
2019-12-04T21:35:17
Bumps version to 0.6.0
diff --git a/serpent/Cargo.toml b/serpent/Cargo.toml index db77792..3c69bc9 100644 --- a/serpent/Cargo.toml +++ b/serpent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "serpent" -version = "0.1.0" +version = "0.6.0" authors = ["Blocs <jonathan@cryptoblocs.fr>"] license = "MIT/Apache-2.0" edition = "2018"
1
1
1
a0747ba56b5bc1cfaec2aabccf3d98406ae5abfd
Blocs
2019-12-04T21:34:52
Adds bitslices in rounds
diff --git a/serpent/src/consts.rs b/serpent/src/consts.rs index ba6fe35..6053703 100644 --- a/serpent/src/consts.rs +++ b/serpent/src/consts.rs @@ -23,302 +23,3 @@ pub const S_INVERSE: [[u8; 16]; 8] = [ [15, 10, 1, 13, 5, 3, 6, 0, 4, 9, 14, 7, 2, 12, 8, 11], // InvS6 [3, 0, 6, 13, 9, 14, 15, 8, 5, 12, 11, 7,...
2
99
394
7a9d7ff9c90e958b8e915be1bed5247b1e9d2ab9
Blocs
2019-12-02T20:25:09
Removes a comment
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index 4f88279..5bdd9f9 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -36,7 +36,6 @@ fn get_bit(x: usize, i: usize) -> u8 { } fn set_bit(i: usize, v: u8, w: &mut Word) { - // Fix this let index = i / 8; if v == 1 { w[index] |= 0...
1
0
1
a0edee12c9265060741288475d6039a527e44f11
Blocs
2019-12-02T11:25:24
Removes LE::write_u128 and read_u128
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index 1fc4f66..4f88279 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -84,7 +84,8 @@ fn round_inverse( khat: Subkeys, bhat_i: &mut Block128, ) { - let (xored_block, shat_i) = &mut ([0u8; 16], [0u8; 16]); + let xored_block = &mut [0u8; 16...
1
8
3
b6728c22fc98c2aa02bef6454595419693f4df42
Blocs
2019-12-02T10:53:04
Fixes usize error casting in get bit
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index 0a20cc2..1fc4f66 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -32,7 +32,7 @@ fn get_word_bit(w: Word, i: usize) -> u8 { w[i / 8] >> (i % 8) & 0x01 } fn get_bit(x: usize, i: usize) -> u8 { - (x as u8 >> i) & 0x01 + (x >> i) as u8 & 0x...
1
1
1
2d7f6eb8ee7084e8b167d68970a3db1b62254584
Blocs
2019-12-02T10:50:26
Refactors
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index a3e2f9f..0a20cc2 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -32,7 +32,7 @@ fn get_word_bit(w: Word, i: usize) -> u8 { w[i / 8] >> (i % 8) & 0x01 } fn get_bit(x: usize, i: usize) -> u8 { - ((x >> i) & 0x01) as u8 + (x as u8 >> i) & ...
1
3
3
ae8c8f0189432136ffa117f55a383b9693a8cfb5
Blocs
2019-12-02T10:27:51
Removes rotate_right from get bit
diff --git a/serpent/src/lib.rs b/serpent/src/lib.rs index 85b585a..a3e2f9f 100644 --- a/serpent/src/lib.rs +++ b/serpent/src/lib.rs @@ -29,11 +29,10 @@ pub struct Serpent { } fn get_word_bit(w: Word, i: usize) -> u8 { - let b_per_w = 8u32; - w[i / b_per_w as usize].rotate_right(i as u32 % b_per_w) & 0x01 + ...
1
2
3