RSA_padding_check_PKCS1_type_2 is not constant time.
[openssl.git] / doc / man3 / RSA_padding_add_PKCS1_type_1.pod
index 52ca15a72c72bf7e127a6f5f512a159014455b23..93911cac97d6f6e405ba0e3b541ad9b07d8d143d 100644 (file)
@@ -105,6 +105,13 @@ The RSA_padding_check_xxx() functions return the length of the
 recovered data, -1 on error. Error codes can be obtained by calling
 L<ERR_get_error(3)>.
 
+=head1 WARNING
+
+The RSA_padding_check_PKCS1_type_2() padding check leaks timing
+information which can potentially be used to mount a Bleichenbacher
+padding oracle attack. This is an inherent weakness in the PKCS #1
+v1.5 padding design. Prefer PKCS1_OAEP padding.
+
 =head1 SEE ALSO
 
 L<RSA_public_encrypt(3)>,