PKCS #1: Enforce minimum padding for decryption in internal TLS
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 May 2014 20:26:43 +0000 (23:26 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 19 May 2014 20:27:30 +0000 (23:27 +0300)
commit6c5be116dd6997f68e524247751cff53c74519d7
treee5df630557b134323090eabcda9af89b91f5087e
parente6d83cc7babb978ba53ae8686159b41ab0f448cc
PKCS #1: Enforce minimum padding for decryption in internal TLS

Follow the PKCS #1 v1.5, 8.1 constraint of at least eight octets long PS
for the case where the internal TLS implementation decrypts PKCS #1
formatted data. Similar limit was already in place for signature
validation, but not for this decryption routine.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/tls/pkcs1.c