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:master Sep 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)
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.

bytes feature of aead is not re-exported by AEADs

2 participants