aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1999-03-01 02:39:45 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1999-03-01 02:39:45 +0000
commit303dec3b5361108d4a0dab0e4b4d4fa19efc58a6 (patch)
tree17ecfadd2ea3dbdd80bd2faf6dd75be46a736bf4 /lib/libmd
parentaf59b932a7b5b704036bc12e0a14f055a44c538e (diff)
Notes
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile4
-rw-r--r--lib/libmd/sha.314
2 files changed, 16 insertions, 2 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index a0658f5ff85fe..7a67794463093 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.29 1999/02/26 04:24:56 wollman Exp $
+# $Id: Makefile,v 1.30 1999/02/26 18:41:45 wollman Exp $
LIB= md
SRCS= md2c.c md4c.c md5c.c md2hl.c md4hl.c md5hl.c \
@@ -17,6 +17,7 @@ CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver \
CFLAGS+= -I${.CURDIR}
.PATH: ${.CURDIR}/${MACHINE_ARCH}
+.if ${OBJFORMAT} == "elf"
.if exists(${MACHINE_ARCH}/sha.S)
SRCS+= sha.S
CFLAGS+= -DSHA1_ASM -DELF
@@ -25,6 +26,7 @@ CFLAGS+= -DSHA1_ASM -DELF
SRCS+= rmd160.S
CFLAGS+= -DRMD160_ASM -DELF
.endif
+.endif
all: md2.3 md4.3 md5.3
diff --git a/lib/libmd/sha.3 b/lib/libmd/sha.3
index 28a29bd2622e5..8c9bc1c80b5cc 100644
--- a/lib/libmd/sha.3
+++ b/lib/libmd/sha.3
@@ -7,7 +7,7 @@
.\" ----------------------------------------------------------------------------
.\"
.\" From: Id: mdX.3,v 1.14 1999/02/11 20:31:49 wollman Exp
-.\" $Id: sha.3,v 1.1 1999/02/26 04:24:56 wollman Exp $
+.\" $Id: sha.3,v 1.2 1999/02/26 18:41:45 wollman Exp $
.\"
.Dd February 25, 1999
.Dt SHA 3
@@ -137,3 +137,15 @@ These functions appeared in
No method is known to exist which finds two files having the same hash value,
nor to find a file with a specific hash value.
There is on the other hand no guarantee that such a method doesn't exist.
+.Pp
+The
+.Tn IA32
+(Intel) implementation of
+.Tn SHA-1
+makes heavy use of the
+.Ql bswapl
+instruction, which is not present on the original 80386. Attempts
+to use
+.Tn SHA-1
+on those processors will cause an illegal instruction trap.
+(Arguably, the kernel should simply emulate this instruction.)