crypto: Add LZO compression support to the crypto interface
Subsystems (2)
PATCH 3/5 crypto: Add LZO compression support to the crypto interface
Add LZO1X compression support to the crypto interface, including a couple of tests.
Also convert test_deflate into a more generic test_compress() and avoid duplicating the data for compression and decompression tests since this can always work both ways in the compression case.
Signed-off-by Richard Purdie <[email protected]>
--- crypto/Kconfig | 8 +++ crypto/Makefile | 1 crypto/lzo.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ crypto/tcrypt.c | 43 ++++++++------------ crypto/tcrypt.h | 75 +++++++++++++++++++---------------- 5 files changed, 190 insertions(+), 57 deletions(-)
crypto/Kconfig +8 -0
@@ -406,6 +406,14 @@ config CRYPTO_DEFLATE You will most probably want this if using IPSec. +config CRYPTO_LZO + tristate "LZO compression algorithm" + depends on CRYPTO + select LZO + help + Enable use of the LZO compression algorithm through the crypto + subsystem. + config CRYPTO_MICHAEL_MIC tristate "Michael MIC keyed digest algorithm" select CRYPTO_ALGAPI
crypto/Makefile +1 -0
@@ -44,6 +44,7 @@ obj-$(CONFIG_CRYPTO_TEA) += tea.o obj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o obj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o +obj-$(CONFIG_CRYPTO_LZO) += lzo.o obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o obj-$(CONFIG_CRYPTO_CRC32C) += crc32c.o
crypto/lzo.c new file +120 -0
120 lines not on this page · raw message
crypto/tcrypt.c +19 -24
104 lines not on this page · raw message
crypto/tcrypt.h +42 -33
91 lines not on this page · raw message
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/