From 7406f82b40a34f6b84ef9af8bb587a67315b23a6 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 21 Sep 2023 12:23:09 +0200 Subject: rsa: fix typos and missing type definitions Including 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 Link: https://lore.barebox.org/20230921102310.1108543-5-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- include/rsa.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/rsa.h') 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 #include #include @@ -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); -- cgit v1.2.3