Skip to content

tls_codec: revert serde_bytes for VLBytes and add VLByteVec#2322

Open
kkohbrok wants to merge 3 commits intoRustCrypto:masterfrom
kkohbrok:konrad/vlbytevec
Open

tls_codec: revert serde_bytes for VLBytes and add VLByteVec#2322
kkohbrok wants to merge 3 commits intoRustCrypto:masterfrom
kkohbrok:konrad/vlbytevec

Conversation

@kkohbrok
Copy link
Copy Markdown
Contributor

@franziskuskiefer franziskuskiefer self-requested a review April 29, 2026 12:25
Copy link
Copy Markdown
Contributor

@boxdot boxdot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This is a good change allowing to use the old building blocks and to use the new building blocks with the old data.

Comment thread tls_codec/src/quic_vec.rs
feature = "serde",
serde(deserialize_with = "serde_compat::deserialize_vlbytes_compat")
)]
vec: Vec<u8>,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification with serde(transparent).

Comment thread tls_codec/src/quic_vec.rs
Comment on lines +381 to +386
#[cfg(feature = "std")]
impl Zeroize for VLByteVec {
fn zeroize(&mut self) {
self.vec.zeroize();
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I am not mistaken, Zeroize should be only implemented for VLSecretByteVec, right?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah no. This just allows to zeroize the vec, but does not do it automatically on drop.

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