Skip to content

ocb3: switch L_TABLE_SIZE to generic parameter - #763

Merged
newpavlov merged 1 commit into
masterfrom
ocb3/generic_l_table_size
Jan 16, 2026
Merged

ocb3: switch L_TABLE_SIZE to generic parameter#763
newpavlov merged 1 commit into
masterfrom
ocb3/generic_l_table_size

Conversation

@newpavlov

Copy link
Copy Markdown
Member

This allows users to change the table size if necessary.

Additionally, fixes the off-by-one error in the length check reported in https://github.com/RustCrypto/AEADs/security/advisories/GHSA-82w3-c9gr-gp52 and properly returns error on large plaintexts/AAD instead of panicking.

@newpavlov
newpavlov merged commit bedaccd into masterJan 16, 2026
13 checks passed
@newpavlov
newpavlov deleted the ocb3/generic_l_table_size branch January 16, 2026 15:38
newpavlov added a commit that referenced this pull request Jan 16, 2026
newpavlov added a commit that referenced this pull request Jan 16, 2026
@tarcieritarcieri mentioned this pull request Aug 24, 2026
tarcieri added a commit that referenced this pull request Aug 24, 2026
## Added
- `bytes` feature (#631)
## Changed
- Use `dbl` crate (#606)
- Edition changed to 2024 and MSRV bumped to 1.85 (#662)
- Relax MSRV policy and allow MSRV bumps in patch releases
- Migrate to `AeadInOut` (#665)
- `L_TABLE_SIZE` is now a const generic parameter on `Ocb3` (#763)
- Bump `cipher` to v0.5 (#793)
- Bump `aes` to v0.9 (#793)
- Bump `ctr` to v0.10 (#793)
- Bump `aead` to v0.6 (#831)
- Replace `subtle` with `ctutils` (#879)
## Fixed
- Return error on large plaintexts or associated data instead of
panicking (#763)
## Removed
- `std` and `stream` features (#662)
Sign up for freeto 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.

3 participants

@newpavlov@tarcieri@XinGOfCloude18