chiark / gitweb /
transform: Do not look at any bytes of PKCS#5 padding other than the last
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 Jul 2013 17:30:47 +0000 (18:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 Jul 2013 17:30:47 +0000 (18:30 +0100)
commit46008a7c3e56df88d06087d26cb9ddc197933589
tree232799ea4fdf455e785678650bbe3184341a4b89
parent5ad34db2ccbbfbc936cd16121bed2110b70594ba
transform: Do not look at any bytes of PKCS#5 padding other than the last

This might avoid some timing-related information leaks.  In principle
this is a protocol change: we now no longer use actual PKCS#5 padding;
instead, we use a padding scheme where all but the last byte of the
padding may be sent as anything and are ignored by the receiver.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
transform.c