Account for full-word paddings in roundtrip tests

This commit is contained in:
Alexey
2026-06-14 19:38:54 +03:00
parent 2e26bfb86e
commit 04b8d8365c
3 changed files with 29 additions and 4 deletions
+2 -1
View File
@@ -331,7 +331,8 @@ where
)
.await?;
// Secure Intermediate: strip validated trailing padding bytes.
// Secure Intermediate strips only non-aligned tail padding; full-word
// padding is indistinguishable from payload in VersionD framing.
if proto_tag == ProtoTag::Secure {
payload.truncate(secure_payload_len);
}