summaryrefslogtreecommitdiffstats
path: root/include/rsa.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-09-21 12:23:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-09-22 11:43:16 +0200
commit0cab2900a5a4dd65dcea249823d76ba00915ccc9 (patch)
tree72b9e5c0c37b75cc2a4f7a819ebd6cef970451a0 /include/rsa.h
parentfaf11a6f2874f5087a6013b3134590e203350551 (diff)
downloadbarebox-0cab2900a5a4dd65dcea249823d76ba00915ccc9.tar.gz
barebox-0cab2900a5a4dd65dcea249823d76ba00915ccc9.tar.xz
rsatoc: support extracting RSA public key from X.509 SPKI format
In addition to PKCS#11 URIs, rsatoc supports extracting RSA public keys out of x.509 PEM certificats, which is a base64-encoded format that begins with the header `-----BEGIN CERTIFICATE-----'. Another popular format for RSA public keys is the X.509 SPKI format, which starts with the header `-----BEGIN PUBLIC KEY-----'. As public keys are the only thing rsatoc is interested in, add support for the latter as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230921102310.1108543-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/rsa.h')
0 files changed, 0 insertions, 0 deletions