Home | History | Annotate | only in /src/sys/crypto/blowfish
History log of /src/sys/crypto/blowfish
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
 1.3 27-May-2001  itojun 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_m.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.1 28-Feb-2002  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_m.c was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 1.3 11-Dec-2005  christos merge ktrace-lwp.
 1.2 26-Feb-2005  perry nuke trailing whitespace
 1.1 26-Aug-2003  thorpej branches: 1.1.4; 1.1.10; 1.1.12;
* 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.1.12.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.1.10.1 29-Apr-2005  kent sync with -current
 1.1.4.5 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.1.4.4 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.4.3 18-Sep-2004  skrll Sync with HEAD.
 1.1.4.2 03-Aug-2004  skrll Sync with HEAD
 1.1.4.1 26-Aug-2003  skrll file bf_ecb.c was added on branch ktrace-lwp on 2004-08-03 10:44:45 +0000
 1.11 05-Feb-2024  andvar fix various typos in comments.
 1.10 11-Dec-2005  christos merge ktrace-lwp.
 1.9 27-Aug-2003  thorpej Add missing RCS ID.
 1.8 27-Aug-2003  tron Fix build problem caused by adding "const", remove "register" usage.
 1.7 26-Aug-2003  thorpej * 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.6 27-Feb-2002  itojun branches: 1.6.16;
sync blowfish function prototype between i386 assembly and C.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
 1.5 13-Nov-2001  lukem 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 06-Nov-2000  itojun branches: 1.3.2; 1.3.4; 1.3.6; 1.3.8;
sync with kame.
- include string.h (instead of sys/systm.h) on userland compilation.
make compilation under src/regress/sys/crypto happier. from minoura
- (blowfish) KNF.
 1.2 31-Aug-2000  itojun 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_enc.c was added on branch minoura-xpg4dl on 2000-06-22 17:06:01 +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.3.8.1 01-Oct-2001  fvdl Catch up with -current.
 1.3.6.3 16-Mar-2002  jdolecek Catch up with -current.
 1.3.6.2 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.6.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.4.3 28-Feb-2002  nathanw Catch up to -current.
 1.3.4.2 14-Nov-2001  nathanw Catch up to -current.
 1.3.4.1 21-Sep-2001  nathanw Catch up to -current.
 1.3.2.3 22-Nov-2000  bouyer Sync with HEAD.
 1.3.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.3.2.1 06-Nov-2000  bouyer file bf_enc.c was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 1.6.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.6.16.1 03-Aug-2004  skrll Sync with HEAD
 1.8 16-Apr-2022  andvar fix various typos in comments and log messages.
 1.7 15-Oct-2021  andvar fix typos in comments.
 1.6 04-Feb-2019  mrg add fallthru comments. i considered patching makefiles to ignore
these problems, but this code is dead upstream and likely will be
removed here rather than ever updated.
 1.5 30-Jun-2009  pooka branches: 1.5.64;
Apply const where necessary (XXX: where is bf_locl.org?)
 1.4 11-Dec-2005  christos branches: 1.4.74; 1.4.90;
merge ktrace-lwp.
 1.3 03-Jun-2005  martin Constify, to make it compile (at least).

XXX - I'm not sure with what args this is called, but my bet is that
there is no chance this code will work on alignment requiring archs.
 1.2 31-Aug-2000  itojun branches: 1.2.2; 1.2.26;
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_locl.h was added on branch minoura-xpg4dl on 2000-06-22 17:06:02 +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.26.1 10-Nov-2005  skrll Sync with HEAD. Here we go again...
 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_locl.h was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 1.4.90.1 23-Jul-2009  jym Sync with HEAD.
 1.4.74.1 18-Jul-2009  yamt sync with head.
 1.5.64.1 10-Jun-2019  christos Sync with HEAD
 1.1 01-Jan-2014  pgoyette branches: 1.1.4; 1.1.6; 1.1.10;
