diff options
| author | jmc <> | 2006-07-25 12:41:06 +0000 | 
|---|---|---|
| committer | jmc <> | 2006-07-25 12:41:06 +0000 | 
| commit | 946951e96bdaa8d5f256060e892a992687123068 (patch) | |
| tree | 573e3cede67acc9bb474d877c36de905fab7d327 | |
| parent | bff9f9f3b2451cc7bda0f7cdfafed844fe06000f (diff) | |
| download | openbsd-946951e96bdaa8d5f256060e892a992687123068.tar.gz openbsd-946951e96bdaa8d5f256060e892a992687123068.tar.bz2 openbsd-946951e96bdaa8d5f256060e892a992687123068.zip | |
updates from nicholas marriott;
re-worded and ok djm
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/crypt/blowfish.3 | 14 | 
1 files changed, 9 insertions, 5 deletions
| diff --git a/src/lib/libc/crypt/blowfish.3 b/src/lib/libc/crypt/blowfish.3 index a97e3c94f2..0e1a077de9 100644 --- a/src/lib/libc/crypt/blowfish.3 +++ b/src/lib/libc/crypt/blowfish.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: blowfish.3,v 1.14 2005/10/02 08:12:16 jmc Exp $ | 1 | .\" $OpenBSD: blowfish.3,v 1.15 2006/07/25 12:41:06 jmc Exp $ | 
| 2 | .\" | 2 | .\" | 
| 3 | .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 3 | .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> | 
| 4 | .\" All rights reserved. | 4 | .\" All rights reserved. | 
| @@ -47,9 +47,9 @@ | |||
| 47 | .Ft void | 47 | .Ft void | 
| 48 | .Fn blf_key "blf_ctx *state" "const u_int8_t *key" "u_int16_t keylen" | 48 | .Fn blf_key "blf_ctx *state" "const u_int8_t *key" "u_int16_t keylen" | 
| 49 | .Ft void | 49 | .Ft void | 
| 50 | .Fn blf_enc "blf_ctx *state" "u_int32_t *data" "u_int16_t datalen" | 50 | .Fn blf_enc "blf_ctx *state" "u_int32_t *data" "u_int16_t blocks" | 
| 51 | .Ft void | 51 | .Ft void | 
| 52 | .Fn blf_dec "blf_ctx *state" "u_int32_t *data" "u_int16_t datalen" | 52 | .Fn blf_dec "blf_ctx *state" "u_int32_t *data" "u_int16_t blocks" | 
| 53 | .Ft void | 53 | .Ft void | 
| 54 | .Fn blf_ecb_encrypt "blf_ctx *state" "u_int8_t *data" "u_int32_t datalen" | 54 | .Fn blf_ecb_encrypt "blf_ctx *state" "u_int8_t *data" "u_int32_t datalen" | 
| 55 | .Ft void | 55 | .Ft void | 
| @@ -75,8 +75,8 @@ is the initialized state derived from | |||
| 75 | .Fn blf_key . | 75 | .Fn blf_key . | 
| 76 | The stream of 32-bit words is encrypted in Electronic Codebook | 76 | The stream of 32-bit words is encrypted in Electronic Codebook | 
| 77 | Mode (ECB) and | 77 | Mode (ECB) and | 
| 78 | .Pa datalen | 78 | .Pa blocks | 
| 79 | must be even. | 79 | is the number of 64-bit blocks in the stream. | 
| 80 | .Fn blf_dec | 80 | .Fn blf_dec | 
| 81 | is used for decrypting Blowfish encrypted blocks. | 81 | is used for decrypting Blowfish encrypted blocks. | 
| 82 | .Pp | 82 | .Pp | 
| @@ -91,6 +91,10 @@ and | |||
| 91 | .Fn blf_cbc_decrypt | 91 | .Fn blf_cbc_decrypt | 
| 92 | are used for encrypting and decrypting octet streams in | 92 | are used for encrypting and decrypting octet streams in | 
| 93 | Cipherblock Chaining Mode (CBC). | 93 | Cipherblock Chaining Mode (CBC). | 
| 94 | For these functions | ||
| 95 | .Pa datalen | ||
| 96 | specifies the number of octets of data to encrypt or decrypt. | ||
| 97 | It must be a multiple of 8 (64-bit block). | ||
| 94 | .Pp | 98 | .Pp | 
| 95 | The functions | 99 | The functions | 
| 96 | .Fn Blowfish_initstate , | 100 | .Fn Blowfish_initstate , | 
