aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Collapse)AuthorFilesLines
2004-11-30[CRYPTO]: Standalone VIA PadLock driver.Michal Ludvig1-0/+1
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-30[CRYPTO]: Make some code staticAdrian Bunk3-53/+53
This patch below makes some needlessly global code static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-11-08[CRYPTO]: Add Anubis support.Aaron Grothe5-0/+953
Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-25[CRYPTO]: reduce sha512_transform() stack usage, speedupAndrew Morton1-5/+7
Patch moves large temporary u64 W[80] from stack to ctx struct: * reduces stack usage by 640 bytes * saves one 640-byte memset() per sha512_transform() (we still do it after *all* iterations are done) * quite unexpectedly saves 1.6k of code on i386 because stack offsets now fit into 8bits and many stack addressing insns got 3 bytes smaller: # size sha512.o.org sha512.o text data bss dec hex filename 8281 372 0 8653 21cd sha512.o.org 6649 372 0 7021 1b6d sha512.o # objdump -d sha512.o.org | cut -b9- >sha512.d.org # objdump -d sha512.o | cut -b9- >sha512.d # diff -u sha512.d.org sha512.d [snip] Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-25[CRYPTO]: small sha512 cleanupAndrew Morton1-17/+2
Looks like open-coded be_to_cpu. GCC produces rather poor code for this. be_to_cpu produces asm()s which are ~4 times shorter. Compile-tested only. I am not sure whether input can be 64bit-unaligned. If it indeed can be, replace: ((u64*)(input))[I] -> get_unaligned( ((u64*)(input))+I ) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-25[CRYPTO]: small sha256 cleanupAndrew Morton1-9/+1
Looks like open-coded be_to_cpu. GCC produces rather poor code for this. be_to_cpu produces asm()s which are ~4 times shorter. Compile-tested only. I am not sure whether input can be 32bit-unaligned. If it indeed can be, replace: ((u32*)(input))[I] -> get_unaligned( ((u32*)(input))+I ) Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[CRYPTO]: Deinline large function in blowfish.c Andrew Morton1-1/+1
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-21[CRYPTO]: Put khazad back into tcrypt table.Aaron Grothe1-1/+1
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-19[CRYPTO]: Add Tnepres cipher supportJames Morris4-10/+207
This patch adds support for the kerneli 'Tnepres' cipher, a reversed form of Serpent which was implemented due to problems with the specification. This allows people to maintain compatibility between old kerneli and current kernels. Signed-off-by: Ruben Garcia <ruben@ugr.es> Signed-off-by: Fruhwirth Clemens <clemens@endorphin.org> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-19[CRYPTO]: Fix typo in Kconfig.David S. Miller1-1/+1
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-10-04[CRYPTO]: Add __init and __initdata to aes.cJames Morris1-6/+6
This patch from Herbert V. Riedel <hvr@gnu.org> adds __initdata to the generic AES code where appropriate. I also added __init to f_mult(). Signed-off-by: Herbert V. Riedel <hvr@gnu.org> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-28[CRYPTO]: Whirlpool algorithm updates.Aaron Grothe5-53/+286
Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-14[CRYPTO]: Zero out tfm before freeing in crypto_free_tfm().David S. Miller1-1/+5
Based upon discussions with Ulrich Kuehn (ukuehn@acm.org) Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-07[PATCH] crypto: tea.c xtea_encrypt should use XTEA_DELTAThor Kooda1-1/+1
xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA. Signed-off-by: Thor Kooda <tkooda-patch-kernel@devsec.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-07[PATCH] factor out common <asm/hardirq.h> codeChristoph Hellwig1-1/+0
Since the irq handling rework in 2.5 lots of code in the individual <asm/hardirq.h> files is the same. This patch moves that common code to <linux/hardirq.h>. The following differences existed: - alpha, m68k, m68knommu and v850 were missing the ~PREEMPT_ACTIVE masking in the CONFIG_PREEMPT case of in_atomic(). These architectures don't support CONFIG_PREEMPT else this would have been an easily-spottbale bug - S390 didn't provide synchronize_irq as it doesn't fit into their I/O model. They now get a spurious prototype/macro - ppc added a new preemptible() macro that is provided for all architectures now. Most drivers were using <linux/interrupt.h> as they should, but a few drivers and lots of architecture code has been updated to use <linux/hardirq.h> instead of <asm/hardirq.h> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-26[PATCH] mostly remove module_parm()Rusty Russell1-1/+2
MODULE_PARM() was marked obsolete. Remove it from everything except drivers/ and arch/. Naturally, such a widespread change may introduce bugs for some of the non-trivial cases, and where in doubt I used "0" as permissions arg (ie. won't appear in sysfs). Individual authors should think about whether that would be useful. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-23[CRYPTO]: Add Whirlpool digest algorithm.Aaron Grothe5-1/+1259
Given the recent potential weaknesses in the SHA and MD families, I thought it might not be a bad idea to include another hash/digest algorithm in the kernel. So here is Whirlpool. I chose it for a couple of reasons. o - It is by the same people who did Khazad. I feel pretty good about their work. o - It has been evaluated by NESSIE https://www.cosic.esat.kuleuven.ac.be/nessie/reports/phase1/sagwp3-037_1.pdf o - NESSIE has accepted it as one of the cryptographic primitives o - It will be part of an ISO standard in the revised ISO/IEC 10118-3:2003(E) standard, thanks to NESSIE o - It is patent free and has an implementation in the public domain. Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Email update in crypto/arc4.cJon Oberheide1-2/+2
2004-08-10[CRYPTO]: Typo in crypto/tcrypt.hJames Morris1-1/+1
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Typo in crypto/blowfish.cJames Morris1-3/+3
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Typo in crypto/scatterwalk.cJames Morris1-1/+1
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Typo in crypto/aes.cJames Morris1-1/+1
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Typo in crypto/twofish.cJames Morris1-2/+2
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-10[CRYPTO]: Typo in crypto/KconfigJames Morris1-1/+1
From Nicolas Kaiser <nikai@nikai.net> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-09[CRYPTO]: Add Khazad algorithm.Aaron Grothe5-0/+1034
Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-08-05[PATCH] Re-implemented i586 asm AESJames Morris1-1/+21
This code is a rework of the original Gladman AES code, and does not include any supposed BSD licensed work by Jari Ruusu. Linus converted the Intel asm to Gas format, and made some minor alterations. Fruhwirth's glue module has also been retained, although I rebased the table generation and key scheduling back to Gladman's code. I've tested this code with some standard FIPS test vectors, and large FTP transfers over IPSec (both locally and over the wire to a system running the generic AES implementation). Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-04[PATCH] Drop asm i586 AES code.James Morris1-22/+2
This patch reverts the i586 AES module. A new one should be ready soon. Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-31[CRYPTO]: Add i586 optimized AESJames Morris1-2/+22
Below is an updated version of patch from Fruhwirth which integrates the Gladman AES code into the crypto API. I've tried to ensure that this is done as simply as possible: the user gets the asm version by default if it's suitable. I've also now added the alternate GPL licensing provided by Brian Gladman, and licensed the code as GPL. Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-07-21[CRYPTO]: Fix stack overrun in crypt().Herbert Xu1-2/+2
The stack allocation in crypt() is bogus as whether tmp_src/tmp_dst is used is determined by factors unrelated to nbytes and src->length/dst->length. Since the condition for whether tmp_src/tmp_dst are used is very complex, let's allocate them always instead of guessing. This fixes a number of weird crashes including those AES crashes that people have been seeing with the 2.4 backport + ipt_conntrack. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-07-09[CRYPTO]: Set CRYPTO_TFM_RES_BAD_KEY_LEN in twofish.Thomas DuBuisson1-0/+3
2004-07-09[CRYPTO]: Remove lazy allocation from deflate.James Morris1-45/+32
Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-06-29[CRYPTO]: Add TEA and XTEA algorithms.Aaron Grothe5-1/+473
The following is a patch against 2.6.7 (should apply cleanly to 2.6.5 or above). It implements the Tiny Encryption Algorithm (TEA) and the Xtended TEA (XTEA) algorithms. TEA goes back to 1994 and is a good algorithm espically for memory constrained systems. It is similar in concept to the IDEA crypto. It does NOT have any patent restrictions and has been put in the public domain by Wheeler and Needham. Tea is used in quite a few products such as filesafe and even Microsoft's Xbox. Signed-off-by: Aaron Grothe <ajgrothe@yahoo.com> Signed-off-by: James Morris <jmorris@redhat.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-06-10[CRYPTO]: Fix digest.c kmapping sg entries > page in length.Clay Haapala1-6/+21
Below is the patch, against 2.6.7-rc2, to fix crypto/digest.c to do multiple kmap()/kunmap() for scatterlist entries which have a size greater than a single page, originally found and fixed by N.C.Krishna Murthy <krmurthy@cisco.com>. Signed-off-by: Clay Haapala <chaapala@cisco.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-05-25[CRYPTO]: Fix two scatterwalk problems.Christophe Saout2-3/+5
- After calling scatterwalk_copychunks walk_in might point to the next page which will break scatterwalk_samebuf (in this case src_p should point to tmp_src anyway and scatterwalk_samembuf returns 0). - scatterwalk_samebuf should also check for equal offsets inside the page (just bad for performance in some cases).
2004-05-07[CRYPTO]: Fix typing in crc32c's chksum_updateClay Haapala1-2/+2
2004-04-27[CRYPTO]: Provide crc32c as a type of digest.Clay Haapala4-2/+229
2004-04-26[CRYPTO]: Add module aliases for des and sha512.Michal Ludvig2-0/+4
2004-04-23[CRYPTO]: Add module autoloads for null module.Michal Ludvig1-0/+4
2004-04-21[PATCH] s390: crypto api.Andrew Morton1-0/+12
From: Martin Schwidefsky <schwidefsky@de.ibm.com> Add support for z990 crypto instructions to in-kernel crypto api.
2004-04-11[CRYPTO]: ARC4 Kconfig clarification.Jon Oberheide1-3/+4
2004-03-21[CRYPTO]: Remove confusing TODO comment in arc4.cJon Oberheide1-4/+0
2004-03-21[CRYPTO]: Add Michael MIC algorithm.James Morris5-1/+260
From Jouni Malinen <jkmaline@cc.hut.fi> Added Michael MIC keyed digest for TKIP (IEEE 802.11i/WPA). This algorithm is quite weak due to the requirements for compatibility with old legacy wireless LAN hardware that does not have much CPU power. Consequently, this should not really be used with anything else than TKIP. Michael MIC is calculated over the payload of the IEEE 802.11 header which makes it easier to add TKIP support for old wireless LAN cards. An additional authenticated data area is used (but not send separately) to authenticate source and destination addresses.
2004-03-21[CRYPTO]: Add setkey operation for digests.James Morris3-0/+16
From Jouni Malinen <jkmaline@cc.hut.fi> Added support for using keyed digest with an optional dit_setkey handler. This does not change the behavior of the existing digest algorithms, but allows new ones to add setkey handler that can be used to initialize the algorithm with a key or seed. setkey is to be called after init, but before any of the update call(s).
2004-03-09[CRYPTO]: Fix arc4 test vector.James Morris1-1/+1
2004-03-06[PATCH] arc4.c compile fix for older gcc'sAndrew Morton1-2/+3
Declarations come before statements, please. Current gcc warns about this too, bless them: crypto/arc4.c: In function `arc4_crypt': crypto/arc4.c:65: warning: ISO C90 forbids mixed declarations and code
2004-03-03[CRYPTO]: Add ARC4 module.Jon Oberheide5-1/+268
2004-03-01[PATCH] fix in-place de/encryption bug with highmemAndrew Morton2-8/+17
From: Christophe Saout <christophe@saout.de> This patch fixes the bug where in-place encryption was not detected when the same highmem pages is mapped twice to different virtual addresses. This adds a parameter to xxx_process to indicate whether this is an in-place encryption and moves the responsability to the caller using a helper function scatterwalk.h.
2004-03-01[PATCH] move scatterwalk functions to own fileAndrew Morton5-129/+176
From: Christophe Saout <christophe@saout.de> I've cleaned up the latest patches and adjusted the header files. This patch moves the scatterwalk functions from cipher.c to scatterwalk.c and adds a header file.
2004-01-31Resolve conflicts in sha256.c change, use Linus's version.David S. Miller2-5/+5
2004-01-29[CRYPTO]: Make padding[] array static in sha{256,512}_final().James Morris2-2/+2
Also happens to work around a GCC bug.
2004-01-29Fix sha256 padding block initializer to be static.Linus Torvalds1-1/+1
Jakub points out that having an automatic array is not only bad for performance (and stack usage), gcc has also historically had lots of bugs here, and gcc-3.2.3 seems to miscompile it otherwise.
2004-01-27[CRYPTO]: Help gcc optimize sha256/sha512 better.Jean-Luc Cooke2-4/+4
2003-12-24[CRYPTO]: Allow tcrypt module to be unloaded.James Morris1-0/+7
2003-12-24[CRYPTO]: Clean up tcrypt module, part 2Erlend Aasland1-2002/+1251
2003-12-24[CRYPTO]: Clean up tcrypt module, part 1Kartikey Mahendra Bhatt2-3160/+1622
2003-10-29[CRYPTO]: crypto_alg_lookup() should fail when passed a NULL name.Hideaki Yoshifuji1-0/+3
2003-10-04[CRYPTO]: Kconfig URL updates.Petri T. Koistinen1-3/+3
2003-09-26[PATCH] select ZLIB_{IN,DE}FLATEAdrian Bunk1-0/+2
Similar to the patch Brian Gerst sent for CRC32, this patch changes ZLIB_{IN,DE}FLATE to be select'ed. The dependencies are much better maintainable that way.
2003-09-11[CRYPTO]: Add alg. type to /proc/crypto output.Erlend Aasland1-0/+8
2003-09-04[CRYPTO]: Use try_then_request_module().Rusty Russell3-45/+5
try_then_request_module() does what crypto/autoload.c is doing, so replace it. Fix try_then_request_module(), too (thanks James).
2003-09-03[CRYPTO]: remove duplicate #includes in crypto/Randy Dunlap1-1/+0
2003-08-17[CRYPTO]: Fix cast{5,6} build after cia_ivsize removal.David S. Miller2-2/+0
2003-08-17[IPSEC]: Fix oops using null ciper in CBC mode.Mikael Ylikoski8-13/+3
2003-08-15Merge bk://kernel.bkbits.net/davem/offset_in_page-2.5Linus Torvalds2-72/+72
into home.osdl.org:/home/torvalds/v2.5/linux
2003-08-15[MM]: Add and use offset_in_page() convenience macro.David S. Miller2-72/+72
Based upon patches from Yoshfuji Hideaki <yoshfuji@linux-ipv6.org>
2003-08-15[CRYPTO]: Add CAST6 (CAST-256) algorithm.Kartikey Mahendra Bhatt5-2/+765
2003-08-11[CRYPTO]: Add cast5, integration by jmorris@intercode.com.auKartikey Mahendra Bhatt5-0/+1029
2003-08-01[PATCH] janitor: don't init statics to 0Randy Dunlap1-1/+1
From: Leann Ogasawara <ogasawara@osdl.org> Uninitialize static variables initialized to 0 so they are pushed to the .bss instead of .data.
2003-06-03[CRYPTO]: Use "select" kconfig facility instead of fragile defaults.James Morris1-10/+0
2003-05-29[CRYPTO]: Default CRYPTO and MD5 to y if IPV6_PRIVACY is enabled.Moritz Mühlenhoff1-2/+2
2003-05-26[CRYPTO]: Fix compiler warnings in sha512.cHideaki Yoshifuji1-43/+43
2003-05-17[CRYPTO]: Update deflate dependencies.Mitsuru Kanda1-1/+1
2003-05-16Make request_module() take a printf-like vararg argument instead of a string.Linus Torvalds1-1/+1
This is what a lot of the callers really wanted.
2003-05-15[CRYPTO]: Fix memcpy/memset args.Andrew Morton4-10/+10
2003-05-12[CRYPTO]: Fix config dependencies.James Morris1-5/+9
2003-04-01Merge nuts.ninka.net:/home/davem/src/BK/network-2.5David S. Miller1-1/+13
into nuts.ninka.net:/home/davem/src/BK/net-2.5
2003-03-31[CRYPTO]: deflate.c needs slab.hDavid S. Miller1-0/+1
2003-03-31[CRYPTO]: deflate module: workaround zlib bug.James Morris1-1/+12
2003-03-30[SOFTIRQ]: Move softirq implementation to common area, add debug check.David S. Miller1-1/+1
1) Every arch implemented local_bh_foo identically, move to linux/interrupt.h 2) Kill all asm/softirq.h references 3) Kill asm/softirq.h itself 4) Move local_bh_disable() out of line to kernel/softirq.c 5) Add BUG check on irqs_disabled() to local_bh_disable()
2003-03-28[CRYPTO]: Add Deflate algorithm to crypto API.James Morris11-20/+455
2003-03-23[CRYPTO]: Make use of crypto_exit_ops() during crypto_free_tfm().James Morris1-4/+1
2003-03-20[CRYPTO]: Include linux/errno.h as appropriate.David S. Miller6-0/+6
2003-03-07[CRYPTO]: Eliminate crypto_tfm.crt_ctx, from Adam Richter.James Morris4-10/+13
2003-03-07[CRYPTO]: Add encrypt_iv() and decrypt_iv() methods.James Morris1-17/+57
2003-03-07[CRYPTO]: Move km_types out of header.James Morris2-8/+9
2003-02-03Merge davem@nuts.ninka.net:/home/davem/src/BK/net-2.5David S. Miller4-162/+220
into kernel.bkbits.net:/home/davem/net-2.5
2003-02-03kbuild: Remove export-objs := ... statementsKai Germaschewski1-2/+0
One of the goals of the whole new modversions implementation: export-objs is gone for good!
2003-02-02[CRYPTO]: in/out scatterlist support for ciphers.James Morris4-162/+220
- Merge scatterwalk patch from Adam J. Richter <adam@yggdrasil.com> API change: cipher methods now take in/out scatterlists and nbytes params. - Merge gss_krb5_crypto update from Adam J. Richter <adam@yggdrasil.com> - Add KM_SOFTIRQn (instead of KM_CRYPTO_IN etc). - Add asm/kmap_types.h to crypto/internal.h - Update cipher.c credits. - Update cipher.c documentation.
2003-01-13[CRYPTO] Add AES and MD4 to tcrypto crypto_alg_available() test.James Morris1-1/+1
2003-01-13[CRYPTO] remove superfluous goto from des module init exception pathJames Morris1-3/+1
2003-01-13[CRYPTO]: Add support for SHA-386 and SHA-512James Morris5-1/+610
- Merged SHA-384 and SHA-512 code from Kyle McMartin <kyle@gondolin.debian.net> - Added test vectors. - Documentation and credits updates.
2003-01-09[CRYPTO]: More credits for AES.James Morris1-0/+2
2003-01-09[CRYPTO]: Use appropriate defaults if AH/ESP is enabled.David S. Miller1-0/+5
2003-01-08[CRYPTO]: Fix typo in aes.o rule.David S. Miller1-1/+1
2003-01-08[CRYPTO]: Add AES algorithm.James Morris5-0/+690
- Merged AES code from Adam J. Richter <adam@yggdrasil.com> - Add kconfig help and test vector code from Martin Clausen <martin@ostenfeld.dk> - Minor cleanups: removed EXPORT_NO_SYMBOLS (not needed for 2.5), removed debugging code etc. - Documentation updates.
2002-12-31Fix up numerous '`xxxxx' is not at beginning of declaration' style warnings.Dave Jones3-7/+7
2002-12-29[PATCH] Missed one 'try_inc_mod_count()'Christoph Hellwig1-1/+1
I missed one hunk when splitting the patch for removing try_inc_mod_count().
2002-12-29[PATCH] avoid deprecated module functions in core codeChristoph Hellwig1-2/+1
A second start at removing them from kernel/*.c and fs/*.c. Note that module_put is fine for a NULL argument.
2002-12-14[PATCH] Remove Rules.make from Makefiles (3/3)Brian Gerst1-2/+0
Makefiles no longer need to include Rules.make, which is currently an empty file. This patch removes it from the remaining Makefiles, and removes the empty Rules.make file.
2002-12-07[CRYPTO]: internal.h needs init.hDavid S. Miller1-0/+1
2002-12-07[CRYPTO]: Simplify crypto memory allocation.Adam J. Richter1-28/+4
2002-12-05[CRYPTO]: Dont compile procfs stuff if procfs is not enabled.James Morris4-86/+119
2002-12-04[CRYPTO]: Add serpent algorithm.James Morris5-1/+720
2002-11-25[CRYPTO]: Forgot to add twofish.c :)David S. Miller1-0/+899
2002-11-25[CRYPTO]: Add twofish algorithm.James Morris6-29/+482
2002-11-18[CRYPTO]: Kill stray CRYPTO_ALG_TYPE_COMP.David S. Miller1-1/+1
2002-11-18[CRYPTO]: Forgot to add crypto_null.c in previous commit.David S. Miller1-0/+132
2002-11-18[CRYPTO]: Add null algorithms and minor cleanups.James Morris4-8/+15
2002-11-18[CRYPTO]: Kill accidental double memset.Jeff Garzik1-2/+0
2002-11-14[CRYPTO] kstack cleanup (v0.28)James Morris6-32/+115
2002-11-13[PATCH] module_name macroRusty Russell1-2/+1
Fixes crypto so it compiles with !CONFIG_MODULES, and cleans up two other cases which did #ifdef CONFIG_MODULES.
2002-11-06[CRYPTO]: minor updatesJames Morris3-5/+5
- Fixed min keysize bug for Blowfish (it is 32, not 64). - Documentation updates.
2002-11-06[CRYPTO]: Make sha256.c more palatable to GCCs optimizers.David S. Miller1-28/+36
2002-11-06[CRYPTO]: Add blowfish algorithm.James Morris8-50/+946
2002-11-06[CRYPTO]: Add in crypto/sha256.cDavid S. Miller1-0/+354
2002-11-06[CRYPTO]: Add SHA256 plus bug fixes.James Morris5-6/+371
- Bugfix in sha1 copyright - Add support for SHA256, test vectors and HMAC test vectors - Remove obsolete atomic messages.
2002-11-05The crypto auto-load should only be enabled if crypto in enabled.Linus Torvalds1-2/+3
2002-11-04[IPSEC/CRYPTO]: Allocate work buffers instead of using kstack.David S. Miller2-5/+21
2002-11-03[CRYPTO]: Rework HMAC interface.James Morris6-132/+278
2002-11-03Merge nuts.ninka.net:/home/davem/src/BK/network-2.5David S. Miller4-9/+55
into nuts.ninka.net:/home/davem/src/BK/net-2.5
2002-11-01[CRYPTO]: Add crypto_alg_available interface.James Morris4-7/+52
2002-11-01[CRYPTO]: Cleanups based upon feedback from jgarzik.James Morris2-2/+3
- make crypto_cipher_flags() return u32 (this means it will return the actual flags reliably, instead of being just a boolean op). - simplify error path in crypto_init_flags().
2002-10-30Merge master.kernel.org:/home/davem/BK/net-2.5Linus Torvalds3-37/+44
into penguin.transmeta.com:/home/penguin/torvalds/repositories/kernel/linux
2002-10-29[CRYPTO]: Uninline some functions to save some bloat.James Morris3-4/+3
2002-10-29[CRYPTO]: Cleanups based upon suggestions by Jeff Garzik.James Morris12-122/+107
- Changed unsigned to unsigned int in algos. - Consistent use of u32 for flags throughout api. - Use of unsigned int rather than int for counting things which must be positive, also replaced size_ts to keep code simpler and lessen bloat on some archs. - got rid of some unneeded returns. - const correctness.
2002-10-29[CRYPTO]: Fix some credits.James Morris1-1/+1
2002-10-29Delete old-style config files.Linus Torvalds2-37/+0
2002-10-29[PATCH] new kernel configuration 7/7Roman Zippel1-0/+44
This adds the remaining config files.
2002-10-28[CRYPTO]: Clean up header file usage.David S. Miller6-21/+6
2002-10-28[CRYPTO]: Build/warning fixups.David S. Miller1-1/+1
2002-10-28[CRYPTO]: kunmap does not return a value.David S. Miller1-2/+2
2002-10-28[CRYPTO]: Update to IV get/set interface.James Morris1-5/+13
2002-10-28[CRYPTO]: Cleanups and more consistency checks.James Morris9-62/+53
- Removed local_bh_disable() from kmap wrapper, not needed now with two atomic kmaps. - Nuked atomic flag, use in_softirq() instead. - Converted crypto_kmap() and crypto_yield() to check in_softirq(). - Check CRYPTO_MAX_CIPHER_BLOCK_SIZE during alg init. - Try to initialize as much at compile time as possible (feedback from Christoph Hellwig). - Clean up list handling a bit (feedback from Christoph Hellwig).
2002-10-27[CRYPTO]: Run tcrypt through lindent, plus doc update.James Morris2-345/+411
2002-10-27[CRYPTO]: Algorithm lookup API change plus bug fixes.James Morris11-130/+180
- API change: implemented simplest version of algorithm lookup by name (feedback from Rusty Russell and Herbert Valerio Riedel). - Now need to add the following line to to /etc/modules.conf for dynamic module loading: alias des3_ede des
2002-10-26[CRYPTO]: Forgotten file add in previous commit.David S. Miller1-0/+252
2002-10-26[CRYPTO]: Add MD4.James Morris7-4/+104
2002-10-26[CRYPTO]: More bug fixes and cleanups.James Morris2-0/+4
- added back USAGI copyright for HMAC (lost earlier during some refactoring). - bugfix: make sure tfm pointer is set to NULL during post allocation failure path in crypto_alloc_tfm()
2002-10-26[CRYPTO]: Bug fixes and cleanups.James Morris4-18/+14
- try_inc_mod_count() already does what crypto_alg_get() was trying to do. (feedback from Andrew Morton). - Moved the BUG_ON() in crypto_unregister_alg() further up, no need to bother iterating over the list. - Always use kmap_atomic (feedback from Andrew Morton). Implemented two atomic kmaps, KM_USER for user context and KM_SOFTIRQ for softirq context. - Fixup KM_CRYPTO_ placement so Dave does not go crazy.
2002-10-24[CRYPTO]: Use kmod to try to autoload modules.James Morris4-74/+127
2002-10-24[CRYPTO]: Use try_inc_mod_count and semaphore for alg list.James Morris5-18/+26
2002-10-24[CRYPTO]: Cleanups based upon feedback from Rusty and jgarzikJames Morris7-331/+339
- s/__u/u/ - s/char/u8/ - Fixed bug in cipher.c, page remapped was off by one block
2002-10-23[CRYPTO]: Add in 3des implementation.James Morris5-136/+447
2002-10-23[CRYPTO]: Fix compiler warnings and build failures.David S. Miller5-13/+20
- Add missing includes of asm/byteorder.h - Fix sha1.c compiler crash with egcs-2.92.x - Use correct printf format for size_t types.
2002-10-23[CRYPTO]: Add initial crypto api subsystem.James Morris13-0/+4186