Skip to content

tls_codec: add transparent VLBytes version#2267

Closed
kkohbrok wants to merge 3 commits into
RustCrypto:masterfrom
kkohbrok:konrad/transparent_vlbytes
Closed

tls_codec: add transparent VLBytes version#2267
kkohbrok wants to merge 3 commits into
RustCrypto:masterfrom
kkohbrok:konrad/transparent_vlbytes

Conversation

@kkohbrok

@kkohbrok kkohbrok commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

This PR adds a version of VLBytes called VLBytesFlat (I'm open to suggestions for a better name).

In contrast to VLBytes, VLBytesFlat is serde transparent. It can be used as a drop-in replacement for VLBytes and will deserialize instances of VLBytes correctly. As such, it can be used as a backwards-compatible drop-in.

I didn't make the change directly to VLBytes to not break applications such as OpenMLS that use VLBytes as keys for lookups.

@franziskuskiefer

Copy link
Copy Markdown
Contributor

@kkohbrok did you want to pick this up again at some point?

@kkohbrok

Copy link
Copy Markdown
Contributor Author

Thanks for the reminder! This has effectively been resolved by #2322.

@kkohbrok kkohbrok closed this Jun 29, 2026
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