From: Steve Cornelius Date: Fri, 19 Oct 2012 21:48:59 +0000 (-0700) Subject: ENGR00230538-7: CAAM: Add build configuration for SM API X-Git-Tag: v3.0.35-fsl~311 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4f885326d32ec797e4115609621d6e077740e52b;p=karo-tx-linux.git ENGR00230538-7: CAAM: Add build configuration for SM API 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 Signed-off-by: Terry Lv --- diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig index a4637711e9bc..d9367cd25526 100644 --- a/drivers/crypto/caam/Kconfig +++ b/drivers/crypto/caam/Kconfig @@ -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. diff --git a/drivers/crypto/caam/Makefile b/drivers/crypto/caam/Makefile index deee4b3a44df..c7470e13e0ea 100644 --- a/drivers/crypto/caam/Makefile +++ b/drivers/crypto/caam/Makefile @@ -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