summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorderaadt <>1998-08-22 07:12:58 +0000
committerderaadt <>1998-08-22 07:12:58 +0000
commita2a22f672bdfcd0f51626764a89457395559367e (patch)
tree3378deae72e612d15cd373f4021ecf58287a2d27 /src/lib/libc/crypt
parentc04b7e38e544beab5fe438fe00eccf2cd82d4706 (diff)
downloadopenbsd-a2a22f672bdfcd0f51626764a89457395559367e.tar.gz
openbsd-a2a22f672bdfcd0f51626764a89457395559367e.tar.bz2
openbsd-a2a22f672bdfcd0f51626764a89457395559367e.zip
doc UA faulting code
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/blowfish.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/blowfish.c b/src/lib/libc/crypt/blowfish.c
index 96b4c06f00..261ace5c21 100644
--- a/src/lib/libc/crypt/blowfish.c
+++ b/src/lib/libc/crypt/blowfish.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: blowfish.c,v 1.10 1998/08/21 23:31:28 deraadt Exp $ */ 1/* $OpenBSD: blowfish.c,v 1.11 1998/08/22 07:12:58 deraadt Exp $ */
2/* 2/*
3 * Blowfish block cipher for OpenBSD 3 * Blowfish block cipher for OpenBSD
4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -587,6 +587,9 @@ blf_dec(c, data, blocks)
587 587
588/* Repeating operations for little endian machines */ 588/* Repeating operations for little endian machines */
589 589
590/*
591 * XXX This code is NOT correct for unaligned-access faulting machines.
592 */
590#define BLF_BLK_ENC l = ntohl (*(u_int32_t *)data); \ 593#define BLF_BLK_ENC l = ntohl (*(u_int32_t *)data); \
591 r = ntohl (*(u_int32_t *)(data+4)); \ 594 r = ntohl (*(u_int32_t *)(data+4)); \
592 Blowfish_encipher(c, &l, &r); \ 595 Blowfish_encipher(c, &l, &r); \