Create modules for software crypto components.
 1.1.10.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.10.1 01-Jan-2014  tls file bf_module.c was added on branch tls-maxphys on 2014-08-20 00:03:34 +0000
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 01-Jan-2014  yamt file bf_module.c was added on branch yamt-pagecache on 2014-05-22 11:40:18 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 01-Jan-2014  rmind file bf_module.c was added on branch rmind-smpnet on 2014-05-18 17:45:34 +0000
 1.2 21-Feb-2001  jdolecek make some more constant arrays 'const'
 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.4; 1.1.1.1.6;
Import the IPsec crypto code from netbsd-cryptosrc-intl.
 1.1.1.1.6.3 12-Mar-2001  bouyer Sync with HEAD.
 1.1.1.1.6.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.1.1.1.6.1 14-Jun-2000  bouyer file bf_pi.h was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 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_pi.h was added on branch minoura-xpg4dl on 2000-06-22 17:06:02 +0000
 1.6 11-Dec-2005  christos merge ktrace-lwp.
 1.5 26-Aug-2003  thorpej * 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.4 27-Feb-2002  itojun branches: 1.4.16;
sync blowfish function prototype between i386 assembly and C.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
 1.3 13-Nov-2001  lukem add RCSIDs
 1.2 06-Nov-2000  itojun branches: 1.2.2; 1.2.4; 1.2.6;
sync with kame.
- include string.h (instead of sys/systm.h) on userland compilation.
make compilation under src/regress/sys/crypto happier. from minoura
- (blowfish) KNF.
 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.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_skey.c was added on branch minoura-xpg4dl on 2000-06-22 17:06:03 +0000
 1.2.6.2 16-Mar-2002  jdolecek Catch up with -current.
 1.2.6.1 10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.2.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.2.4.1 14-Nov-2001  nathanw Catch up to -current.
 1.2.2.3 22-Nov-2000  bouyer Sync with HEAD.
 1.2.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.2.2.1 06-Nov-2000  bouyer file bf_skey.c was added on branch thorpej_scsipi on 2000-11-20 22:21:42 +0000
 1.4.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.4.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.4.16.1 03-Aug-2004  skrll Sync with HEAD
 1.8 14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.7 11-Dec-2005  christos branches: 1.7.74; 1.7.84; 1.7.90;
merge ktrace-lwp.
 1.6 26-Aug-2003  thorpej * 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.5 27-Feb-2002  itojun branches: 1.5.16;
sync blowfish function prototype between i386 assembly and C.
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
 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 06-Nov-2000  itojun branches: 1.3.2; 1.3.4; 1.3.6; 1.3.8;
sync with kame.
- include string.h (instead of sys/systm.h) on userland compilation.
make compilation under src/regress/sys/crypto happier. from minoura
- (blowfish) KNF.
 1.2 31-Aug-2000  itojun 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 blowfish.h was added on branch minoura-xpg4dl on 2000-06-22 17:06:04 +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.3.8.1 01-Oct-2001  fvdl Catch up with -current.
 1.3.6.2 16-Mar-2002  jdolecek Catch up with -current.
 1.3.6.1 13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.4.2 28-Feb-2002  nathanw Catch up to -current.
 1.3.4.1 21-Sep-2001  nathanw Catch up to -current.
 1.3.2.3 22-Nov-2000  bouyer Sync with HEAD.
 1.3.2.2 20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.3.2.1 06-Nov-2000  bouyer file blowfish.h was added on branch thorpej_scsipi on 2000-11-20 22:21:43 +0000
 1.5.16.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.16.2 18-Sep-2004  skrll Sync with HEAD.
 1.5.16.1 03-Aug-2004  skrll Sync with HEAD
 1.7.90.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.84.1 28-Apr-2009  skrll Sync with HEAD.
 1.7.74.1 04-May-2009  yamt sync with head.
 1.4 01-Jan-2014  pgoyette Create modules for software crypto components.
 1.3 11-Dec-2005  christos branches: 1.3.110; 1.3.120; 1.3.126;
merge ktrace-lwp.
 1.2 26-Aug-2003  thorpej * 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.1 11-Oct-2002  thorpej branches: 1.1.2; 1.1.8;
