diff options
author | Nick Terrell <terrelln@fb.com> | 2018-03-30 21:14:53 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-20 18:58:30 +0200 |
commit | d28fc3dbe1918333730d62aa5f0d84b6fb4e7254 (patch) | |
tree | 24a85c602954a20c0ea7c7fae88e627416017b39 /crypto/Kconfig | |
parent | crypto: ecc - Actually remove stack VLA usage (diff) | |
download | linux-d28fc3dbe1918333730d62aa5f0d84b6fb4e7254.tar.xz linux-d28fc3dbe1918333730d62aa5f0d84b6fb4e7254.zip |
crypto: zstd - Add zstd support
Adds zstd support to crypto and scompress. Only supports the default
level.
Previously we held off on this patch, since there weren't any users.
Now zram is ready for zstd support, but depends on CONFIG_CRYPTO_ZSTD,
which isn't defined until this patch is in. I also see a patch adding
zstd to pstore [0], which depends on crypto zstd.
[0] lkml.kernel.org/r/9c9416b2dff19f05fb4c35879aaa83d11ff72c92.1521626182.git.geliangtang@gmail.com
Signed-off-by: Nick Terrell <terrelln@fb.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 76e8c88c97b4..a5c5f7bbec98 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -1695,6 +1695,15 @@ config CRYPTO_LZ4HC help This is the LZ4 high compression mode algorithm. +config CRYPTO_ZSTD + tristate "Zstd compression algorithm" + select CRYPTO_ALGAPI + select CRYPTO_ACOMP2 + select ZSTD_COMPRESS + select ZSTD_DECOMPRESS + help + This is the zstd algorithm. + comment "Random Number Generation" config CRYPTO_ANSI_CPRNG |