[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[TLS] Record layer padding
I am trying to become thoroughly familiar with the TLS
specification, and I have reached a point at which I have a doubt that
the spec does not seem to dispel. Or, if it does, I have been unable
to find where. My apologies in advance for that.
My questions are to do with record layer padding. The spec
describes how to do it when using a block cipher. What is not clear
from the spec is the following:
What happens when the length of the record layer data to be
encrypted happens to be a multiple of the block cipher's block size?
Does one have to add a padding block the same size as the cipher's
block size, or is one to set the closing padding length byte to zero,
without adding any explicit padding? I'd be inclined to do the former,
but I do not know if this is what the spec intended.
Also, what happens to record layers put together before encryption
kicks in? Is one supposed not to use the padding length byte at all?
That's what I would do myself but, again, I am not sure.
Any feedback will be most welcome.
_______________________________________________
TLS mailing list
TLS@xxxxxxxxxxxxxx
https://www1.ietf.org/mailman/listinfo/tls