diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-09-21 12:23:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-22 11:43:16 +0200 |
commit | 0cab2900a5a4dd65dcea249823d76ba00915ccc9 (patch) | |
tree | 72b9e5c0c37b75cc2a4f7a819ebd6cef970451a0 /include/rsa.h | |
parent | faf11a6f2874f5087a6013b3134590e203350551 (diff) | |
download | barebox-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