[csw-devel] SF.net SVN: gar:[18000] csw/mgar/pkg/openssl1/trunk/files/openssl-1.0. 1c-t4-engine.sparc-patch.2012-05-11
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Fri May 11 23:32:50 CEST 2012
Revision: 18000
http://gar.svn.sourceforge.net/gar/?rev=18000&view=rev
Author: chninkel
Date: 2012-05-11 21:32:50 +0000 (Fri, 11 May 2012)
Log Message:
-----------
openssl1/trunk: pff, another mistake in the t4 crypto engine patch
Modified Paths:
--------------
csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1c-t4-engine.sparc-patch.2012-05-11
Modified: csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1c-t4-engine.sparc-patch.2012-05-11
===================================================================
--- csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1c-t4-engine.sparc-patch.2012-05-11 2012-05-11 21:27:19 UTC (rev 17999)
+++ csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1c-t4-engine.sparc-patch.2012-05-11 2012-05-11 21:32:50 UTC (rev 18000)
@@ -5373,6 +5373,7 @@
+
+#define BITSINBYTE 8
+
++/* Bignum "digits" (aka "chunks" or "words") are either 32- or 64-bits */
+#ifdef BIGNUM_CHUNK_32
+#define BIG_CHUNK_SIZE 32
+#define BIG_CHUNK_TYPE uint32_t
@@ -5534,13 +5535,19 @@
+#error HWCAP works only with 32-bit bignum chunks
+#endif
+
++#define BIG_MUL_SET_VEC(r, a, len, digit) \
++ (*big_mul_set_vec_impl)(r, a, len, digit)
++#define BIG_MUL_ADD_VEC(r, a, len, digit) \
++ (*big_mul_add_vec_impl)(r, a, len, digit)
+#define BIG_MUL_VEC(r, a, alen, b, blen) \
+ (*big_mul_vec_impl)(r, a, alen, b, blen)
+#define BIG_SQR_VEC(r, a, len) \
+ (*big_sqr_vec_impl)(r, a, len)
+
+extern BIG_CHUNK_TYPE (*big_mul_set_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len, BIG_CHUNK_TYPE digit);
+extern BIG_CHUNK_TYPE (*big_mul_add_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len, BIG_CHUNK_TYPE digit);
+extern void (*big_mul_vec_impl)
+ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int alen, BIG_CHUNK_TYPE *b,
+ int blen);
@@ -5549,6 +5556,8 @@
+
+#else /* ! HWCAP */
+
++#define BIG_MUL_SET_VEC(r, a, len, digit) big_mul_set_vec(r, a, len, digit)
++#define BIG_MUL_ADD_VEC(r, a, len, digit) big_mul_add_vec(r, a, len, digit)
+#define BIG_MUL_VEC(r, a, alen, b, blen) big_mul_vec(r, a, alen, b, blen)
+#define BIG_SQR_VEC(r, a, len) big_sqr_vec(r, a, len)
+
@@ -8709,17 +8718,6 @@
+ SET_SIZE(t4_sha512_multiblock)
+
+#endif /* lint || __lint */
-diff -uNr openssl-1.0.1c.orig/include/openssl/engine.h openssl-1.0.1c/include/openssl/engine.h
---- openssl-1.0.1c.orig/include/openssl/engine.h 2012-05-11 22:28:08.987623273 +0200
-+++ openssl-1.0.1c/include/openssl/engine.h 2012-05-11 22:19:17.493886000 +0200
-@@ -351,6 +351,7 @@
- #endif
- #endif
- void ENGINE_load_cryptodev(void);
-+void ENGINE_load_t4(void);
- void ENGINE_load_pk11(void);
- void ENGINE_load_rsax(void);
- void ENGINE_load_rdrand(void);
diff -uNr openssl-1.0.1c.orig/util/libeay.num openssl-1.0.1c/util/libeay.num
--- openssl-1.0.1c.orig/util/libeay.num 2011-12-25 15:48:44.000000000 +0100
+++ openssl-1.0.1c/util/libeay.num 2012-05-11 22:19:17.508123000 +0200
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list