RSA_padding_check_PKCS1_type_2 is not constant time.
authorEmilia Kasper <emilia@openssl.org>
Tue, 18 Jul 2017 09:26:34 +0000 (11:26 +0200)
committerEmilia Kasper <emilia@openssl.org>
Tue, 18 Jul 2017 09:27:27 +0000 (11:27 +0200)
commit5c5fef4d7aba0ef20cc88d7e34b22cec0d2881bb
treee90ae935ddcb93b8d5aedafde811156d1fc9a662
parentc63a5ea848cf0ccd3c991198ddff08b36c312340
RSA_padding_check_PKCS1_type_2 is not constant time.

This is an inherent weakness of the padding mode. We can't make the
implementation constant time (see the comments in rsa_pk1.c), so add a
warning to the docs.

Reviewed-by: Rich Salz <rsalz@openssl.org>
doc/crypto/RSA_padding_add_PKCS1_type_1.pod
doc/crypto/RSA_public_encrypt.pod