|
@ -1,4 +1,4 @@ |
|
|
.\" $OpenBSD: blowfish.3,v 1.16 2006/07/26 12:43:02 jmc Exp $ |
|
|
|
|
|
|
|
|
.\" $OpenBSD: blowfish.3,v 1.17 2006/07/26 12:45:53 jmc Exp $ |
|
|
.\" |
|
|
.\" |
|
|
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
|
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
|
.\" All rights reserved. |
|
|
.\" All rights reserved. |
|
@ -59,7 +59,7 @@ |
|
|
.Ft void |
|
|
.Ft void |
|
|
.Fn blf_cbc_decrypt "blf_ctx *state" "u_int8_t *iv" "u_int8_t *data" "u_int32_t datalen" |
|
|
.Fn blf_cbc_decrypt "blf_ctx *state" "u_int8_t *iv" "u_int8_t *data" "u_int32_t datalen" |
|
|
.Sh DESCRIPTION |
|
|
.Sh DESCRIPTION |
|
|
.Pa Blowfish |
|
|
|
|
|
|
|
|
.Em Blowfish |
|
|
is a fast unpatented block cipher designed by Bruce Schneier. |
|
|
is a fast unpatented block cipher designed by Bruce Schneier. |
|
|
It basically consists of a 16-round Feistel network. |
|
|
It basically consists of a 16-round Feistel network. |
|
|
The block size is 64 bits and the maximum key size is 448 bits. |
|
|
The block size is 64 bits and the maximum key size is 448 bits. |
|
@ -75,7 +75,7 @@ is the initialized state derived from |
|
|
.Fn blf_key . |
|
|
.Fn blf_key . |
|
|
The stream of 32-bit words is encrypted in Electronic Codebook |
|
|
The stream of 32-bit words is encrypted in Electronic Codebook |
|
|
Mode (ECB) and |
|
|
Mode (ECB) and |
|
|
.Pa blocks |
|
|
|
|
|
|
|
|
.Fa blocks |
|
|
is the number of 64-bit blocks in the stream. |
|
|
is the number of 64-bit blocks in the stream. |
|
|
.Fn blf_dec |
|
|
.Fn blf_dec |
|
|
is used for decrypting Blowfish encrypted blocks. |
|
|
is used for decrypting Blowfish encrypted blocks. |
|
@ -92,11 +92,11 @@ and |
|
|
are used for encrypting and decrypting octet streams in |
|
|
are used for encrypting and decrypting octet streams in |
|
|
Cipherblock Chaining Mode (CBC). |
|
|
Cipherblock Chaining Mode (CBC). |
|
|
For these functions |
|
|
For these functions |
|
|
.Pa datalen |
|
|
|
|
|
|
|
|
.Fa datalen |
|
|
specifies the number of octets of data to encrypt or decrypt. |
|
|
specifies the number of octets of data to encrypt or decrypt. |
|
|
It must be a multiple of 8 (64-bit block). |
|
|
It must be a multiple of 8 (64-bit block). |
|
|
The initialisation vector |
|
|
The initialisation vector |
|
|
.Pa iv |
|
|
|
|
|
|
|
|
.Fa iv |
|
|
points to an 8-byte buffer. |
|
|
points to an 8-byte buffer. |
|
|
.Pp |
|
|
.Pp |
|
|
The functions |
|
|
The functions |
|
@ -107,7 +107,7 @@ The functions |
|
|
and |
|
|
and |
|
|
.Fn Blowfish_decipher |
|
|
.Fn Blowfish_decipher |
|
|
are used for customization of the |
|
|
are used for customization of the |
|
|
.Pa Blowfish |
|
|
|
|
|
|
|
|
.Em Blowfish |
|
|
cipher, e.g., for the blowfish password hashing function. |
|
|
cipher, e.g., for the blowfish password hashing function. |
|
|
.Sh SEE ALSO |
|
|
.Sh SEE ALSO |
|
|
.Xr passwd 1 , |
|
|
.Xr passwd 1 , |
|
|