rsa: rename FIT_RSASSA_PSS to RSASSA_PSS and move symbols under lib/rsa
This renames FIT_RSASSA_PSS symbols to drop the FIT_ prefix to avoid potential confusion since there's nothing FIT specific to those symbols. It also isn't really related to booting, so boot/Kconfig is an odd place for them to live. Since they make sense only in relation with RSA, simply move them to lib/rsa where it makes more sense for them to reside. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
@@ -67,6 +67,20 @@ config SPL_RSA_VERIFY_WITH_PKEY
|
||||
key properties will be calculated on the fly in verification code
|
||||
in the SPL.
|
||||
|
||||
config RSASSA_PSS
|
||||
bool "Support rsassa-pss signature scheme"
|
||||
depends on RSA_VERIFY
|
||||
help
|
||||
Enable this to support the pss padding algorithm as described
|
||||
in the rfc8017 (https://tools.ietf.org/html/rfc8017).
|
||||
|
||||
config SPL_RSASSA_PSS
|
||||
bool "Support rsassa-pss signature scheme within SPL"
|
||||
depends on SPL_RSA_VERIFY
|
||||
help
|
||||
Enable this to support the pss padding algorithm as described
|
||||
in the rfc8017 (https://tools.ietf.org/html/rfc8017) within SPL.
|
||||
|
||||
config RSA_SOFTWARE_EXP
|
||||
bool "Enable driver for RSA Modular Exponentiation in software"
|
||||
depends on DM
|
||||
|
||||
@@ -421,7 +421,7 @@ static int rsa_sign_with_key(EVP_PKEY *pkey, struct padding_algo *padding_algo,
|
||||
goto err_sign;
|
||||
}
|
||||
|
||||
if (CONFIG_IS_ENABLED(FIT_RSASSA_PSS) && padding_algo &&
|
||||
if (CONFIG_IS_ENABLED(RSASSA_PSS) && padding_algo &&
|
||||
!strcmp(padding_algo->name, "pss")) {
|
||||
if (EVP_PKEY_CTX_set_rsa_padding(ckey,
|
||||
RSA_PKCS1_PSS_PADDING) <= 0) {
|
||||
|
||||
@@ -89,7 +89,7 @@ U_BOOT_PADDING_ALGO(pkcs_15) = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#if CONFIG_IS_ENABLED(FIT_RSASSA_PSS)
|
||||
#if CONFIG_IS_ENABLED(RSASSA_PSS)
|
||||
static void u32_i2osp(uint32_t val, uint8_t *buf)
|
||||
{
|
||||
buf[0] = (uint8_t)((val >> 24) & 0xff);
|
||||
|
||||
Reference in New Issue
Block a user