summaryrefslogtreecommitdiff
path: root/include/u-boot
diff options
context:
space:
mode:
authorSESA644425 <[email protected]>2022-03-09 01:27:15 -0800
committerTom Rini <[email protected]>2022-04-11 11:39:19 -0400
commitc755aa8a1dc2f2b819ce36148248ebe93bbc7f86 (patch)
treea66f046d74706b2ac4b2b04cf58cc4df969da89f /include/u-boot
parent7262ff7e564c8b7d81f940af242c20f832ee7511 (diff)
lib: rsa: Fix const-correctness of rsassa_pss functions
Prior to introduction of modifications in rsassa_pss functions related to padding verification, doing a pass to update const-correctness in targeted functions to comply with coding-rules and avoid const-cast Signed-off-by: SESA644425 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/u-boot')
-rw-r--r--include/u-boot/rsa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/u-boot/rsa.h b/include/u-boot/rsa.h
index b9634e38d9a..085363eb1e5 100644
--- a/include/u-boot/rsa.h
+++ b/include/u-boot/rsa.h
@@ -101,11 +101,11 @@ int rsa_verify_with_pkey(struct image_sign_info *info,
const void *hash, uint8_t *sig, uint sig_len);
int padding_pkcs_15_verify(struct image_sign_info *info,
- uint8_t *msg, int msg_len,
+ const uint8_t *msg, int msg_len,
const uint8_t *hash, int hash_len);
int padding_pss_verify(struct image_sign_info *info,
- uint8_t *msg, int msg_len,
+ const uint8_t *msg, int msg_len,
const uint8_t *hash, int hash_len);
#define RSA_DEFAULT_PADDING_NAME "pkcs-1.5"