RSA_BLINDING_ON(3ossl)
β¨ RSA_BLINDING_ON β¨
okay bestie, welcome to the RSA_BLINDING_ON(3ossl) page from the OpenSSL manual π this one's all about RSA_blinding_on, RSA_blinding_off β and yes, they are deprecated, we'll get to that, don't panic π«Ά
πΈ NAME πΈ
RSA_blinding_on, RSA_blinding_off β protect the RSA operation from timing attacks π₯
π SYNOPSIS π
#include <openssl/rsa.h>
The following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
void RSA_blinding_off(RSA *rsa);
π DESCRIPTION π
So. All of the functions described on this page are deprecated. Every single one. That's the vibe. π«
Here's the tea though, because the why is actually iconic: RSA is vulnerable to timing attacks. Like, in a setup where attackers can measure the time of RSA decryption or signature operations, blinding must be used to protect the RSA operation from that attack. Not "should", not "it'd be cute if" β must. It's giving side-channel chaos π
RSA_blinding_on()β turns blinding on for key rsa and generates a random blinding factor β¨. ctx isNULLor a preallocated and initializedBN_CTX.RSA_blinding_off()β turns blinding off and frees the memory used for the blinding factor π§
β RETURN VALUES β
RSA_blinding_on()β returns1on success, and0if an error occurred. classic binary moment, ate πRSA_blinding_off()β returns no value. it's avoid, it simply does not return things, main character energy of it honestly π
π HISTORY π
All of these functions were deprecated in OpenSSL 3.0. periodt. π
π COPYRIGHT π
Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
bestie reminder: this page is from OpenSSL 3.5.9, dated 2026-09-29 β so if you're reading this in the future, hi, hope the blinding factor is still random π no cap, go read the source, it's right there. slay πβ¨π¦
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms