diff options
author | wollman <wollman@FreeBSD.org> | 1999-03-01 02:39:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1999-03-01 02:39:45 +0000 |
commit | e903dee1c16c251b5efd30f27691e57140fbb74c (patch) | |
tree | 98f6dd2269461fdea72eba39be747e9532a45ee3 /lib/libmd/sha.3 | |
parent | 15ef0b89c9d775efff5b968efcc4081306c827e8 (diff) | |
download | FreeBSD-src-e903dee1c16c251b5efd30f27691e57140fbb74c.zip FreeBSD-src-e903dee1c16c251b5efd30f27691e57140fbb74c.tar.gz |
Don't even attempt to build the assembly-language versions of RIPEMD160
and SHA-1 when OBJFORMAT is not ELF. Add a warning to the man page
about how SHA-1 uses bswapl, which will trap on 80386es (and the kernel
should, but doesn't currently, emulate).
Diffstat (limited to 'lib/libmd/sha.3')
-rw-r--r-- | lib/libmd/sha.3 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libmd/sha.3 b/lib/libmd/sha.3 index 28a29bd..8c9bc1c 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.) |