Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 073bc4bb authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

crypto: msm: Add support for FIPS complience



FIPS140-2 certification asks to do a Power on Known Answer tests on each
algorithm which is getting certified. This patch implements the self tests
and hardcoded test vectors.  Also, we need to verify the integrity of
kernel as soon as it boots up. This patch also adds an ioctl for
integrity test along with ioctl to query FIPS status (pass / fail) from
user land.
also, The piece of code is added for FIPS compliance DRBG under
drivers/char/hw_random

Change-Id: Ib5f4872e7c88161b29ac526eef7e3fbc674456f7
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent 8ae7326c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -316,6 +316,8 @@ config HW_RANDOM_TPM
config HW_RANDOM_MSM
	tristate "Qualcomm MSM Random Number Generator support"
	depends on HW_RANDOM && ARCH_MSM
	select CRYPTO_AES
	select CRYPTO_ECB
	default n
	---help---
	  This driver provides kernel-side support for the Random Number
+1 −1
Original line number Diff line number Diff line
@@ -25,6 +25,6 @@ obj-$(CONFIG_HW_RANDOM_PICOXCELL) += picoxcell-rng.o
obj-$(CONFIG_HW_RANDOM_PPC4XX) += ppc4xx-rng.o
obj-$(CONFIG_HW_RANDOM_PSERIES) += pseries-rng.o
obj-$(CONFIG_HW_RANDOM_EXYNOS)	+= exynos-rng.o
obj-$(CONFIG_HW_RANDOM_MSM) += msm_rng.o
obj-$(CONFIG_HW_RANDOM_MSM) += msm_rng.o fips_drbg.o ctr_drbg.o msm_fips_selftest.o
obj-$(CONFIG_HW_RANDOM_TPM) += tpm-rng.o
obj-$(CONFIG_HW_RANDOM_BCM2835) += bcm2835-rng.o
+938 −0

File added.

Preview size limit exceeded, changes collapsed.

+114 −0

File added.

Preview size limit exceeded, changes collapsed.

+290 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading