mpiraux / draft-piraux-tcpls

Other
0 stars 0 forks source link

Padding Frame #8

Open frochet opened 3 years ago

frochet commented 3 years ago

I am not sure to understand why Padding Frame has no content.

How can we specify sending a record of N bytes that are just padding? We would need a Length field in Padding frame, no?

mpiraux commented 3 years ago

Repeat the zeroes, which is the frame type.

frochet commented 3 years ago

Woh. That's going to be way too costly to unpack. A length is more appropriate.

obonaventure commented 3 years ago

a padding with length would make sense

frochet commented 2 years ago

There's a third direction that could also be investigated. AEAD ciphers already provide padding capabilities, and it might be possible to instrument them to add padding.

The advantage would be that the padding would be removed during the decryption, and not to be handled by the TCPLS implementation at the receiver side, leading to a slight speedup. However, as of now, I am not entirely sure this could work seamlessly.