diff options
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); |