Skip to content

cipher: use block_buffer::ReadBuffer in StreamCipherCoreWrapper#1959

Merged
newpavlov merged 7 commits intomasterfrom
cipher/read_buf
Aug 15, 2025
Merged

cipher: use block_buffer::ReadBuffer in StreamCipherCoreWrapper#1959
newpavlov merged 7 commits intomasterfrom
cipher/read_buf

Conversation

@newpavlov
Copy link
Member

@newpavlov newpavlov commented Aug 13, 2025

This simplifies the wrapper code and allows to mark the cipher crate with #![forbid(unsafe_code)].

Depends on RustCrypto/utils#1201

@newpavlov newpavlov requested a review from tarcieri August 13, 2025 14:57
@newpavlov newpavlov merged commit 079b4ab into master Aug 15, 2025
74 checks passed
@newpavlov newpavlov deleted the cipher/read_buf branch August 15, 2025 01:44
tarcieri added a commit that referenced this pull request Sep 2, 2025
Removed in #1959 but there are definitely still quite a few usages and I
don't see ways to completely replace all of them with `KeyIvInit`
(though that seems ideal).

See RustCrypto/AEADs#710
tarcieri added a commit that referenced this pull request Sep 2, 2025
Removed in #1959 but there are definitely still quite a few usages and I
don't see ways to completely replace all of them with `KeyIvInit`
(though that seems ideal).

See RustCrypto/AEADs#710
@tarcieri tarcieri mentioned this pull request Feb 4, 2026
tarcieri added a commit that referenced this pull request Feb 4, 2026
### Added
- Traits for tweakable block ciphers (#1721)
- Methods for writing keystream (#1907)

### Changed
- Replaced `generic-array` with `hybrid-array` (#1358)
- Rename `BlockCipher*`/`BlockMode*` (#1482)
  - `BlockEncrypt` => `BlockCipherEncrypt`
  - `BlockDecrypt` => `BlockCipherDecrypt`
  - `BlockEncryptMut` => `BlockModeEncrypt`
  - `BlockDecryptMut` => `BlockModeDecrypt`
- Split `BlockBackend` traits into 4 specific traits: (#1636)
  - `BlockCipherEncBackend`
  - `BlockCipherDecBackend`
  - `BlockModeEncBackend`
  - `BlockModeDecBackend`
- Edition changed to 2024 and MSRV bumped to 1.85 (#1759)
- Use `block_buffer::ReadBuffer` in `StreamCipherCoreWrapper` (#1959)
- Re-export of `crypto-common` moved to `cipher::common` (#2237, #2260)
- `crypto-common` dependency bumped to v0.2 (#2276)
- `blobby` requirement bumped to v0.4 (#2147)
- `inout` dependency bumped to v0.2.2 (#2149)

### Fixed
- Bugs in `StreamCipherCoreWrapper` trait implementations (#1421)
- Seeking implementation in the stream cipher wrapper (#2052)

### Removed
- `std` feature (#1691)
- `BlockCipherEncrypt::encrypt_padded*` and
`BlockCipherDecrypt::decrypt_padded*` methods.
Users of the ECB mode should use the `ecb-mode` crate instead. (#2245)
- `AsyncStreamCipher` trait (#2280)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant