RSA_BLINDING_ON(3)
β¨ NAME β¨
okay so bestie, this page is RSA_BLINDING_ON(3) β the manual name is RSA_BLINDING_ON, from the libcrypto library β and it's all about RSA_blinding_on and RSA_blinding_off, the functions that protect the RSA operation from timing attacks. π
π¦ SYNOPSIS π¦
It literally says library βlibcryptoβ, and then you include this:
#include <openssl/rsa.h>
int
RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
void
RSA_blinding_off(RSA *rsa);
πΈ DESCRIPTION πΈ
RSA is vulnerable to timing attacks. Not me being dramatic β that's the actual vibe. π 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. Like, this is not optional, bestie.
RSA_blinding_on()β turns blinding on for keyrsaand generates a random blinding factor. Thectxargument is eitherNULLor a pre-allocated and initializedBN_CTX. β¨RSA_blinding_off()β turns blinding off and frees the memory used for the blinding factor. Cleanup queen. π
π RETURN VALUES π
RSA_blinding_on() returns 1 on success, and 0 if an error occurred. That's it, that's the whole return-value story. π«Ά
π SEE ALSO π
π HISTORY π
RSA_blinding_on() and RSA_blinding_off() first appeared in SSLeay 0.9.0 and have been available since OpenBSD 2.4. iconic longevity, no cap. β
okay that's the whole page, bestie β the footer says Debian and June 8, 2025, so bye-bye and stay timing-attack-safe ππ
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2000 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms