summaryrefslogtreecommitdiff
path: root/crypto/internal.h
AgeCommit message (Collapse)Author
2004-09-07[PATCH] factor out common <asm/hardirq.h> codeChristoph Hellwig
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-03-01[PATCH] move scatterwalk functions to own fileAndrew Morton
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.
2003-09-04[CRYPTO]: Use try_then_request_module().Rusty Russell
try_then_request_module() does what crypto/autoload.c is doing, so replace it. Fix try_then_request_module(), too (thanks James).
2003-03-30[SOFTIRQ]: Move softirq implementation to common area, add debug check.David S. Miller
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 Morris
2003-03-07[CRYPTO]: Eliminate crypto_tfm.crt_ctx, from Adam Richter.James Morris
2003-03-07[CRYPTO]: Move km_types out of header.James Morris
2003-02-02[CRYPTO]: in/out scatterlist support for ciphers.James Morris
- 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.
2002-12-07[CRYPTO]: internal.h needs init.hDavid S. Miller
2002-12-05[CRYPTO]: Dont compile procfs stuff if procfs is not enabled.James Morris
2002-11-14[CRYPTO] kstack cleanup (v0.28)James Morris
2002-11-01[CRYPTO]: Add crypto_alg_available interface.James Morris
2002-11-01[CRYPTO]: Cleanups based upon feedback from jgarzik.James Morris
- 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-29[CRYPTO]: Cleanups based upon suggestions by Jeff Garzik.James Morris
- 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-28[CRYPTO]: kunmap does not return a value.David S. Miller
2002-10-28[CRYPTO]: Cleanups and more consistency checks.James Morris
- 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]: Algorithm lookup API change plus bug fixes.James Morris
- 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]: Bug fixes and cleanups.James Morris
- 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 Morris
2002-10-23[CRYPTO]: Fix compiler warnings and build failures.David S. Miller
- 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 Morris