diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2023-09-21 12:23:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-09-22 11:43:16 +0200 |
commit | 7406f82b40a34f6b84ef9af8bb587a67315b23a6 (patch) | |
tree | 4075a1e167f1aa459a23488262484ef185cb4e01 /include/rsa.h | |
parent | 0cab2900a5a4dd65dcea249823d76ba00915ccc9 (diff) | |
download | barebox-7406f82b40a34f6b84ef9af8bb587a67315b23a6.tar.gz barebox-7406f82b40a34f6b84ef9af8bb587a67315b23a6.tar.xz |
rsa: fix typos and missing type definitions
Including <rsa.h> as first header shows some that some includes are
missing and looking into the file, the kerneldoc comment is out of date.
Fix both.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20230921102310.1108543-5-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/rsa.h')
-rw-r--r-- | include/rsa.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/rsa.h b/include/rsa.h index 650fb234f2..f1e3c1b6c3 100644 --- a/include/rsa.h +++ b/include/rsa.h @@ -12,6 +12,7 @@ #ifndef _RSA_H #define _RSA_H +#include <linux/types.h> #include <errno.h> #include <digest.h> @@ -38,10 +39,10 @@ struct rsa_public_key { * Verify a RSA PKCS1.5 signature against an expected hash. * * @info: Specifies key and FIT information - * @data: Pointer to the input data - * @data_len: Data length * @sig: Signature * @sig_len: Number of bytes in signature + * @hash: hash over payload + * @algo: hashing algo * @return 0 if verified, -ve on error */ int rsa_verify(const struct rsa_public_key *key, const uint8_t *sig, @@ -51,6 +52,8 @@ int rsa_verify(const struct rsa_public_key *key, const uint8_t *sig, /* This is the maximum signature length that we support, in bits */ #define RSA_MAX_SIG_BITS 4096 +struct device_node; + struct rsa_public_key *rsa_of_read_key(struct device_node *node); void rsa_key_free(struct rsa_public_key *key); const struct rsa_public_key *rsa_get_key(const char *name); |