mirror of
https://github.com/telemt/telemt.git
synced 2026-07-01 15:21:09 +03:00
Account for full-word paddings in roundtrip tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user