Skip to content

Comments

block-buffer: add BlockSizes trait and use it in buffer bounds#1455

Merged
newpavlov merged 4 commits intomasterfrom
block-buffer/block-sizes
Feb 24, 2026
Merged

block-buffer: add BlockSizes trait and use it in buffer bounds#1455
newpavlov merged 4 commits intomasterfrom
block-buffer/block-sizes

Conversation

@newpavlov
Copy link
Member

The trait was previously defined in crypto-common, but it will be removed (see RustCrypto/traits#2304) and we previously did not use it because of the circular dependency between repositories.

@newpavlov newpavlov merged commit 730762f into master Feb 24, 2026
11 checks passed
@newpavlov newpavlov deleted the block-buffer/block-sizes branch February 24, 2026 01:45
newpavlov added a commit that referenced this pull request Feb 24, 2026
### Added
- `BlockSizes` trait implemented for sizes bigger than `U0` and smaller
than `U256` ([#1455])

### Changed
- Block sizes used by `BlockBuffer` and `ReadBuffer` are now bound by
`BlockSizes` ([#1455])

[#1455]: #1455
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