OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________________________
Server: cvs.openssl.org Name: Dr. Stephen Henson
Root: /v/openssl/cvs Email: steve openssl.org
Module: openssl Date: 24-Jan-2007 14:00:15
Branch: OpenSSL-fips2-0_9_7-stable Handle: 2007012413001104
Added files: (Branch: OpenSSL-fips2-0_9_7-stable)
openssl/fips-1.0/rsa fips_rsa_sign.c
Modified files: (Branch: OpenSSL-fips2-0_9_7-stable)
openssl CHANGES
openssl/crypto/evp m_sha1.c
openssl/crypto/rsa rsa.h
openssl/fips-1.0 Makefile
openssl/fips-1.0/rsa Makefile
Log:
Remove ASN1 library (and other) dependencies from fipscanister.o
Summary:
Revision Changes Path
1.977.2.189.2.2+5 -1 openssl/CHANGES
1.8.2.2.2.1 +11 -4 openssl/crypto/evp/m_sha1.c
1.36.2.21.2.1+7 -0 openssl/crypto/rsa/rsa.h
1.1.2.15.2.1+1 -54 openssl/fips-1.0/Makefile
1.1.2.2.2.1 +4 -2 openssl/fips-1.0/rsa/Makefile
1.1.2.1 +231 -0 openssl/fips-1.0/rsa/fips_rsa_sign.c
____________________________________________________________________________
patch -p0 <<' .'
Index: openssl/CHANGES
============================================================================
$ cvs diff -u -r1.977.2.189.2.1 -r1.977.2.189.2.2 CHANGES
--- openssl/CHANGES 24 Jan 2007 12:42:18 -0000 1.977.2.189.2.1
+++ openssl/CHANGES 24 Jan 2007 13:00:11 -0000 1.977.2.189.2.2
 -4,7 +4,11 
Changes between 0.9.7l and 0.9.7m-fips2 [xx XXX xxxx]
- *)
+ *) New version of RSA_{sign,verify} for FIPS code. This uses pregenerated
+ DigestInfo encodings and thus avoids all ASN1 library dependencies. Update
+ FIPS digests to use new functions. Remove large numbers of obsolete
+ dependencies from fipscanister.o
+ [Steve Henson]
Changes between 0.9.7l and 0.9.7m [xx XXX xxxx]
 .
patch -p0 <<' .'
Index: openssl/crypto/evp/m_sha1.c
============================================================================
$ cvs diff -u -r1.8.2.2 -r1.8.2.2.2.1 m_sha1.c
--- openssl/crypto/evp/m_sha1.c 7 May 2005 17:21:28 -0000 1.8.2.2
+++ openssl/crypto/evp/m_sha1.c 24 Jan 2007 13:00:13 -0000 1.8.2.2.2.1
 -63,6 +63,9 
#include
#include
+#define EVP_PKEY_RSA_fips_method FIPS_rsa_sign,FIPS_rsa_verify,
+ {EVP_PKEY_RSA,EVP_PKEY_RSA2,0,0}
+
static int init(EVP_MD_CTX *ctx)
{ return SHA1_Init(ctx->md_data); }
 -90,7 +93,11 
final,
NULL,
NULL,
+#ifdef OPENSSL_FIPS
+ EVP_PKEY_RSA_fips_method,
+#else
EVP_PKEY_RSA_method,
+#endif
SHA_CBLOCK,
sizeof(EVP_MD *)+sizeof(SHA_CTX),
};
 -131,7 +138,7 
final256,
NULL,
NULL,
- EVP_PKEY_RSA_method,
+ EVP_PKEY_RSA_fips_method,
SHA256_CBLOCK,
sizeof(EVP_MD *)+sizeof(SHA256_CTX),
};
 -150,7 +157,7 
final256,
NULL,
NULL,
- EVP_PKEY_RSA_method,
+ EVP_PKEY_RSA_fips_method,
SHA256_CBLOCK,
sizeof(EVP_MD *)+sizeof(SHA256_CTX),
};
 -184,7 +191,7 
final512,
NULL,
NULL,
- EVP_PKEY_RSA_method,
+ EVP_PKEY_RSA_fips_method,
SHA512_CBLOCK,
sizeof(EVP_MD *)+sizeof(SHA512_CTX),
};
 -203,7 +210,7 
final512,
NULL,
NULL,
- EVP_PKEY_RSA_method,
+ EVP_PKEY_RSA_fips_method,
SHA512_CBLOCK,
sizeof(EVP_MD *)+sizeof(SHA512_CTX),
};
 .
patch -p0 <<' .'
Index: openssl/crypto/rsa/rsa.h
============================================================================
$ cvs diff -u -r1.36.2.21 -r1.36.2.21.2.1 rsa.h
--- openssl/crypto/rsa/rsa.h 28 Sep 2006 11:53:50 -0000 1.36.2.21
+++ openssl/crypto/rsa/rsa.h 24 Jan 2007 13:00:14 -0000 1.36.2.21.2.1
 -276,6 +276,13 
int RSA_verify(int type, const unsigned char *m, unsigned int m_length,
unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
+#ifdef OPENSSL_FIPS
+int FIPS_rsa_sign(int type, const unsigned char *m, unsigned int m_length,
+ unsigned char *sigret, unsigned int *siglen, RSA *rsa);
+int FIPS_rsa_verify(int type, const unsigned char *m, unsigned int m_length,
+ unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
+#endif
+
/* The following 2 function sign and verify a ASN1_OCTET_STRING
* object inside PKCS#1 padded RSA encryption */
int RSA_sign_ASN1_OCTET_STRING(int type,
 .
patch -p0 <<' .'
Index: openssl/fips-1.0/Makefile
============================================================================
$ cvs diff -u -r1.1.2.15 -r1.1.2.15.2.1 Makefile
--- openssl/fips-1.0/Makefile 18 Jan 2007 13:29:15 -0000 1.1.2.15
+++ openssl/fips-1.0/Makefile 24 Jan 2007 13:00:14 -0000 1.1.2.15.2.1
 -226,27 +226,6 
../crypto/aes/aes_cfb.o
../crypto/aes/aes_ecb.o
../crypto/aes/aes_ofb.o
- ../crypto/asn1/a_bitstr.o
- ../crypto/asn1/a_bytes.o
- ../crypto/asn1/a_dup.o
- ../crypto/asn1/a_int.o
- ../crypto/asn1/a_object.o
- ../crypto/asn1/asn1_err.o
- ../crypto/asn1/asn1_lib.o
- ../crypto/asn1/a_type.o
- ../crypto/asn1/evp_asn1.o
- ../crypto/asn1/tasn_dec.o
- ../crypto/asn1/tasn_enc.o
- ../crypto/asn1/tasn_fre.o
- ../crypto/asn1/tasn_new.o
- ../crypto/asn1/tasn_typ.o
- ../crypto/asn1/tasn_utl.o
- ../crypto/asn1/t_pkey.o
- ../crypto/asn1/x_algor.o
- ../crypto/asn1/x_bi |