diff --git a/Cargo.lock b/Cargo.lock index 673a328..d0f664c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,9 +39,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1" [[package]] name = "block-buffer" -version = "0.11.0-rc.5" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9ef36a6fcdb072aa548f3da057640ec10859eb4e91ddf526ee648d50c76a949" +checksum = "96eb4cdd6cf1b31d671e9efe75c5d1ec614776856cefbe109ca373554a6d514f" dependencies = [ "hybrid-array", "zeroize", @@ -49,9 +49,9 @@ dependencies = [ [[package]] name = "block-padding" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d28ed5f5f65056148fd25e1a596b5b6d9e772270abf9a9085d7cbfbf26c563" +checksum = "710f1dd022ef4e93f8a438b4ba958de7f64308434fa6a87104481645cc30068b" dependencies = [ "hybrid-array", ] @@ -92,9 +92,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" [[package]] name = "cipher" -version = "0.5.0-rc.2" +version = "0.5.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "155e4a260750fa4f7754649f049748aacc31db238a358d85fd721002f230f92f" +checksum = "98d708bac5451350d56398433b19a7889022fa9187df1a769c0edbc3b2c03167" dependencies = [ "blobby", "block-buffer", @@ -114,9 +114,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.5" +version = "0.2.0-rc.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919bd05924682a5480aec713596b9e2aabed3a0a6022fab6847f85a99e5f190a" +checksum = "e6165b8029cdc3e765b74d3548f85999ee799d5124877ce45c2c85ca78e4d4aa" dependencies = [ "hybrid-array", ] diff --git a/belt-ctr/Cargo.toml b/belt-ctr/Cargo.toml index bbed96b..35e534e 100644 --- a/belt-ctr/Cargo.toml +++ b/belt-ctr/Cargo.toml @@ -13,13 +13,13 @@ keywords = ["crypto", "block-mode", "stream-cipher", "ciphers", "belt"] categories = ["cryptography", "no-std"] [dependencies] -cipher = { version = "0.5.0-rc.2", features = ["stream-wrapper"] } +cipher = { version = "0.5.0-rc.3", features = ["stream-wrapper"] } belt-block = "0.2.0-rc.2" [dev-dependencies] hex-literal = "1" belt-block = "0.2.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } [features] alloc = ["cipher/alloc"] diff --git a/cbc/Cargo.toml b/cbc/Cargo.toml index 11c30fb..507e6ef 100644 --- a/cbc/Cargo.toml +++ b/cbc/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "block-mode", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] aes = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/cfb-mode/Cargo.toml b/cfb-mode/Cargo.toml index 41ea50b..f5c0536 100644 --- a/cfb-mode/Cargo.toml +++ b/cfb-mode/Cargo.toml @@ -13,12 +13,12 @@ keywords = ["crypto", "block-mode", "stream-cipher", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] aes = "0.9.0-rc.2" belt-block = "0.2.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/cfb8/Cargo.toml b/cfb8/Cargo.toml index 4053a3d..04d16de 100644 --- a/cfb8/Cargo.toml +++ b/cfb8/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "block-mode", "stream-cipher", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] aes = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml index 3f6e038..1eb3fe0 100644 --- a/ctr/Cargo.toml +++ b/ctr/Cargo.toml @@ -13,13 +13,13 @@ keywords = ["crypto", "block-mode", "stream-cipher", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = { version = "0.5.0-rc.2", features = ["stream-wrapper"] } +cipher = { version = "0.5.0-rc.3", features = ["stream-wrapper"] } [dev-dependencies] aes = "0.9.0-rc.2" magma = "0.10.0-rc.2" kuznyechik = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs index 20def28..d535f74 100644 --- a/ctr/src/lib.rs +++ b/ctr/src/lib.rs @@ -45,14 +45,12 @@ //! // encrypt/decrypt from buffer to buffer //! // buffer length must be equal to input length //! let mut buf1 = [0u8; 34]; -//! cipher -//! .apply_keystream_b2b(&plaintext, &mut buf1) -//! .unwrap(); +//! cipher.apply_keystream_b2b(&plaintext, &mut buf1); //! assert_eq!(buf1[..], ciphertext[..]); //! //! let mut buf2 = [0u8; 34]; //! cipher.seek(0u32); -//! cipher.apply_keystream_b2b(&buf1, &mut buf2).unwrap(); +//! cipher.apply_keystream_b2b(&buf1, &mut buf2); //! assert_eq!(buf2[..], plaintext[..]); //! ``` //! diff --git a/cts/Cargo.toml b/cts/Cargo.toml index 0febd6c..6cfcdf9 100644 --- a/cts/Cargo.toml +++ b/cts/Cargo.toml @@ -13,10 +13,10 @@ keywords = ["crypto", "block-mode", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" aes = "0.9.0-rc.2" belt-block = "0.2.0-rc.2" diff --git a/ige/Cargo.toml b/ige/Cargo.toml index befda2a..487f3c0 100644 --- a/ige/Cargo.toml +++ b/ige/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "block-mode", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] aes = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/ofb/Cargo.toml b/ofb/Cargo.toml index bf02f77..3438f39 100644 --- a/ofb/Cargo.toml +++ b/ofb/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "block-mode", "stream-cipher", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = { version = "0.5.0-rc.2", features = ["stream-wrapper"] } +cipher = { version = "0.5.0-rc.3", features = ["stream-wrapper"] } [dev-dependencies] aes = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features] diff --git a/ofb/src/lib.rs b/ofb/src/lib.rs index cb4f0e7..bce6f81 100644 --- a/ofb/src/lib.rs +++ b/ofb/src/lib.rs @@ -43,14 +43,12 @@ //! // buffer length must be equal to input length //! let mut buf1 = [0u8; 34]; //! let mut cipher = Aes128Ofb::new(&key.into(), &iv.into()); -//! cipher -//! .apply_keystream_b2b(&plaintext, &mut buf1) -//! .unwrap(); +//! cipher.apply_keystream_b2b(&plaintext, &mut buf1); //! assert_eq!(buf1[..], ciphertext[..]); //! //! let mut buf2 = [0u8; 34]; //! let mut cipher = Aes128Ofb::new(&key.into(), &iv.into()); -//! cipher.apply_keystream_b2b(&buf1, &mut buf2).unwrap(); +//! cipher.apply_keystream_b2b(&buf1, &mut buf2); //! assert_eq!(buf2[..], plaintext[..]); //! ``` //! diff --git a/pcbc/Cargo.toml b/pcbc/Cargo.toml index 0b13a0a..7ef0873 100644 --- a/pcbc/Cargo.toml +++ b/pcbc/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "block-mode", "ciphers"] categories = ["cryptography", "no-std"] [dependencies] -cipher = "0.5.0-rc.2" +cipher = "0.5.0-rc.3" [dev-dependencies] aes = "0.9.0-rc.2" -cipher = { version = "0.5.0-rc.2", features = ["dev"] } +cipher = { version = "0.5.0-rc.3", features = ["dev"] } hex-literal = "1" [features]