Home | History | Annotate | Download | only in blowfish
History log of /src/sys/crypto/blowfish/bf_cbc.c
RevisionDateAuthorComments
 1.12  11-Dec-2005  christos merge ktrace-lwp.
 1.11  30-May-2005  christos sprinkle const
 1.10  26-Feb-2005  perry nuke trailing whitespace
 1.9  26-Aug-2003  thorpej branches: 1.9.8; 1.9.10;
* Const poison, ANSI'ify, like newer OpenSSL Blowfish code.
* Add a BF_ecb_encrypt(), which makes for a prettier interface than
using BF_encrypt()/BF_decrypt() directly.
 1.8  08-Sep-2002  elric branches: 1.8.6;
Modified to avoid compiler warnings. The specific warning related
to const BF_KEY * vars, and I chose to ``fix'' it in this file
rather than elsewhere in the framework because, although the other
fix was more appropriate, nothing seems to use the code in this
file and hence the risk of disrupting other people was lower. In
the future, the more appropriate change would be to change blowfish.h
and bf_enc.c to have functions with signatures:

BF_encrypt(BF_LONG *, const BF_KEY *);
BF_decrypt(BF_LONG *, const BF_KEY *);
 1.7  07-Sep-2002  elric Include <sys/types.h> to allow compilation to occur.
 1.6  07-Sep-2002  elric repoint include file for kernel use.
 1.5  13-Nov-2001  lukem branches: 1.5.10;
add RCSIDs
 1.4  09-Sep-2001  tls Add asm versions of blowfish and des transforms for i386.

This also involved updating the in-kernel DES functions to correspond
to the versions in our in-tree OpenSSL, because the des_SPtrans table
has changed; the asm code will not work with the old permutation table!

C and i386 asm code for the DES, 3DES, and Blowfish CBC modes is also
included; it is not currently built as the ESP processing in esp_core.c
splits the CBC operation and the cipher transform apart. Hopefully that
will be fixed as there is a substantial performance improvement to be had
from doing so. It will remain necessary to use the C version of the
Blowfish CBC function on some i386 machines, however, as the asm version
uses bswapl, which ony 486 and later processors have. The DES CBC code
doesn't have this problem.

Finally, change esp_core.c to use the ecb3_encrypt function instead of
calling ecb_encrypt three times; this improves performance a bit, in
particular in the asm case.
 1.3  27-May-2001  itojun branches: 1.3.2; 1.3.4;
remove files we no longer need/maintain. sync with kame
 1.2  31-Aug-2000  itojun branches: 1.2.2; 1.2.4;
make the code friendly with LP64 machines.
- use u_int32_t for 32bit quantity unsigned integer type.
- s/unsigned long/BF_LONG/ (BF_LONG = u_int32_t) where appropriate.
- prototype cleanup - due to *BSD code sharing, we still are using __P().
part of PR 10918. sync with kame.
 1.1  14-Jun-2000  thorpej branches: 1.1.1;
Initial revision
 1.1.1.1  14-Jun-2000  thorpej branches: 1.1.1.1.2; 1.1.1.1.4;
Import the IPsec crypto code from netbsd-cryptosrc-intl.
 1.1.1.1.4.2  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.1.1.1.4.1  14-Jun-2000  minoura file bf_cbc.c was added on branch minoura-xpg4dl on 2000-06-22 17:05:58 +0000
 1.1.1.1.2.1  31-Aug-2000  itojun pullup 1.1 -> 1.2 (for all files) - approved by releng-1-5

without the fix, blowfish encryption function panics the kernel, on LP64 arch.

>make the code friendly with LP64 machines.
>- use u_int32_t for 32bit quantity unsigned integer type.
>- s/unsigned long/BF_LONG/ (BF_LONG = u_int32_t) where appropriate.
>- prototype cleanup - due to *BSD code sharing, we still are using __P().
>part of PR 10918. sync with kame.
 1.2.4.3  17-Sep-2002  nathanw Catch up to -current.
 1.2.4.2  14-Nov-2001  nathanw Catch up to -current.
 1.2.4.1  21-Sep-2001  nathanw Catch up to -current.
 1.2.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.2.2.1  31-Aug-2000  bouyer file bf_cbc.c was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 1.3.4.1  01-Oct-2001  fvdl Catch up with -current.
 1.3.2.3  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.3.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.5.10.3  12-Sep-2003  tron Pull up revision 1.8 (requested by tv in ticket #1455):
Modified to avoid compiler warnings. The specific warning related
to const BF_KEY * vars, and I chose to ``fix'' it in this file
rather than elsewhere in the framework because, although the other
fix was more appropriate, nothing seems to use the code in this
file and hence the risk of disrupting other people was lower. In
the future, the more appropriate change would be to change blowfish.h
and bf_enc.c to have functions with signatures:
BF_encrypt(BF_LONG *, const BF_KEY *);
BF_decrypt(BF_LONG *, const BF_KEY *);
 1.5.10.2  12-Sep-2003  tron Pull up revision 1.7 (requested by tv in ticket #1455):
Include <sys/types.h> to allow compilation to occur.
 1.5.10.1  12-Sep-2003  tron Pull up revision 1.6 (requested by tv in ticket #1455):
repoint include file for kernel use.
 1.8.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.6.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.8.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.6.1  03-Aug-2004  skrll Sync with HEAD
 1.9.10.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.9.8.1  29-Apr-2005  kent sync with -current

RSS XML Feed