Skip to content

Add bytes feature passthrough - #631

Merged
tarcieri merged 1 commit into
RustCrypto:masterfrom
davepollack:add-bytes-passthrough
Sep 27, 2024
Merged

Add bytes feature passthrough#631
tarcieri merged 1 commit into
RustCrypto:masterfrom
davepollack:add-bytes-passthrough

Conversation

@davepollack

Copy link
Copy Markdown
Contributor

This allows you to use a BytesMut as a Buffer with chacha20poly1305 (or other AEADs) by only including chacha20poly1305 in your Cargo.toml and not also having to include aead in your Cargo.toml. This is similar to how heapless and arrayvec currently have feature passthroughs.

Fixes#600

@tarcieri
tarcieri merged commit add6b76 into RustCrypto:masterSep 27, 2024
@davepollack
davepollack deleted the add-bytes-passthrough branch September 28, 2024 08:46
This was referenced Jun 27, 2026
tarcieri added a commit that referenced this pull request Jun 28, 2026
## Added
- `bytes` feature passthrough (#631)
- Support for 32-bit and 64-bit tags under `hazmat` feature (#777)
## Changed
- Bump `aead` from `0.5` to `0.6` (#583)
- Bump `aes` from `0.8` to `0.9` (#583)
- Bump `cipher` from `0.4` to `0.5` (#583)
- Bump `ctr` from `0.9` to `0.10` (#583)
- Bump `ghash` from `0.5` to `0.6` (#583)
- Edition changed to 2024 and MSRV bumped to 1.85 (#662)
- Relax MSRV policy and allow MSRV bumps in patch releases
- `getrandom` feature renamed as `os_rng` (#662)
## Fixed
- `P_MAX` and `A_MAX` constants; plaintext and AAD length checks (#762)
## Removed
- `std` & `stream` features (#662)
- `C_MAX` constant (#762)
tarcieri added a commit that referenced this pull request Jun 28, 2026
## Added
- `bytes` feature passthrough (#631)
## Changed
- Bump `aead` from `0.5` to `0.6` (#831)
- Bump `chacha20` from `0.9` to `0.10` (#796)
- Bump `cipher` from `0.4` to `0.5` (#583)
- Bump `poly1305` from `0.8` to `0.9` (#823)
- Edition changed to 2024 and MSRV bumped to 1.85 (#662)
- Relax MSRV policy and allow MSRV bumps in patch releases
## Removed
- `std` and `stream` features (#662)
@tarcieritarcieri mentioned this pull request Aug 4, 2026
tarcieri added a commit that referenced this pull request Aug 4, 2026
## Added
- `rand_core` feature (#467)
- `arrayvec` feature (#503)
- Re-export `aes` crate (#603)
- `bytes` feature passthrough (#631)
- `zeroize` feature - previously on-by-default (#644)
## Changed
- `zeroize` feature now must be explicitly enabled (#644)
- Upgrade to 2024 edition and bump MSRV to 1.85 (#662)
- Migrate to `AeadInOut` (#665)
- Bump `cipher` to v0.5 (#793)
- Bump `aes` to v0.9 (#821)
- Bump `polyval` to v0.7 (#821)
- Bump `aead` to v0.6 (#831)
@tarcieritarcieri mentioned this pull request Aug 11, 2026
tarcieri added a commit that referenced this pull request Aug 11, 2026
## Added
- `rand_core` feature (#467)
- `arrayvec` feature (#503)
- `bytes` feature (#631)
## Changed
- 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)
- Bump `cipher` to v0.5 (#793)
- Bump `aes` to v0.9 (#821)
- Bump `ctr` to v0.10 (#821)
- Bump `aead` to v0.6 (#831)
## Removed
- `std` and `stream` features (#662)
@tarcieritarcieri mentioned this pull request Aug 11, 2026
tarcieri added a commit that referenced this pull request Aug 11, 2026
## Added
- `rand_core` feature (#467)
- `arrayvec` feature (#503)
- `bytes` feature (#631)
## Changed
- Edition changed to 2024 and MSRV bumped to 1.85 (#662)
- Relax MSRV policy and allow MSRV bumps in patch releases
- Bump `cipher` to v0.5 (#793)
- Bump `aes` to v0.9 (#821)
- Bump `cmac` to v0.8 (#821)
- Bump `ctr` to v0.10 (#821)
- Bump `pmac` to v0.8 (#821)
- Bump `aead` to v0.6 (#831)
## Removed
- `std` and `stream` features (#662)
@tarcieritarcieri mentioned this pull request Aug 12, 2026
tarcieri added a commit that referenced this pull request Aug 12, 2026
## Added
- `rand_core` feature (#467)
- `arrayvec` feature (#503)
- `bytes` feature (#631)
- `zeroize` feature (#644)
## Changed
- Make `zeroize` optional (#644)
- 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)
- Bump `aes` v0.9 (#821)
- Bump `aead` to v0.6 (#831)
## Removed
- `std` and `stream` features (#662)
@tarcieritarcieri mentioned this pull request Aug 12, 2026
tarcieri added a commit that referenced this pull request Aug 12, 2026
## Added
- `rand_core` feature (#467)
- `arrayvec` feature (#503)
- `bytes` feature (#631)
## Changed
- 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)
- Bump `cipher` to v0.5 (#793)
- Bump `aes` to v0.9 (#821)
- Bump `cmac` to v0.8 (#821)
- Bump `ctr` to v0.10 (#821)
- Bump `aead` to v0.6 (#831)
## Removed
- `std` and `stream` features (#662)
@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.

bytes feature of aead is not re-exported by AEADs

2 participants

@davepollack@tarcieri