RSA_blinding_on.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. =pod
  2. =head1 NAME
  3. RSA_blinding_on, RSA_blinding_off - protect the RSA operation from timing attacks
  4. =head1 SYNOPSIS
  5. #include <openssl/rsa.h>
  6. The following functions have been deprecated since OpenSSL 3.0, and can be
  7. hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
  8. see L<openssl_user_macros(7)>:
  9. int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
  10. void RSA_blinding_off(RSA *rsa);
  11. =head1 DESCRIPTION
  12. All of the functions described on this page are deprecated.
  13. RSA is vulnerable to timing attacks. In a setup where attackers can
  14. measure the time of RSA decryption or signature operations, blinding
  15. must be used to protect the RSA operation from that attack.
  16. RSA_blinding_on() turns blinding on for key B<rsa> and generates a
  17. random blinding factor. B<ctx> is B<NULL> or a preallocated and
  18. initialized B<BN_CTX>.
  19. RSA_blinding_off() turns blinding off and frees the memory used for
  20. the blinding factor.
  21. =head1 RETURN VALUES
  22. RSA_blinding_on() returns 1 on success, and 0 if an error occurred.
  23. RSA_blinding_off() returns no value.
  24. =head1 HISTORY
  25. All of these functions were deprecated in OpenSSL 3.0.
  26. =head1 COPYRIGHT
  27. Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
  28. Licensed under the Apache License 2.0 (the "License"). You may not use
  29. this file except in compliance with the License. You can obtain a copy
  30. in the file LICENSE in the source distribution or at
  31. L<https://www.openssl.org/source/license.html>.
  32. =cut