[PATCH 4/6] crypto: ecdsa: make crypto/ecdsa.h header self-containing
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Oct 9 07:01:53 PDT 2024
Currently, generating standalone keys fails, because the header
references symbols that aren't defined within.
Fixes: c949c6ab360c ("crypto: add ECDSA support")
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/crypto/ecdsa.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/crypto/ecdsa.h b/include/crypto/ecdsa.h
index 1d6340c64513..2e2b359d96cf 100644
--- a/include/crypto/ecdsa.h
+++ b/include/crypto/ecdsa.h
@@ -2,6 +2,10 @@
#ifndef _ECDSA_H
#define _ECDSA_H
+#include <linux/types.h>
+#include <linux/list.h>
+#include <errno.h>
+
struct ecdsa_public_key {
const char *curve_name; /* Name of curve, e.g. "prime256v1" */
const uint64_t *x; /* x coordinate of public key */
--
2.39.5
More information about the barebox
mailing list