* Move config defns for the crypto algorithms into their own files.
Define an attribute for each crypto algorithm, and use that attribute
to select the files that implement the algorithm.
* Give the "wlan" attribute a dependency on the "arc4" attribute.
* Give the "cgd" pseudo-device the "des", "blowfish", "cast128", and
"rijndael" attributes.
* Use the new attribute-as-option-dependencies feature of config(8) to
give the IPSEC_ESP option dependencies on the "des", "blowfish", "cast128",
and "rijndael" attributes.
 1.1.8.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.8.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.8.1 03-Aug-2004  skrll Sync with HEAD
 1.1.2.2 18-Oct-2002  nathanw Catch up to -current.
 1.1.2.1 11-Oct-2002  nathanw file files.blowfish was added on branch nathanw_sa on 2002-10-18 02:41:21 +0000
 1.3.126.1 18-May-2014  rmind sync with head
 1.3.120.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.110.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.6 11-Dec-2007  lukem use __KERNEL_RCSID()
 1.5 11-Dec-2005  christos branches: 1.5.46; 1.5.56; 1.5.58; 1.5.60;
merge ktrace-lwp.
 1.4 26-Feb-2005  perry branches: 1.4.4;
nuke trailing whitespace
 1.3 28-Nov-2003  keihan branches: 1.3.8; 1.3.10;
s/netbsd.org/NetBSD.org/g
 1.2 12-Nov-2002  itohy branches: 1.2.6;
add non-ELF .align
 1.1 09-Sep-2001  tls branches: 1.1.2; 1.1.6; 1.1.14;
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.1.14.3 11-Dec-2002  thorpej Sync with HEAD.
 1.1.14.2 01-Apr-2002  nathanw Add a few files missed in the merge.
 1.1.14.1 09-Sep-2001  nathanw file bf_cbc.S was added on branch nathanw_sa on 2002-04-01 18:48:04 +0000
 1.1.6.2 07-Feb-2002  jdolecek add manually to the branch - these were somehow missed on merge
 1.1.6.1 09-Sep-2001  jdolecek file bf_cbc.S was added on branch kqueue on 2002-02-07 07:09:48 +0000
 1.1.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.1.2.1 09-Sep-2001  fvdl file bf_cbc.S was added on branch thorpej-devvp on 2001-10-01 12:44:02 +0000
 1.2.6.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.6.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.6.2 18-Sep-2004  skrll Sync with HEAD.
 1.2.6.1 03-Aug-2004  skrll Sync with HEAD
 1.3.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.3.8.1 29-Apr-2005  kent sync with -current
 1.4.4.1 21-Jan-2008  yamt sync with head
 1.5.60.1 13-Dec-2007  bouyer Sync with HEAD
 1.5.58.1 13-Dec-2007  yamt sync with head.
 1.5.56.1 26-Dec-2007  ad Sync with head.
 1.5.46.1 09-Jan-2008  matt sync with HEAD
 1.4 11-Dec-2007  lukem use __KERNEL_RCSID()
 1.3 11-Dec-2005  christos branches: 1.3.46; 1.3.56; 1.3.58; 1.3.60;
merge ktrace-lwp.
 1.2 28-Nov-2003  keihan branches: 1.2.16;
s/netbsd.org/NetBSD.org/g
 1.1 09-Sep-2001  tls branches: 1.1.2; 1.1.6; 1.1.14; 1.1.24;
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.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.14.2 01-Apr-2002  nathanw Add a few files missed in the merge.
 1.1.14.1 09-Sep-2001  nathanw file bf_enc.S was added on branch nathanw_sa on 2002-04-01 18:48:05 +0000
 1.1.6.2 07-Feb-2002  jdolecek add manually to the branch - these were somehow missed on merge
 1.1.6.1 09-Sep-2001  jdolecek file bf_enc.S was added on branch kqueue on 2002-02-07 07:09:49 +0000
 1.1.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.1.2.1 09-Sep-2001  fvdl file bf_enc.S was added on branch thorpej-devvp on 2001-10-01 12:44:02 +0000
 1.2.16.1 21-Jan-2008  yamt sync with head
 1.3.60.1 13-Dec-2007  bouyer Sync with HEAD
 1.3.58.1 13-Dec-2007  yamt sync with head.
 1.3.56.1 26-Dec-2007  ad Sync with head.
 1.3.46.1 09-Jan-2008  matt sync with HEAD
 1.5 11-Dec-2007  lukem use __KERNEL_RCSID()
 1.4 11-Dec-2005  christos branches: 1.4.46; 1.4.56; 1.4.58; 1.4.60;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry branches: 1.3.4;
