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
c1521ce14edf4f422ec34ed85c451db2274a26fe
Adrian Friedli
2019-07-09T13:19:59
fix typo (#49)
diff --git a/block-modes/src/cbc.rs b/block-modes/src/cbc.rs index 268e586..3d85d6f 100644 --- a/block-modes/src/cbc.rs +++ b/block-modes/src/cbc.rs @@ -6,7 +6,7 @@ use traits::BlockMode; use utils::{xor, get_par_blocks, ParBlocks, Block}; use core::marker::PhantomData; -/// [Cipher Block Chaining][1] (CBC) block c...
1
1
1
4f59b4b9f963fff1f5a612d49bef9c5897aece64
newpavlov
2019-03-11T13:31:00
bump cast5 to v0.6.0
diff --git a/cast5/Cargo.toml b/cast5/Cargo.toml index 0bbdbc2..63ba1a4 100644 --- a/cast5/Cargo.toml +++ b/cast5/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cast5" -version = "0.1.0" +version = "0.6.0" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "CAST5 block cipher"
1
1
1
8ada0b0d347305d89ebcada3021956f88f811260
newpavlov
2019-03-11T13:27:56
disable byteorder default features
diff --git a/cast5/Cargo.toml b/cast5/Cargo.toml index 73659ec..0bbdbc2 100644 --- a/cast5/Cargo.toml +++ b/cast5/Cargo.toml @@ -12,7 +12,7 @@ categories = ["cryptography", "no-std"] [dependencies] block-cipher-trait = "0.6" opaque-debug = "0.2" -byteorder = "1.3" +byteorder = { version = "1", default-features = fal...
2
2
3
e65ffde2d601d215725563682be1ca7b47b8a67a
Carlos Rodriguez
2019-02-26T15:45:14
Bumped up version of dependencies. Processed first review comment.
diff --git a/idea/Cargo.toml b/idea/Cargo.toml index dbd7575..f2a32fa 100644 --- a/idea/Cargo.toml +++ b/idea/Cargo.toml @@ -10,8 +10,8 @@ keywords = ["crypto", "idea", "block-cipher"] categories = ["cryptography", "no-std"] [dependencies] -block-cipher-trait = "0.5" -opaque-debug = "0.1" +block-cipher-trait = "0.6...
2
7
10
1fdb4dcf75b7aea60c39753d113a070a82724d66
newpavlov
2019-02-04T09:53:52
add Debug and Error impls for block-modes error types. fixes #44
diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index 2687dc6..6cf6f2a 100644 --- a/block-modes/Cargo.toml +++ b/block-modes/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "block-modes" -version = "0.3.1" +version = "0.3.2" authors = ["RustCrypto Developers"] -license = "MIT/Apache-2.0" +license = "MIT OR ...
5
45
12
80932a095fb58c80528cb35e9b7570dcf56c2703
newpavlov
2018-12-27T16:02:25
add links to docs
diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index d6c7075..2687dc6 100644 --- a/block-modes/Cargo.toml +++ b/block-modes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-modes" -version = "0.3.0" +version = "0.3.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Blo...
4
10
4
3b3963148508c499ecaf915831d6c4208c583aae
newpavlov
2018-12-27T15:50:29
fix block-modes doc
diff --git a/block-modes/src/ecb.rs b/block-modes/src/ecb.rs index e5eb420..cd78774 100644 --- a/block-modes/src/ecb.rs +++ b/block-modes/src/ecb.rs @@ -7,7 +7,7 @@ use core::marker::PhantomData; /// Electronic Codebook (ECB) block cipher mode instance. /// -/// Note that during `new` method ignores IV, so during i...
1
1
1
5d91e9c344296b37268994da08544e4e96edd09d
newpavlov
2018-12-27T14:47:02
fix block-modes doctests
diff --git a/block-modes/src/lib.rs b/block-modes/src/lib.rs index 2e332b0..0cf8ab7 100644 --- a/block-modes/src/lib.rs +++ b/block-modes/src/lib.rs @@ -18,6 +18,7 @@ //! // create an alias for convinience //! type Aes128Cbc = Cbc<Aes128, Pkcs7>; //! +//! # fn main() { //! let key = hex!("000102030405060708090a0b0c...
1
4
0
ef95cbd854b561cdbae0b3a9de2b0df3ec9eb359
Артём Павлов [Artyom Pavlov]
2018-12-23T19:57:40
remove unnecessary import
diff --git a/magma/src/lib.rs b/magma/src/lib.rs index 28c2c11..7f1f74f 100644 --- a/magma/src/lib.rs +++ b/magma/src/lib.rs @@ -11,8 +11,6 @@ use byteorder::{LE, ByteOrder}; use block_cipher_trait::generic_array::GenericArray; use block_cipher_trait::generic_array::typenum::{U1, U32, U8}; -use core::fmt; - use sb...
1
0
2
39269aeb058a3b6f15c873447101f8abdde7d73f
Артём Павлов [Artyom Pavlov]
2018-12-23T19:50:30
bump versions
diff --git a/aes/aes-soft/Cargo.toml b/aes/aes-soft/Cargo.toml index 9633a9b..6f7a20b 100644 --- a/aes/aes-soft/Cargo.toml +++ b/aes/aes-soft/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aes-soft" -version = "0.3.2" +version = "0.3.3" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = ...
3
3
3
001031f7d952a8ef89b460016e90155e410b0413
Luke Schoen
2018-12-17T08:49:30
docs: Add rustdoc summary for each block mode of operation (#38)
diff --git a/block-modes/src/cbc.rs b/block-modes/src/cbc.rs index 179c258..211bbf9 100644 --- a/block-modes/src/cbc.rs +++ b/block-modes/src/cbc.rs @@ -7,6 +7,7 @@ use utils::{xor, ParBlocks}; use core::marker::PhantomData; use core::slice; +/// Struct for the Cipher Block Chaining (CBC) block cipher mode of opera...
8
9
0
f5e9df1aec2e3c527ab1a7ae72f4553bd7f4510b
newpavlov
2018-12-17T08:44:41
blowfish v0.3.1
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 1e8b27b..719484e 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "blowfish" -version = "0.3.0" +version = "0.3.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Blowfish block cip...
2
6
4
2e1bb63b7904931d35c31a6d1957ac963820c87a
Lukas Wirth
2018-12-17T08:34:20
Make blowfish generic over ByteOrder (#39) * Make blowfish generic over ByteOrder * Remove BlowfishBE typedef
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index ad5849f..1e8b27b 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -10,8 +10,8 @@ keywords = ["crypto", "blowfish", "block-cipher"] categories = ["cryptography", "no-std"] [dependencies] -byte-tools = "0.2" block-cipher-trait = "0.5" +byteord...
2
25
19
a9e4a8f19525dafedcb9d78750bbdea84409ea17
newpavlov
2018-11-01T13:53:49
update aesni version
diff --git a/aes/aes/Cargo.toml b/aes/aes/Cargo.toml index 2ab275f..abf96ba 100644 --- a/aes/aes/Cargo.toml +++ b/aes/aes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aes" -version = "0.3.1" +version = "0.3.2" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "Facade for AES (Rijndael...
1
2
2
ca170bbe8c0e40013d8ffdf8b055450bbeb448dc
newpavlov
2018-11-01T13:50:49
update stream-cipher version
diff --git a/aes/aesni/Cargo.toml b/aes/aesni/Cargo.toml index ab50aa8..728a6f7 100644 --- a/aes/aesni/Cargo.toml +++ b/aes/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.5.1" +version = "0.6.0" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "AES (Rijndael)...
9
18
18
9496754bb641b2d5bb5215f48b8e703a67cfc2b2
Luis de Bethencourt
2018-10-10T11:30:57
Apply clippy lints (#31)
diff --git a/aes/aes-soft/src/bitslice.rs b/aes/aes-soft/src/bitslice.rs index d8163df..fc510f1 100644 --- a/aes/aes-soft/src/bitslice.rs +++ b/aes/aes-soft/src/bitslice.rs @@ -1,3 +1,5 @@ +#![cfg_attr(feature="cargo-clippy", allow(unreadable_literal))] + use core::ops::{BitAnd, BitXor, Not}; use byteorder::{LE, Byte...
8
40
33
e2122327fa8bec0456e63049aac25c8a12bb76e7
newpavlov
2018-10-04T15:15:04
use aes-soft for MSRV test
diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index 104b0b0..053647a 100644 --- a/block-modes/Cargo.toml +++ b/block-modes/Cargo.toml @@ -13,4 +13,4 @@ block-padding = "0.1" block-cipher-trait = "0.6" [dev-dependencies] -aes = "0.3" +aes-soft = "0.3" diff --git a/block-modes/tests/lib.rs b/block-mode...
2
3
3
72b20cb79a98fc69d0cc6519472a580ea14f2f0d
newpavlov
2018-10-04T12:58:19
update block-modes dependencies. closes #33
diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index eda4eac..104b0b0 100644 --- a/block-modes/Cargo.toml +++ b/block-modes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-modes" -version = "0.1.0" +version = "0.2.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "Blo...
2
5
5
bae76f1e035ebccb30a5dbc4a5d281dee1c0bf68
Luis de Bethencourt
2018-10-03T13:51:33
Use assign operator (#30) The <<= operator can be used directly.
diff --git a/twofish/src/lib.rs b/twofish/src/lib.rs index 3f7d6c0..2a9aaf9 100644 --- a/twofish/src/lib.rs +++ b/twofish/src/lib.rs @@ -33,7 +33,7 @@ fn gf_mult(mut a: u8, mut b: u8, p: u8) -> u8 { if b & 0x80 == 0x80 { b = (b << 1) ^ p; } else { - b = b << 1; + b <...
1
1
1
422042da29cfac06b09e4290843147cbb195f66d
newpavlov
2018-10-03T09:18:09
impl Clone for aes-soft
diff --git a/aes/aes-soft/Cargo.toml b/aes/aes-soft/Cargo.toml index f4c6232..b5c14a9 100644 --- a/aes/aes-soft/Cargo.toml +++ b/aes/aes-soft/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aes-soft" -version = "0.3.0" +version = "0.3.1" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = ...
2
2
1
16564f5ac205207d4c9a9f9d269039b5445e8e9d
Artyom Pavlov
2018-10-03T09:03:30
aes crates migration to block-cipher-trait v0.6 (#29)
diff --git a/aes/aes-soft/Cargo.toml b/aes/aes-soft/Cargo.toml index 1839c0a..f4c6232 100644 --- a/aes/aes-soft/Cargo.toml +++ b/aes/aes-soft/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aes-soft" -version = "0.2.0" +version = "0.3.0" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = ...
8
21
21
5acfaacabcdca506f53196aeb3cdb4a7e8a9ce17
Артём Павлов [Artyom Pavlov]
2018-08-08T13:42:46
aesni v0.4.2
diff --git a/aes/aesni/Cargo.toml b/aes/aesni/Cargo.toml index 9fad8d0..f16a0c2 100644 --- a/aes/aesni/Cargo.toml +++ b/aes/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.4.1" +version = "0.4.2" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "AES (Rijndael)...
1
1
1
f921f1f56ff4c8fe1b4da41aaf0411b00cfb94de
Artyom Pavlov
2018-08-08T13:42:00
More pedantic unsafe code (#24)
diff --git a/aes/aesni/src/aes128/expand.rs b/aes/aesni/src/aes128/expand.rs index b36daac..41a9131 100644 --- a/aes/aesni/src/aes128/expand.rs +++ b/aes/aesni/src/aes128/expand.rs @@ -4,48 +4,47 @@ use core::mem; macro_rules! expand_round { ($enc_keys:expr, $dec_keys:expr, $pos:expr, $round:expr) => { - ...
3
188
171
ea344aba9de3714f8381bc25b2d12ccd5cf9af82
newpavlov
2018-08-07T17:36:44
document aesni nocheck feature
diff --git a/aes/aesni/Cargo.toml b/aes/aesni/Cargo.toml index 895a6af..9fad8d0 100644 --- a/aes/aesni/Cargo.toml +++ b/aes/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.4.0" +version = "0.4.1" authors = ["RustCrypto Developers"] license = "MIT OR Apache-2.0" description = "AES (Rijndael)...
2
8
1
2b72622a52dfbc5e64aef6bb48d1934e88b25ec2
cheme
2018-08-07T17:19:43
Add feature to disable aesni target feature compile time checks. (#22)
diff --git a/aes/aesni/Cargo.toml b/aes/aesni/Cargo.toml index 034d5c5..895a6af 100644 --- a/aes/aesni/Cargo.toml +++ b/aes/aesni/Cargo.toml @@ -21,6 +21,7 @@ stream-cipher = { version = "0.1", features = ["dev"] } [features] default = ["ctr"] ctr = [] +nocheck = [] [workspace] diff --git a/aes/aesni/src/lib.rs...
2
2
1
1dc5eaaf26dcfc70854463a7dbfd776a471a9fc7
newpavlov
2018-06-22T17:48:47
remove aes from top workspace
diff --git a/Cargo.toml b/Cargo.toml index 217d170..43f27c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [workspace] members = [ - "aes", "aes-soft", "blowfish", "block-modes", diff --git a/aes/Cargo.toml b/aes/Cargo.toml index 00ae299..2ff67ee 100644 --- a/aes/Cargo.toml +++ b/aes/Cargo...
2
2
1
4f2a861cc5dd51ca2e3013a796ee308dac520c81
newpavlov
2018-06-22T17:38:46
aesni docs update
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 0c78b48..c3fde72 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.3.4" +version = "0.3.5" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers impl...
2
1
4
e6256cf481322c3d792bd66b809f892781ac770b
newpavlov
2018-06-22T17:36:24
added aes benches
diff --git a/aes/benches/aes128.rs b/aes/benches/aes128.rs new file mode 100644 index 0000000..584e910 --- /dev/null +++ b/aes/benches/aes128.rs @@ -0,0 +1,68 @@ +#![no_std] +#![feature(test)] +extern crate aes; +extern crate test; + +use aes::{Aes128, BlockCipher}; + +#[bench] +pub fn aes128_encrypt(bh: &mut test::Ben...
3
205
0
b8b1f1399f7574a9186168f7b22d16e8b789e5ec
newpavlov
2018-06-13T18:00:32
docs.rs fix take 2
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 55d7e2b..0c78b48 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.3.3" +version = "0.3.4" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers impl...
1
3
3
da8f04c04e6b40342bb5b932e3e0f31266fac2fd
newpavlov
2018-06-13T17:38:01
aesni doc fix
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 9b07a2b..55d7e2b 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.3.2" +version = "0.3.3" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers impl...
1
3
2
e62dc7532254fba67b39b0b2ca61a2b9ccec0654
newpavlov
2018-03-14T10:36:52
post-rustfmt fix
diff --git a/aes-soft/src/impls.rs b/aes-soft/src/impls.rs index 9a5e341..84500d6 100644 --- a/aes-soft/src/impls.rs +++ b/aes-soft/src/impls.rs @@ -1,8 +1,8 @@ use core::{fmt, mem}; -use block_cipher_trait::generic_array; -use generic_array::GenericArray; -use generic_array::typenum::{U11, U13, U15, U16, U24, U32, ...
2
4
4
b1634d19f1b628b9beecf570a4ec6491c40fc166
Артём Павлов [Artyom Pavlov]
2018-03-06T21:43:45
added ignore_target_feature_check to aesni
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 2448321..cfeedec 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.3.0" +version = "0.3.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers impl...
2
16
10
084d3248e642399777b260ab4818bfa445568432
Артём Павлов [Artyom Pavlov]
2018-03-06T20:32:04
aesni doc updates
diff --git a/aesni/src/lib.rs b/aesni/src/lib.rs index accf6ce..803c1d2 100644 --- a/aesni/src/lib.rs +++ b/aesni/src/lib.rs @@ -2,12 +2,17 @@ //! //! This crate does not implement any software fallback and does not //! automatically check CPUID, so if you are using this crate make sure to run -//! software on appro...
1
12
4
9a996c928dc3e0944bb92d82dd7185881fc5ae6e
Артём Павлов [Artyom Pavlov]
2018-03-04T21:35:15
removed explicit coresimd dependency
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index eaa5324..2448321 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -12,7 +12,6 @@ categories = ["cryptography", "no-std"] [dependencies] block-cipher-trait = "0.5" opaque-debug = "0.1" -coresimd = { git = "https://github.com/rust-lang-nursery/stdsimd" } ...
9
8
10
481e74822a5c5e5e334ba9cca38ef856030342e1
Артём Павлов [Artyom Pavlov]
2018-03-04T14:08:01
moved #![feature(..)]
diff --git a/aesni/src/lib.rs b/aesni/src/lib.rs index 19de401..5a8a89b 100644 --- a/aesni/src/lib.rs +++ b/aesni/src/lib.rs @@ -43,9 +43,9 @@ //! - [Intel AES-NI whitepaper](https://software.intel.com/sites/default/files/article/165683/aes-wp-2012-09-22-v01.pdf) //! - [Use of the AES Instruction Set](https://www.cos...
1
1
1
6dc99fd96d0f4b6ea3ed135e45ee0ceaac9c7182
Артём Павлов [Artyom Pavlov]
2018-03-04T13:13:09
block-modes v0.1.0
diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index a6e08a4..eda4eac 100644 --- a/block-modes/Cargo.toml +++ b/block-modes/Cargo.toml @@ -9,8 +9,8 @@ repository = "https://github.com/RustCrypto/block-ciphers" keywords = ["crypto", "block-cipher", "ciphers"] [dependencies] -block-padding = { git = "ht...
1
2
2
aa6024f1096de6a7aa431a0b746eab698cf47bbc
newpavlov
2018-02-16T09:32:18
fixed tests
diff --git a/block-modes/src/cfb.rs b/block-modes/src/cfb.rs index 3d48a60..402d6f1 100644 --- a/block-modes/src/cfb.rs +++ b/block-modes/src/cfb.rs @@ -51,7 +51,6 @@ impl<C: BlockCipher, P: Padding> BlockMode<C, P> for Cfb<C, P> { if pb != 1 && buffer.len() > bss { let (block, r) = {buffer}.split...
3
2
10
190a7ef7a829efa5102555eed3f96d97e7687bf5
newpavlov
2018-02-15T18:33:31
small reorganization of block-modes
diff --git a/block-modes/src/ctr.rs b/block-modes/src/ctr128.rs similarity index 61% rename from block-modes/src/ctr.rs rename to block-modes/src/ctr128.rs index a06c1d8..44878ad 100644 --- a/block-modes/src/ctr.rs +++ b/block-modes/src/ctr128.rs @@ -1,5 +1,5 @@ use block_cipher_trait::generic_array::{GenericArray, Ar...
5
70
75
222e66bced307bf1ee7f52790e030c5d04b66381
newpavlov
2018-02-14T16:46:18
block-modes updates
diff --git a/Cargo.toml b/Cargo.toml index 6c5a54f..43f27c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ members = [ "aes-soft", "blowfish", - #"block-modes", + "block-modes", "des", "kuznyechik", "magma", diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml index 7a0...
9
262
112
3fd90af3c17ed5095946fd1593e2c610b259c407
newpavlov
2018-02-12T14:26:56
added aes-soft to workspace
diff --git a/Cargo.toml b/Cargo.toml index 8dff9e7..6c5a54f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] members = [ + "aes-soft", "blowfish", #"block-modes", "des", diff --git a/aes-soft/Cargo.toml b/aes-soft/Cargo.toml index 0811309..1e255d6 100644 --- a/aes-soft/Cargo.toml...
2
1
2
34bc0199ab1872683f1738070194a9671bb5e474
Артём Павлов [Artyom Pavlov]
2017-12-01T10:23:29
fixed benches
diff --git a/aesni/benches/aes128.rs b/aesni/benches/aes128.rs index 2647ce8..890210f 100644 --- a/aesni/benches/aes128.rs +++ b/aesni/benches/aes128.rs @@ -4,13 +4,15 @@ extern crate aesni; extern crate test; +use aesni::{Aes128, BlockCipher}; + #[bench] pub fn aes128_encrypt(bh: &mut test::Bencher) { - let c...
3
60
60
d4d2ea70cee91b811f5da077683c47de8410f376
Артём Павлов [Artyom Pavlov]
2017-12-01T10:12:01
doc fixes
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 22ea922..adc876a 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.2.0" +version = "0.2.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers impl...
3
28
20
7faf96225dae29c31e7d92689d6d1496dfebf2d2
Артём Павлов [Artyom Pavlov]
2017-11-26T18:28:01
implemented Debug trait, re-exported block-cipher-trait in all crates
diff --git a/Cargo.toml b/Cargo.toml index 05557a5..8dff9e7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,3 @@ members = [ "rc2", "twofish" ] - -[patch.crates-io] -block-cipher-trait = { git = "https://github.com/RustCrypto/traits", branch="new_versiion" } diff --git a/blowfish/Cargo.toml b/blowfish/Ca...
16
79
27
2727d47f742e1c3d0cf82b0abe0994599c71f70a
Артём Павлов [Artyom Pavlov]
2017-11-26T16:09:30
removed old public methods
diff --git a/aesni/src/aes128/mod.rs b/aesni/src/aes128/mod.rs index 052f87e..03cff35 100644 --- a/aesni/src/aes128/mod.rs +++ b/aesni/src/aes128/mod.rs @@ -13,14 +13,14 @@ pub struct Aes128 { impl Aes128 { /// Create new AES-192 instance with given key #[inline] - pub fn init(key: &[u8; 16]) -> Self { + ...
3
14
14
ac1b0ed2545626e5eb4c29f78d26c4ab718a4dfb
Артём Павлов [Artyom Pavlov]
2017-11-26T16:04:05
added opaque Debug implementation
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index fd5e36e..22ea922 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -11,11 +11,9 @@ categories = ["cryptography", "no-std"] [dependencies] block-cipher-trait = "0.5" +opaque-debug = "0.1" [dev-dependencies] block-cipher-trait = { version = "0.5", featu...
7
13
8
461224934d0c286ebb7d76f5f83f51cb3ef77421
newpavlov
2017-11-23T16:51:59
removed unused patches
diff --git a/Cargo.toml b/Cargo.toml index 14c720b..05557a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,3 @@ members = [ [patch.crates-io] block-cipher-trait = { git = "https://github.com/RustCrypto/traits", branch="new_versiion" } -crypto-tests = { git = "https://github.com/RustCrypto/utils" } -crypto-ma...
1
0
3
33ff45a1a0ef573cd21b7a6b0044f38363333992
newpavlov
2017-11-23T16:16:49
added cfg to tests and benches
diff --git a/aesni/benches/aes128.rs b/aesni/benches/aes128.rs index dcb983d..2647ce8 100644 --- a/aesni/benches/aes128.rs +++ b/aesni/benches/aes128.rs @@ -1,4 +1,5 @@ #![no_std] +#![cfg(any(target_arch = "x86_64", target_arch = "x86"))] #![feature(test)] extern crate aesni; extern crate test; diff --git a/aesni/b...
5
6
0
c57a92d5752c279f590ae60b76c8640222f3e032
newpavlov
2017-11-23T16:06:44
updated benchmarks
diff --git a/blowfish/benches/lib.rs b/blowfish/benches/lib.rs index 234f48a..0cb9ae1 100644 --- a/blowfish/benches/lib.rs +++ b/blowfish/benches/lib.rs @@ -1,7 +1,7 @@ #![no_std] #![feature(test)] #[macro_use] -extern crate crypto_tests; +extern crate block_cipher_trait; extern crate blowfish; -bench_block_ciphe...
7
12
14
ecde9e6220a9e6704f6c5bc794afc9e040775c99
newpavlov
2017-11-23T16:00:01
renamed RC2->Rc2, modified tests
diff --git a/rc2/src/lib.rs b/rc2/src/lib.rs index 95a3c51..1781c1d 100644 --- a/rc2/src/lib.rs +++ b/rc2/src/lib.rs @@ -4,7 +4,8 @@ #![no_std] extern crate block_cipher_trait; -use block_cipher_trait::{BlockCipher, InvalidKeyLength}; +pub use block_cipher_trait::BlockCipher; +use block_cipher_trait::InvalidKeyLen...
2
43
18
7ba687e8be87ad41251aea7904c71377539ffa57
newpavlov
2017-11-23T15:51:50
simplified magma test
diff --git a/magma/Cargo.toml b/magma/Cargo.toml index f2fa2a4..4f283a8 100644 --- a/magma/Cargo.toml +++ b/magma/Cargo.toml @@ -13,8 +13,5 @@ categories = ["cryptography", "no-std"] byte-tools = "0.2" block-cipher-trait = "0.5" -[dev-dependencies] -crypto-tests = "0.6" - [badges] travis-ci = { repository = "Rust...
3
21
10
d3e05b8e1c33aa4a9791eaca46b125b0b8fcf791
newpavlov
2017-11-23T15:10:31
Fixed twofish tests
diff --git a/twofish/src/tests.rs b/twofish/src/tests.rs index fcf8a0d..93ea6bf 100644 --- a/twofish/src/tests.rs +++ b/twofish/src/tests.rs @@ -3,7 +3,7 @@ use super::*; #[test] fn intermediate128() { let key = [0u8; 16]; - let twofish = Twofish::new(&key).unwrap(); + let twofish = Twofish::new_varkey(&ke...
2
7
7
1b277e9fa93cc08626c7edcd099c92411bf03269
newpavlov
2017-11-22T13:24:35
removed unnecessary import
diff --git a/des/src/des.rs b/des/src/des.rs index 97e7706..fba693c 100644 --- a/des/src/des.rs +++ b/des/src/des.rs @@ -1,7 +1,7 @@ use traits::BlockCipher; use byte_tools::{read_u64_be, write_u64_be}; use traits::generic_array::GenericArray; -use traits::generic_array::typenum::{U1, U8, U16, U24}; +use traits::gen...
1
1
1
3a5c5415db61f07429f3fdebbb87d70c84782971
newpavlov
2017-11-22T13:20:51
migration to a new BlockCipher trait, disabled block-modes
diff --git a/Cargo.toml b/Cargo.toml index e1effbb..14c720b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [workspace] members = [ "blowfish", - "block-modes", + #"block-modes", "des", "kuznyechik", "magma", diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index d078132..57df...
11
80
98
dd8db6dbcc8595e21497ae438873ac20db5942f8
newpavlov
2017-11-21T18:19:08
updated des description
diff --git a/des/Cargo.toml b/des/Cargo.toml index 7b1f4dd..19ad2b6 100644 --- a/des/Cargo.toml +++ b/des/Cargo.toml @@ -3,7 +3,7 @@ name = "des" version = "0.1.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" -description = "DES and Triple DES block cipher implementation" +description = "DES and Tr...
1
1
1
698d9ad9c05678da1a0a04155d6e92600f54ad33
newpavlov
2017-11-21T18:18:49
updated patch section
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index fd5e36e..68ae252 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -16,6 +16,3 @@ block-cipher-trait = "0.5" block-cipher-trait = { version = "0.5", features = ["dev"] } [workspace] - -[patch.crates-io] -block-cipher-trait = { git = "https://github.com/Ru...
1
0
3
d402866302ea5eafb754b59ee0bf85abaa10dcab
newpavlov
2017-11-20T11:53:59
aesni encrypt_blocks fix
diff --git a/aesni/src/impl_traits.rs b/aesni/src/impl_traits.rs index 16a4ad7..9fd3ac4 100644 --- a/aesni/src/impl_traits.rs +++ b/aesni/src/impl_traits.rs @@ -16,7 +16,7 @@ fn as_block_mut(val: &mut Block128) -> &mut [u8; 16] { #[inline(always)] fn as_block8_mut(val: &mut Block128x8) -> &mut [u8; 16*8] { - ass...
1
1
1
3f7e7cb6b895b9c99238d035bc971dbefe197101
newpavlov
2017-11-17T13:58:34
added des to workspace, small changes
diff --git a/Cargo.toml b/Cargo.toml index 3760fae..5dc5aef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ members = [ "blowfish", "block-modes", + "des", "kuznyechik", "magma", "rc2", diff --git a/des/src/lib.rs b/des/src/lib.rs index cb5ab45..1d36e05 100755 --- a/des/src/lib.rs ...
2
2
2
c9743cce72d1f975285790b8c2f7562c38b940ab
newpavlov
2017-11-15T16:55:06
impl new BlockCipher trait
diff --git a/aesni/src/impl_traits.rs b/aesni/src/impl_traits.rs index a0c0eee..16a4ad7 100644 --- a/aesni/src/impl_traits.rs +++ b/aesni/src/impl_traits.rs @@ -1,22 +1,23 @@ use block_cipher_trait::generic_array::GenericArray; -use block_cipher_trait::generic_array::typenum::{U16, U24, U32, Unsigned}; -use block_ciph...
1
14
40
c833b8c1455662dcbfd0345f646ddac5c1a340d1
Robin Lambertz
2017-11-06T01:53:50
Update generic-array to 0.9 (#11) * Update generic-array to 0.9 * Add crypto-mac and digest to the patch section of Cargo.toml * Use generic_array from block_cipher_trait
diff --git a/Cargo.toml b/Cargo.toml index 31f1ca5..3760fae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,6 @@ members = [ [patch.crates-io] block-cipher-trait = { git = "https://github.com/RustCrypto/traits" } -crypto-tests = { git = "https://github.com/RustCrypto/utils" } \ No newline at end of file +cryp...
22
28
41
0f9a08627432e0292e4811d6d3de4a364102da12
newpavlov
2017-10-13T13:40:06
aesni docs
diff --git a/aesni/src/aes128/mod.rs b/aesni/src/aes128/mod.rs index 4464f44..8de9fb5 100644 --- a/aesni/src/aes128/mod.rs +++ b/aesni/src/aes128/mod.rs @@ -3,7 +3,7 @@ use core::mem; mod expand; -/// AES-128 block cipher instance +/// AES-128 block cipher #[derive(Copy, Clone, Debug)] pub struct Aes128 { e...
5
9
7
18d1ed89bee9dbd03cb40d6a269f84b1dcbaf2f3
newpavlov
2017-10-11T13:49:37
NIST link for test vectors
diff --git a/block-modes/tests/lib.rs b/block-modes/tests/lib.rs index e972191..1c72243 100644 --- a/block-modes/tests/lib.rs +++ b/block-modes/tests/lib.rs @@ -1,3 +1,6 @@ +//! Test vectors are from NIST "Recommendation for Block Cipher Modes of +//! Operation": +//! http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspec...
1
3
0
cdb58c0a2da4aab5adb210a0733c72c1fbcd6000
newpavlov
2017-10-06T09:54:41
Use [patch] section for testing new versions
diff --git a/Cargo.toml b/Cargo.toml index d6d4f8b..31f1ca5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,7 @@ members = [ "rc2", "twofish" ] + +[patch.crates-io] +block-cipher-trait = { git = "https://github.com/RustCrypto/traits" } +crypto-tests = { git = "https://github.com/RustCrypto/utils" } \ No ...
13
29
27
0a650fb04d94bf8c6b206e1e5d0af8e6e8b653be
newpavlov
2017-10-06T09:10:31
block modes
diff --git a/Cargo.toml b/Cargo.toml index d4615c7..d6d4f8b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [workspace] members = [ "blowfish", + "block-modes", "kuznyechik", "magma", "rc2", diff --git a/block-modes/Cargo.toml b/block-modes/Cargo.toml new file mode 100644 index 0000000...
14
496
0
ec184e58a8384133d8f2408e9f5a86ee90d41d51
Артём Павлов [Artyom Pavlov]
2017-10-06T06:15:13
new trait
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 6e2c28c..ef4ca79 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,11 +1,22 @@ [package] name = "aesni" -version = "0.1.4" +version = "0.2.0" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block ciphers im...
19
192
54
eb99cd6e4996e6297a747c1039d6474c41c80fd9
Артём Павлов [Artyom Pavlov]
2017-09-04T02:10:03
Big update to a new block cipher trait, twofish improvements
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 801803f..e783265 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -9,12 +9,12 @@ repository = "https://github.com/RustCrypto/block-ciphers" keywords = ["crypto", "blowfish", "block-cipher"] [dependencies] -generic-array = "0.5" -byte-tools = ...
20
410
364
e3077868dfdae54f52b1876fe377ea1ae3f1bbe4
Артём Павлов [Artyom Pavlov]
2017-08-06T23:04:41
aesni v0.1.4
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index a25c62e..6e2c28c 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "aesni" -version = "0.1.3" +version = "0.1.4" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" -description = "AES (Rijndael) block cipher imple...
1
2
2
35c1518e611b70bf8bff97046a10dd5316dd4310
Артём Павлов [Artyom Pavlov]
2017-08-06T22:57:08
Added check_aesni function
diff --git a/aesni/src/lib.rs b/aesni/src/lib.rs index f06eed6..f77809c 100644 --- a/aesni/src/lib.rs +++ b/aesni/src/lib.rs @@ -1,9 +1,10 @@ //! AES block cipher implementation using AES-NI instruction set. //! -//! This crate does not implement any software fallback and does not check CPUID, -//! so if you are usin...
1
22
4
60064a752cc4df0ef7c114f308c2ebbce632e64a
Артём Павлов [Artyom Pavlov]
2017-08-06T18:28:38
Removed leftover comments in aesni
diff --git a/aesni/src/lib.rs b/aesni/src/lib.rs index 38f9f63..f06eed6 100644 --- a/aesni/src/lib.rs +++ b/aesni/src/lib.rs @@ -42,12 +42,3 @@ mod u64x2; pub use aes128::Aes128; pub use aes192::Aes192; pub use aes256::Aes256; - - -// Intel AES-NI whitepaper: -// -// https://software.intel.com/sites/default/files/ar...
1
0
9
7b2d301c780541a8c374a2c073a7a45c4733fff2
Артём Павлов [Artyom Pavlov]
2017-08-06T17:18:58
aesni docs
diff --git a/aesni/src/lib.rs b/aesni/src/lib.rs index f73d95c..38f9f63 100644 --- a/aesni/src/lib.rs +++ b/aesni/src/lib.rs @@ -5,6 +5,9 @@ //! appropriate hardware or using AES-NI detection and appropriate software //! fallback. //! +//! Additionally this crate currently requires nigthly Rust compiler due to the +...
1
3
0
1cbb778ab40148e9208a1771e7230998a155c7da
Артём Павлов [Artyom Pavlov]
2017-08-06T17:14:54
aesni docs
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 48f64f6..a25c62e 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.1.2" +version = "0.1.3" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block cipher imple...
5
53
1
e68daa3c2fd796ed9c0095c71a117d5c875a0092
Артём Павлов [Artyom Pavlov]
2017-08-02T13:43:55
Small code reorganization for aesni
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index 335105b..48f64f6 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.1.1" +version = "0.1.2" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block cipher imple...
9
110
87
e2b101184572e2079d1ce51cdd498eff529a64df
Артём Павлов [Artyom Pavlov]
2017-07-31T00:09:24
Process unaligned input without panic in aesni
diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index bc897ee..335105b 100644 --- a/aesni/Cargo.toml +++ b/aesni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aesni" -version = "0.1.0" +version = "0.1.1" authors = ["RustCrypto Developers"] license = "MIT/Apache-2.0" description = "AES (Rijndael) block cipher imple...
6
60
51
0e3aed02d8b7b9d0a7cfa8e73902cd1360353995
Артём Павлов [Artyom Pavlov]
2017-07-21T07:47:32
Temporary remove aesni crate from CI testing
diff --git a/Cargo.toml b/Cargo.toml index df21197..d4615c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [workspace] members = [ - "aesni", "blowfish", "kuznyechik", "magma", diff --git a/aesni/Cargo.toml b/aesni/Cargo.toml index dc0cf7f..bc897ee 100644 --- a/aesni/Cargo.toml +++ b/aesni...
2
2
1
98b602feed94d506263d97e508a08a9abf1fd066
Артём Павлов [Artyom Pavlov]
2017-01-12T15:03:16
Kuznyechik optimizations
diff --git a/kuznyechik/Cargo.toml b/kuznyechik/Cargo.toml index bd5a5ce..2797268 100644 --- a/kuznyechik/Cargo.toml +++ b/kuznyechik/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kuznyechik" -version = "0.1.0" +version = "0.1.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" descriptio...
3
35
75
bdfdc3d8f788cf68b46f6c32449fa65075ba5006
Артём Павлов [Artyom Pavlov]
2017-01-12T14:36:46
Kuznyechik optimizations
diff --git a/kuznyechik/src/consts.rs b/kuznyechik/src/consts.rs index 5b183ad..1180670 100644 --- a/kuznyechik/src/consts.rs +++ b/kuznyechik/src/consts.rs @@ -49,8 +49,9 @@ pub const GF: [[u8; 256]; 7] = [ [0, 251, 53, 206, 106, 145, 95, 164, 212, 47, 225, 26, 190, 69, 139, 112, 107, 144, 94, 165, 1, 250, 52, 20...
3
96
121
6268d2228991efb6d89a230af6d4e40df14b0398
Артём Павлов [Artyom Pavlov]
2017-01-12T13:38:28
Kuznyechik optimizations
diff --git a/kuznyechik/benches/lib.rs b/kuznyechik/benches/lib.rs index 50bb846..7907082 100644 --- a/kuznyechik/benches/lib.rs +++ b/kuznyechik/benches/lib.rs @@ -14,11 +14,13 @@ use generic_array::GenericArray; pub fn encrypt(bh: &mut Bencher) { let key = Default::default(); let state = kuznyechik::Kuznye...
3
87
42
2549d999cb8af4754d659596b05ae04889ad60f7
Артём Павлов [Artyom Pavlov]
2017-01-11T06:19:07
Description fix
diff --git a/magma/Cargo.toml b/magma/Cargo.toml index 2c5faf2..f0d3902 100644 --- a/magma/Cargo.toml +++ b/magma/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "magma" -version = "0.1.0" +version = "0.1.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" -description = "Blowfish block ciphe...
1
2
2
33cb22a26dbf93067891bb7ab690f42c82282ef6
Артём Павлов [Artyom Pavlov]
2016-12-24T23:30:37
Updated trait crate to generic-array 0.6
diff --git a/utils/block-cipher-trait/Cargo.toml b/utils/block-cipher-trait/Cargo.toml index 40f6b6d..3e08178 100644 --- a/utils/block-cipher-trait/Cargo.toml +++ b/utils/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.2.0" +version = "0.3.0" authors = ["The Rust-Cry...
1
2
2
2b6bd7042efdf5156bbd408d7295fc3db87a2f8b
Артём Павлов [Artyom Pavlov]
2016-12-16T16:14:58
Blowfish updates
diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml index 5191c73..801803f 100644 --- a/blowfish/Cargo.toml +++ b/blowfish/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "blowfish" -version = "0.1.0" +version = "0.2.1" authors = ["The Rust-Crypto Project Developers"] license = "MIT/Apache-2.0" description = "Blowf...
3
13
12
e85cde09df2ee79701d072de6a3dcc1f59ce5c39
Артём Павлов [Artyom Pavlov]
2016-12-16T15:24:22
Updated block-cipher-trait
diff --git a/utils/block-cipher-trait/Cargo.toml b/utils/block-cipher-trait/Cargo.toml index 51356b0..40f6b6d 100644 --- a/utils/block-cipher-trait/Cargo.toml +++ b/utils/block-cipher-trait/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "block-cipher-trait" -version = "0.1.0" +version = "0.2.0" authors = ["The Rust-Cry...
2
29
3
7ec73f4313a80faa14ecf064db28712376dc41b9
Ian Douglas Scott
2025-12-17T20:41:51
sources/channel: Ping on drop of last instance of `SyncSender` Presumably this should behave like `Sender`, but only ping once all clones have been dropped. This should achieve that.
diff --git a/src/sources/channel.rs b/src/sources/channel.rs index 4ceee04..fc84fea 100644 --- a/src/sources/channel.rs +++ b/src/sources/channel.rs @@ -11,7 +11,7 @@ use std::cmp; use std::fmt; use std::ops; -use std::sync::mpsc; +use std::sync::{mpsc, Arc}; use crate::{EventSource, Poll, PostAction, Readiness, ...
1
5
3
893761eb493e116bc542c111f474a3d028c55d2e
Ian Douglas Scott
2025-12-17T20:39:49
sources/channel: Use a `PingOnDrop` helper I believe previous there is a theoretically possible race, since the `.ping()` call would have happened before the `mpsc::Sender` was dropped.
diff --git a/src/sources/channel.rs b/src/sources/channel.rs index 49f439e..4ceee04 100644 --- a/src/sources/channel.rs +++ b/src/sources/channel.rs @@ -10,6 +10,7 @@ use std::cmp; use std::fmt; +use std::ops; use std::sync::mpsc; use crate::{EventSource, Poll, PostAction, Readiness, Token, TokenFactory}; @@ -3...
1
23
10
327c073fc7c324b57f597b010cd5b702bbdb634b
Christian Meissl
2026-02-10T10:55:56
timer: remove Option from stored token now that we always clean-up cancelled timers right away there is no longer a need to store the token in an Option.
diff --git a/src/sources/timer.rs b/src/sources/timer.rs index 062dc9d..1122fb5 100644 --- a/src/sources/timer.rs +++ b/src/sources/timer.rs @@ -190,7 +190,7 @@ pub enum TimeoutAction { #[derive(Debug)] struct TimeoutData { deadline: Instant, - token: RefCell<Option<Token>>, + token: Token, counter: u...
1
8
21
16f52fa637ff677db7055a9d99147f23952120fc
Christian Meissl
2026-02-10T11:21:09
fix missing lifetime definition on windows build
diff --git a/src/sources/generic.rs b/src/sources/generic.rs index 79709ae..ce59640 100644 --- a/src/sources/generic.rs +++ b/src/sources/generic.rs @@ -90,7 +90,7 @@ impl<T: AsRawFd> AsFd for FdWrapper<T> { } #[cfg(windows)] - fn as_socket(&self) -> BorrowedFd { + fn as_socket(&self) -> BorrowedFd<'_...
1
1
1
4df2907cf897a618c1f35158587d311181d4e516
John Nunley
2026-02-12T03:34:04
Allow dead code for dummy source Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/src/loop_logic.rs b/src/loop_logic.rs index 1251227..2db5c20 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -1736,6 +1736,7 @@ mod tests { } // A dummy EventSource to test insertion and removal of sources + #[allow(dead_code)] struct DummySource; impl crate::EventSourc...
1
1
0
ab7bfd607c3f0b07b0438d78f245d9f6ec769aa7
John Nunley
2026-02-12T03:31:58
Fix new Clippy issues Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/src/sources/generic.rs b/src/sources/generic.rs index 9f98fea..79709ae 100644 --- a/src/sources/generic.rs +++ b/src/sources/generic.rs @@ -85,7 +85,7 @@ impl<T: AsRawFd> ops::DerefMut for FdWrapper<T> { impl<T: AsRawFd> AsFd for FdWrapper<T> { #[cfg(unix)] - fn as_fd(&self) -> BorrowedFd { + ...
4
9
8
901520c29eac143e7cd06a2959ce8245bd5e7ccc
Ian Douglas Scott
2025-07-29T16:27:45
Add a unit test for `StreamSource` using a channel
diff --git a/src/sources/stream.rs b/src/sources/stream.rs index dff0f08..c0d6f44 100644 --- a/src/sources/stream.rs +++ b/src/sources/stream.rs @@ -27,6 +27,7 @@ impl Wake for PingWaker { self.0.ping(); } + #[cfg_attr(feature = "nightly_coverage", coverage(off))] fn wake_by_ref(self: &Arc<Self>...
1
41
0
af41b38d83247f02b26aff2ac0abda06b5e4c97c
Ian Douglas Scott
2025-06-19T16:00:47
Add `StreamSource` to adapt an async `Stream` to an `EventSource` Async `Stream`s are logically quite similar an `EventSource`, though not tied to fd polling. So it's quite natural to insert a stream as a calloop source, and then have a callback handle any value yielded by the stream. This behaves similarly to the `Ch...
diff --git a/Cargo.toml b/Cargo.toml index 5e85f24..66110e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ codecov = { repository = "Smithay/calloop" } [dependencies] async-task = { version = "4.4.0", optional = true } bitflags = "2.4" +futures-core = { version = "0.3.31", optional = true } futures-io =...
3
147
1
87585bdf6bd71e7ec1749d00ab2ca4dfbe04c7c9
Ian Douglas Scott
2025-06-17T23:33:17
source/futures: Fix handling of `notified` atomic Previously, `notified` was cleared before the `self.source.process_events` call. This meant that it was cleared before reading from the ping source eventfd/pipe. This means that a call to `send()` form a waker in a different thread could call `ping()` before this has ...
diff --git a/src/sources/futures.rs b/src/sources/futures.rs index 553f131..4a42449 100644 --- a/src/sources/futures.rs +++ b/src/sources/futures.rs @@ -309,15 +309,15 @@ impl<T> EventSource for Executor<T> { { let state = &self.state; - // Set to the unnotified state. - state.sender.notif...
1
3
3
a30f8469d948a972fd4c28d6c741cfef5312feff
John Nunley
2025-07-30T02:28:29
Bump dependencies - Bump rustix to v1 - Bump nix to v0.30 Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/Cargo.toml b/Cargo.toml index 6e70b29..3d3f16b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,16 +24,16 @@ bitflags = "2.4" futures-io = { version = "0.3.5", optional = true } pin-utils = { version = "0.1.0", optional = true } polling = "3.0.0" -rustix = { version = "0.38", default-features = false, fe...
2
4
4
84bd2834c2801b610b6c98ad06d3d6095e06aacb
Nathan Lilienthal
2025-01-23T22:52:36
Fix grammar mistake in warning
diff --git a/src/loop_logic.rs b/src/loop_logic.rs index fac8355..3b94918 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -602,7 +602,7 @@ impl<'l, Data> EventLoop<'l, Data> { } } } else { - warn!(?reg_token, "Received an event for non-existenc...
1
1
1
8225b69c92bc2928d15f10b3c6183527fde9564a
Ha
2025-01-13T00:04:14
m: Implement `Clone` and `Default` for `WeakLoopHandle` manually The derived `Clone`/`Default` implementation adds `Clone`/`Default` bound on the generic parameter `Data`.
diff --git a/src/loop_logic.rs b/src/loop_logic.rs index f6971ba..fac8355 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -67,7 +67,6 @@ pub struct LoopHandle<'l, Data> { } /// Weak variant of a [`LoopHandle`] -#[derive(Clone, Default)] pub struct WeakLoopHandle<'l, Data> { inner: Weak<LoopInner<'l,...
1
27
1
ba9ed5344a2e2962885c1173afe98396d22d94da
Ha
2025-01-12T03:23:09
feat: Add WeakLoopHandle This commit introduces WeakLoopHandle to avoid reference cycles. Closes https://github.com/Smithay/calloop/issues/212
diff --git a/src/loop_logic.rs b/src/loop_logic.rs index cc889ff..f6971ba 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -1,6 +1,6 @@ use std::cell::{Cell, RefCell}; use std::fmt::Debug; -use std::rc::Rc; +use std::rc::{Rc, Weak}; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use st...
1
96
11
4bd9182b4b092f5905dba78f317646ad4afd82a8
John Nunley
2025-01-10T03:56:07
m: Elide lifetimes that can be implicit Pleases clippy. Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/doc/src/zmqsource.rs b/doc/src/zmqsource.rs index cb57af7..65495d9 100644 --- a/doc/src/zmqsource.rs +++ b/doc/src/zmqsource.rs @@ -40,7 +40,6 @@ use anyhow::Context; /// messages over the same writeable ZeroMQ socket (usually PUB or PUSH). /// Messages should be sent over the Calloop MPSC channel sendin...
5
19
20
5c900986646f0e5398e7ae03d50f4e8d1102d524
keno (Ken Okada)
2024-11-21T20:14:16
refactor: Simplify timeout calculation in Poll::poll()
diff --git a/src/sys.rs b/src/sys.rs index 2efe6ab..e56a140 100644 --- a/src/sys.rs +++ b/src/sys.rs @@ -1,4 +1,10 @@ -use std::{cell::RefCell, collections::HashMap, rc::Rc, sync::Arc, time::Duration}; +use std::{ + cell::RefCell, + collections::HashMap, + rc::Rc, + sync::Arc, + time::{Duration, Instant}...
1
16
13
8d11455ae8f4e8285bf33df669783f87d9b598f2
Ian Douglas Scott
2024-09-06T02:11:39
channel: Return `PostAction::Remove` on disconnect It seems 86c6713 broke this. By maintaining a copy of `Ping`, the ping source will never return `PostAction::Remove`.
diff --git a/src/sources/channel.rs b/src/sources/channel.rs index c01407c..49f439e 100644 --- a/src/sources/channel.rs +++ b/src/sources/channel.rs @@ -211,6 +211,7 @@ impl<T> EventSource for Channel<T> { let receiver = &self.receiver; let capacity = self.capacity; let mut clear_readiness = ...
1
5
2
5ba1370609f3f58a78354b3be77c2c6fdc38afc5
John Nunley
2024-08-10T15:10:59
m: Fix indent in doc comment This silences clippy. Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/src/loop_logic.rs b/src/loop_logic.rs index 43cd621..a1c5eba 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -705,9 +705,10 @@ impl<Data> AsHandle for EventLoop<'_, Data> { /// The EventIterator is an `Iterator` over the events relevant to a particular source /// This type is used in the [`Even...
1
2
1
ac7e5e74d4a20aac83a9acc9df3477b4c10f3d3b
Daniel Fox Franke
2024-07-29T15:21:55
Make `Generic` `UnwindSafe` even if its error type isn't `std::io::Error` does not implement `UnwindSafe` on account of its ability to wrap a `Box<dyn Error + Send + Sync>`. This infects `Generic` which in turn infects `Channel`, which is inconvenient because it means you can't construct a channel pair, pass the rece...
diff --git a/src/sources/generic.rs b/src/sources/generic.rs index 4a76051..9f98fea 100644 --- a/src/sources/generic.rs +++ b/src/sources/generic.rs @@ -42,7 +42,7 @@ //! [`EventSource`](crate::EventSource) implementation to them. use polling::Poller; -use std::{borrow, marker::PhantomData, ops, sync::Arc}; +use st...
1
2
2
86c6713980ce08e3b2111efb9056aca9fd5f8d9f
John Nunley
2024-07-21T16:31:48
bugfix: Use a different strategy for yielding Previously, we only processed the source in the channel/executor implementations when we needed to clear the readiness; however this causes issues in the Windows `Ping` implementation. As a workaround, this commit always calls "process_events" in `Ping`, but simply re-noti...
diff --git a/src/sources/channel.rs b/src/sources/channel.rs index 9127596..c01407c 100644 --- a/src/sources/channel.rs +++ b/src/sources/channel.rs @@ -126,6 +126,7 @@ impl<T> SyncSender<T> { pub struct Channel<T> { receiver: mpsc::Receiver<T>, source: PingSource, + ping: Ping, capacity: usize, } ...
2
89
67
7f156ba9c5ead05b2e0a565a8b351423635ad813
John Nunley
2024-07-21T04:38:22
tests: Add 1025 future test to executor Signed-off-by: John Nunley <dev@notgull.net>
diff --git a/src/sources/futures.rs b/src/sources/futures.rs index ea2b4e5..9a61198 100644 --- a/src/sources/futures.rs +++ b/src/sources/futures.rs @@ -405,6 +405,9 @@ impl std::error::Error for ExecutorError {} mod tests { use super::*; + use std::cell::RefCell; + use std::rc::Rc; + #[test] fn...
1
34
0