]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00230538-7: CAAM: Add build configuration for SM API
authorSteve Cornelius <steve.cornelius@freescale.com>
Fri, 19 Oct 2012 21:48:59 +0000 (14:48 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:38 +0000 (08:35 +0200)
This adds build configuration information for the prototype CAAM
Secure Memory API, and the example/test module that accompanies it.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
drivers/crypto/caam/Kconfig
drivers/crypto/caam/Makefile

index a4637711e9bc58a6e3f440697afc0efc27f3828b..d9367cd25526171977f34dd3cf23dca40a0ca47c 100644 (file)
@@ -108,4 +108,35 @@ config CRYPTO_DEV_FSL_CAAM_RNG_TEST
        help
          Selecting this will enable self-test for caam rng.
 
+config CRYPTO_DEV_FSL_CAAM_SM
+       boolean "CAAM Secure Memory / Keystore API (EXPERIMENTAL)"
+       default n
+       help
+         Enables use of a prototype kernel-level Keystore API with CAAM
+         Secure Memory for insertion/extraction of bus-protected secrets.
+
+config CRYPTO_DEV_FSL_CAAM_SM_SLOTSIZE
+       int "Size of each keystore slot in Secure Memory"
+       depends on CRYPTO_DEV_FSL_CAAM_SM
+       range 5 9
+       default 7
+       help
+         Select size of allocation units to divide Secure Memory pages into
+         (the size of a "slot" as referenced inside the API code).
+         Established as powers of two.
+         Examples:
+               5 => 32 bytes
+               6 => 64 bytes
+               7 => 128 bytes
+               8 => 256 bytes
+               9 => 512 bytes
+
+config CRYPTO_DEV_FSL_CAAM_SM_TEST
+       boolean "CAAM Secure Memory - Keystore Test/Example (EXPERIMENTAL)"
+       depends on CRYPTO_DEV_FSL_CAAM_SM
+       default n
+       help
+         Example thread to exercise the Keystore API and to verify that
+         stored and recovered secrets can be used for general purpose
+         encryption/decryption.
 
index deee4b3a44df45f981869e1c696a8d53769e419a..c7470e13e0ea080f24f4537ee70561e4ba7f0672 100644 (file)
@@ -6,6 +6,8 @@ obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o
 obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o
 obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API) += caamhash.o
 obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API) += caamrng.o
+obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_SM) += sm_store.o
+obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST) += sm_test.o
 
 caam-objs := ctrl.o jr.o error.o key_gen.o