mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/5] public_keys: make const
@ 2025-10-20 11:30 Sascha Hauer
  2025-10-20 11:30 ` [PATCH 1/5] public-keys: ecdsa: remove list in ecdsa keys Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2025-10-20 11:30 UTC (permalink / raw)
  To: BAREBOX

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@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@pengutronix.de>




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-10-20 12:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-20 11:30 [PATCH 0/5] public_keys: make const Sascha Hauer
2025-10-20 11:30 ` [PATCH 1/5] public-keys: ecdsa: remove list in ecdsa keys Sascha Hauer
2025-10-20 11:30 ` [PATCH 2/5] public-keys: move list out of struct public_key Sascha Hauer
2025-10-20 11:31 ` [PATCH 3/5] public-keys: rsa: allow struct public_key to be const Sascha Hauer
2025-10-20 11:31 ` [PATCH 4/5] public-keys: rsa: remove unused functions Sascha Hauer
2025-10-20 11:31 ` [PATCH 5/5] public-keys: make const Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox