diff options
| author | Mikhail Teterin <mi@FreeBSD.org> | 2004-07-11 08:38:31 +0000 |
|---|---|---|
| committer | Mikhail Teterin <mi@FreeBSD.org> | 2004-07-11 08:38:31 +0000 |
| commit | d0b2e40d6bd31022a69caf1b768f63c68e5c5064 (patch) | |
| tree | 75e66fcaa6769a2347acbb767e3b93fe949c5fa2 /devel/tcl-trf/files/patch-sha | |
| parent | Pet portlint. (diff) | |
Retreat to using OpenSSL's message digest routines instead of -lmd. They
are sometimes faster and never slower. Using -lmd is still possible by
building with ``TRF_USE_MD=yes''. Bump PORTREVISION.
Use the RIPEMD160* routines from -lcrypto (or -lmd) instead of our own
-- just like for md[25] and sha*. Neither -lcrypto nor -lmd provide
RIPEMD128 (not strong enough?), so stay with our own implementation.
sparc64/amd64 are not expected to work yet...
Notes
Notes:
svn path=/head/; revision=113381
Diffstat (limited to 'devel/tcl-trf/files/patch-sha')
| -rw-r--r-- | devel/tcl-trf/files/patch-sha | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/devel/tcl-trf/files/patch-sha b/devel/tcl-trf/files/patch-sha index 3b8ee2891f3a..57a2b90b5a6a 100644 --- a/devel/tcl-trf/files/patch-sha +++ b/devel/tcl-trf/files/patch-sha @@ -1,22 +1,15 @@ --- generic/sha.c Wed Aug 9 15:13:18 2000 -+++ generic/sha.c Fri Jul 9 16:28:57 2004 -@@ -30,34 +30,6 @@ - #include "transformInt.h" ++++ generic/sha.c Sat Jul 10 16:49:48 2004 +@@ -34,5 +34,5 @@ + #endif --#ifndef WORDS_BIGENDIAN --#define LITTLE_ENDIAN --#endif -- -#include "sha/sha.h" -- --/* -- * Generator description -- * --------------------- -- * -- * The SHA alogrithm is used to compute a cryptographically strong -- * message digest. -- */ -- ++#include <openssl/sha.h> + + /* +@@ -44,28 +44,9 @@ + */ + -#define DIGEST_SIZE (SHA_DIGESTSIZE) -#define CTX_TYPE sha_trf_info -#define CHUNK_SIZE 256 @@ -33,11 +26,9 @@ - unsigned char buf [CHUNK_SIZE]; /* SHA block */ -} sha_trf_info; - -+#include <sys/types.h> -+#include <sha.h> - +- /* -@@ -65,7 +37,5 @@ + * Declarations of internal procedures. */ -static void MDsha_Start _ANSI_ARGS_ ((VOID* context)); @@ -45,7 +36,7 @@ -static void MDsha_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, int bufLen)); static void MDsha_Final _ANSI_ARGS_ ((VOID* context, VOID* digest)); -@@ -76,9 +46,9 @@ +@@ -76,9 +57,9 @@ static Trf_MessageDigestDescription mdDescription = { /* THREADING: constant, read-only => safe */ "sha", - sizeof (CTX_TYPE), @@ -59,7 +50,7 @@ + (Trf_MDUpdateBuf *)SHA_Update, MDsha_Final, NULL -@@ -113,33 +83,4 @@ +@@ -113,33 +94,4 @@ *------------------------------------------------------* * - * MDsha_Start -- @@ -93,7 +84,7 @@ - * * MDsha_Update -- * -@@ -163,79 +104,7 @@ +@@ -163,79 +115,7 @@ unsigned int character; { - sha_trf_info* s = (sha_trf_info*) context; @@ -175,7 +166,7 @@ + SHA_Update ((SHA_CTX*)context, &buf, 1); } -@@ -264,26 +133,4 @@ +@@ -264,26 +144,4 @@ VOID* digest; { - sha_trf_info* s = (sha_trf_info*) context; |
