Skip to content

tls_codec: add transparent VLBytes version#2267

Draft
kkohbrok wants to merge 1 commit intoRustCrypto:masterfrom
kkohbrok:konrad/transparent_vlbytes
Draft

tls_codec: add transparent VLBytes version#2267
kkohbrok wants to merge 1 commit intoRustCrypto:masterfrom
kkohbrok:konrad/transparent_vlbytes

Conversation

@kkohbrok
Copy link
Copy Markdown
Contributor

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

In contrast to VLBytes, Bytes 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.

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