summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa_lib.c
diff options
context:
space:
mode:
authorho <>2003-03-15 16:35:53 +0000
committerho <>2003-03-15 16:35:53 +0000
commit68d910a736124944b061ef4eb6d3e07b4682389a (patch)
tree4839b7cb5bb5ac8075b132a7b93a8becb3948832 /src/lib/libcrypto/rsa/rsa_lib.c
parent1c6faae982600718c3de7d1e2ec7cc8c34b173c5 (diff)
downloadopenbsd-68d910a736124944b061ef4eb6d3e07b4682389a.tar.gz
openbsd-68d910a736124944b061ef4eb6d3e07b4682389a.tar.bz2
openbsd-68d910a736124944b061ef4eb6d3e07b4682389a.zip
Enforce blinding on RSA operations involving private keys.
From http://www.openssl.org/~geoff, modified to be enabled at all times.
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
-rw-r--r--src/lib/libcrypto/rsa/rsa_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c
index 93235744f7..f71870a338 100644
--- a/src/lib/libcrypto/rsa/rsa_lib.c
+++ b/src/lib/libcrypto/rsa/rsa_lib.c
@@ -181,6 +181,10 @@ RSA *RSA_new_method(ENGINE *engine)
181 OPENSSL_free(ret); 181 OPENSSL_free(ret);
182 ret=NULL; 182 ret=NULL;
183 } 183 }
184
185 /* Enforce blinding. */
186 ret->flags |= RSA_FLAG_BLINDING;
187
184 return(ret); 188 return(ret);
185 } 189 }
186 190