exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

openssl-0.9.2b-rsaoaep.patch

openssl-0.9.2b-rsaoaep.patch
Posted Dec 21, 1999

openssl-0.9.2b-rsaoaep.patch

tags | encryption
SHA-256 | 7ca5644f324f799776c93fb92debedbeb7099ecd0047f0a417ed27e34e39ff5e

openssl-0.9.2b-rsaoaep.patch

Change Mirror Download

Official source patch from the OpenSSL project
==============================================

FILENAME: APPLY TO: CONTACT: DATE:
openssl-0.9.2b-rsaoaep.patch OpenSSL 0.9.2b openssl@openssl.org 06-Apr-1999

DESCRIPTION:
The recently added support for RSA Optimal Asymmetric Encryption Padding (RSA
OAEP, see also RFC 2437 ``PKCS #1: RSA Cryptography Specifications, Version
2.0'') is only supported in combination with OpenSSL's own RSA implementation.
With RSA DSI's old RSAref library RSA OAEP is not supported. This leaded to
problems for US citizens who compile OpenSSL with RSAref (the ``make test''
step already failed for them because of the RSA OEAP test). The appended patch
makes sure the RSAref glue code inside OpenSSL recognizes this situation (and
now explicitly forces an error). Additionally, when RSAref is used the RSA
OAEP test is skipped under ``make test'', too. NOTICE THAT THIS PATCH IS ONLY
NEEDED WHEN YOU BUILD OpenSSL WITH THE EXTERNAL RSA IMPLEMENTATION LIBRARY
RSAref.

PATCH:
Move this file to the top-level directory of a fresh OpenSSL 0.9.2b source
tree and run the command ``patch -p0 <openssl-0.9.2b-rsaoaep.patch'' from
within this directory.

Index: crypto/rsa/rsa_oaep_test.c
===================================================================
RCS file: /e/openssl/cvs/openssl/crypto/rsa/rsa_oaep_test.c,v
retrieving revision 1.4
diff -u -r1.4 rsa_oaep_test.c
--- crypto/rsa/rsa_oaep_test.c 1999/03/12 20:41:09 1.4
+++ crypto/rsa/rsa_oaep_test.c 1999/04/06 07:10:42
@@ -195,6 +195,11 @@
int clen = 0;
int num;

+#ifdef RSAref
+ printf("No OAEP support with RSAref - skipping test\n");
+ return 0;
+#endif
+
plen = sizeof(ptext_ex) - 1;

for (v = 0; v < 3; v++)
Index: rsaref/rsaref.c
===================================================================
RCS file: /e/openssl/cvs/openssl/rsaref/rsaref.c,v
retrieving revision 1.2
diff -u -r1.2 rsaref.c
--- rsaref/rsaref.c 1999/01/14 18:25:07 1.2
+++ rsaref/rsaref.c 1999/04/06 07:11:32
@@ -328,6 +328,9 @@
RSARandomState rnd;
unsigned char buf[16];

+ if (padding == RSA_PKCS1_OAEP_PADDING)
+ goto err;
+
R_RandomInit(&rnd);
R_GetRandomBytesNeeded((unsigned int *)&i,&rnd);
while (i > 0)
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close