summaryrefslogtreecommitdiff
path: root/lib/libcrypto/rsa
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-09 17:08:41 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-09 17:08:41 +0000
commit46a4508eedec303619849ac4eb9a46e68fdbe2b9 (patch)
treef5581d909ba0a32011c20c94f15b665f40a59599 /lib/libcrypto/rsa
parent624621680d1fd04c7159f753cc577dc96e9a93cc (diff)
Unifdef -UPKCS_TESTVECT - we don't want the random data used in OAEP padding
to get overwritten by a known value, ever.
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r--lib/libcrypto/rsa/rsa_oaep.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libcrypto/rsa/rsa_oaep.c b/lib/libcrypto/rsa/rsa_oaep.c
index f8f9935fac5..df288fa615d 100644
--- a/lib/libcrypto/rsa/rsa_oaep.c
+++ b/lib/libcrypto/rsa/rsa_oaep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rsa_oaep.c,v 1.17 2014/07/09 08:20:08 miod Exp $ */
+/* $OpenBSD: rsa_oaep.c,v 1.18 2014/07/09 17:08:40 miod Exp $ */
/* Written by Ulf Moeller. This software is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. */
@@ -63,11 +63,6 @@ RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,
memcpy(db + emlen - flen - SHA_DIGEST_LENGTH, from, (unsigned int)flen);
if (RAND_bytes(seed, SHA_DIGEST_LENGTH) <= 0)
return 0;
-#ifdef PKCS_TESTVECT
- memcpy(seed,
- "\xaa\xfd\x12\xf6\x59\xca\xe6\x34\x89\xb4\x79\xe5\x07\x6d\xde\xc2\xf0\x6c\xb5\x8f",
- 20);
-#endif
dbmask = malloc(emlen - SHA_DIGEST_LENGTH);
if (dbmask == NULL) {