[PATCH 0/5] public_keys: make const

Sascha Hauer s.hauer at pengutronix.de
Mon Oct 20 04:30:57 PDT 2025


We current have a struct list_head member in struct public_key which
prevents them from being put into the readonly data section.
Move the list_head out of struct public_key so we can make the compiled in
keys const. With this we can do some further cleanup by removing the key
duplication functions.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (5):
      public-keys: ecdsa: remove list in ecdsa keys
      public-keys: move list out of struct public_key
      public-keys: rsa: allow struct public_key to be const
      public-keys: rsa: remove unused functions
      public-keys: make const

 commands/keys.c             |  3 ++-
 common/image-fit.c          |  4 +--
 crypto/Kconfig              |  1 +
 crypto/ecdsa.c              | 18 -------------
 crypto/public-keys.c        | 61 ++++++---------------------------------------
 crypto/rsa.c                | 33 ++++++++----------------
 include/crypto/ecdsa.h      | 12 ---------
 include/crypto/public_key.h | 16 ++++++------
 include/crypto/rsa.h        | 12 ++-------
 scripts/keytoc.c            |  8 +++---
 10 files changed, 37 insertions(+), 131 deletions(-)
---
base-commit: e8bf031f85acbd792e489c8f4ecbcb770dda16ef
change-id: 20251020-public-keys-const-cf2a3007e0a6

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list