]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rsa: add CONFIG_RSA_VERIFY_WITH_PKEY config
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 21 Feb 2020 06:12:56 +0000 (15:12 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 12 Mar 2020 12:20:39 +0000 (08:20 -0400)
In the next couple of commits, under new CONFIG_RSA_VERIFY_WITH_PKEY,
rsa_verify() will be extended to be able to perform RSA decryption without
additional RSA key properties from FIT image, i.e. rr and n0inv.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/Kconfig

index 18a075c17478dc6215bfad66595b37e791b754bb..89697219db2d278b83225649d010301a2ef209b6 100644 (file)
@@ -28,6 +28,20 @@ config RSA_VERIFY
        help
          Add RSA signature verification support.
 
+config RSA_VERIFY_WITH_PKEY
+       bool "Execute RSA verification without key parameters from FDT"
+       select RSA_VERIFY
+       help
+         The standard RSA-signature verification code (FIT_SIGNATURE) uses
+         pre-calculated key properties, that are stored in fdt blob, in
+         decrypting a signature.
+         This does not suit the use case where there is no way defined to
+         provide such additional key properties in standardized form,
+         particularly UEFI secure boot.
+         This options enables RSA signature verification with a public key
+         directly specified in image_sign_info, where all the necessary
+         key properties will be calculated on the fly in verification code.
+
 config RSA_SOFTWARE_EXP
        bool "Enable driver for RSA Modular Exponentiation in software"
        depends on DM