nuke trailing whitespace
 1.2 28-Nov-2003  keihan branches: 1.2.8; 1.2.10;
s/netbsd.org/NetBSD.org/g
 1.1 09-Sep-2001  tls branches: 1.1.2; 1.1.6; 1.1.14; 1.1.24;
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.1.24.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.14.2 01-Apr-2002  nathanw Add a few files missed in the merge.
 1.1.14.1 09-Sep-2001  nathanw file bf_enc_586.S was added on branch nathanw_sa on 2002-04-01 18:48:05 +0000
 1.1.6.2 07-Feb-2002  jdolecek add manually to the branch - these were somehow missed on merge
 1.1.6.1 09-Sep-2001  jdolecek file bf_enc_586.S was added on branch kqueue on 2002-02-07 07:09:49 +0000
 1.1.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.1.2.1 09-Sep-2001  fvdl file bf_enc_586.S was added on branch thorpej-devvp on 2001-10-01 12:44:02 +0000
 1.2.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.8.1 29-Apr-2005  kent sync with -current
 1.3.4.1 21-Jan-2008  yamt sync with head
 1.4.60.1 13-Dec-2007  bouyer Sync with HEAD
 1.4.58.1 13-Dec-2007  yamt sync with head.
 1.4.56.1 26-Dec-2007  ad Sync with head.
 1.4.46.1 09-Jan-2008  matt sync with HEAD
 1.5 11-Dec-2007  lukem use __KERNEL_RCSID()
 1.4 11-Dec-2005  christos branches: 1.4.46; 1.4.56; 1.4.58; 1.4.60;
merge ktrace-lwp.
 1.3 26-Feb-2005  perry branches: 1.3.4;
nuke trailing whitespace
 1.2 28-Nov-2003  keihan branches: 1.2.8; 1.2.10;
s/netbsd.org/NetBSD.org/g
 1.1 09-Sep-2001  tls branches: 1.1.2; 1.1.6; 1.1.14; 1.1.24;
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.1.24.4 04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.1.24.3 21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.24.2 18-Sep-2004  skrll Sync with HEAD.
 1.1.24.1 03-Aug-2004  skrll Sync with HEAD
 1.1.14.2 01-Apr-2002  nathanw Add a few files missed in the merge.
 1.1.14.1 09-Sep-2001  nathanw file bf_enc_686.S was added on branch nathanw_sa on 2002-04-01 18:48:05 +0000
 1.1.6.2 07-Feb-2002  jdolecek add manually to the branch - these were somehow missed on merge
 1.1.6.1 09-Sep-2001  jdolecek file bf_enc_686.S was added on branch kqueue on 2002-02-07 07:09:49 +0000
 1.1.2.2 01-Oct-2001  fvdl Catch up with -current.
 1.1.2.1 09-Sep-2001  fvdl file bf_enc_686.S was added on branch thorpej-devvp on 2001-10-01 12:44:03 +0000
 1.2.10.1 19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.8.1 29-Apr-2005  kent sync with -current
 1.3.4.1 21-Jan-2008  yamt sync with head
 1.4.60.1 13-Dec-2007  bouyer Sync with HEAD
 1.4.58.1 13-Dec-2007  yamt sync with head.
 1.4.56.1 26-Dec-2007  ad Sync with head.
 1.4.46.1 09-Jan-2008  matt sync with HEAD

RSS XML Feed