Skip to content

Conversation

@newpavlov
Copy link
Member

@newpavlov newpavlov commented Dec 19, 2022

Depends on RustCrypto/traits#1172

The BlockSizes change is introduced to work around the leaky bounds problem.

Added

  • ReadBuffer type
  • serialize and deserialize methods

Changed

  • Supported block sizes are now bounded by the crypto_common::BlockSizes trait, which is implemented for types from U1 to U255
  • Size of EagerBuffer is equal to buffer size, while previously it was equal to buffer size plus one byte.
  • MSRV bumped to 1.56

Removed

  • EagerBuffer::set_data method. Use the ReadBuffer type instead.

@newpavlov newpavlov requested a review from tarcieri December 19, 2022 13:08
@newpavlov newpavlov changed the title hex-literal v0.11 block-buffer v0.11 Dec 19, 2022
@newpavlov newpavlov merged commit eb01b62 into master Dec 19, 2022
@newpavlov newpavlov deleted the hex_literal_0.11 branch December 19, 2022 17:22
newpavlov added a commit that referenced this pull request Nov 7, 2025
### Added
- `ReadBuffer` type ([#823])
- Optional implementation of the `Zeroize` trait ([#963])
- Generic `serialize` and `deserialize` methods ([#1200])
- `ReadBuffer::{read_cached, write_block, reset}` methods ([#1201])

### Changed
- Block sizes must be bigger than 0 and smaller than 256.
  This is enforced using compile-time monomorphization errors. ([#1115])
- Size of `EagerBuffer` is equal to buffer size, while previously it was
equal
  to buffer size plus one byte ([#823])
- Edition changed to 2024 and MSRV bumped to 1.85 ([#1149])

### Removed
- `EagerBuffer::set_data` method. Use the `ReadBuffer` type instead.
([#823])

[#823]: #823
[#963]: #963
[#1115]: #1115
[#1115]: #1116
[#1149]: #1149
[#1200]: #1200
[#1201]: #1201
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.

2 participants