]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
crypto: keywrap - enable compilation
authorStephan Mueller <smueller@chronox.de>
Mon, 21 Sep 2015 18:58:56 +0000 (20:58 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Oct 2015 13:05:06 +0000 (21:05 +0800)
Hook keywrap source code into Kconfig and Makefile

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/Makefile

index fc934444d3a2b6cfd209b366f29c24abc9df4a84..7240821137fde371f0e32d9ae8ac25b64ab58862 100644 (file)
@@ -348,6 +348,13 @@ config CRYPTO_XTS
          key size 256, 384 or 512 bits. This implementation currently
          can't handle a sectorsize which is not a multiple of 16 bytes.
 
+config CRYPTO_KEYWRAP
+       tristate "Key wrapping support"
+       select CRYPTO_BLKCIPHER
+       help
+         Support for key wrapping (NIST SP800-38F / RFC3394) without
+         padding.
+
 comment "Hash modes"
 
 config CRYPTO_CMAC
index d897e0b2be272bb6160d7a6d471dfc5317071931..f7aba923458d3895b057ebdda6a4b39f1c385d02 100644 (file)
@@ -70,6 +70,7 @@ obj-$(CONFIG_CRYPTO_CTS) += cts.o
 obj-$(CONFIG_CRYPTO_LRW) += lrw.o
 obj-$(CONFIG_CRYPTO_XTS) += xts.o
 obj-$(CONFIG_CRYPTO_CTR) += ctr.o
+obj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o
 obj-$(CONFIG_CRYPTO_GCM) += gcm.o
 obj-$(CONFIG_CRYPTO_CCM) += ccm.o
 obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o