[PATCH RFC v3 2/8] arm64: rsi: Add realm hash algorithm defines
From: Yeoreum Yun
Date: Fri Nov 27 2026 - 10:33:37 EST
From: Sami Mujawar <sami.mujawar@xxxxxxx>
Add macro definitions for the hash algorithm identifiers, as
specified in the Realm Management Monitor (RMM) specification.
Signed-off-by: Sami Mujawar <sami.mujawar@xxxxxxx>
---
include/linux/arm-smccc-rsi.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/include/linux/arm-smccc-rsi.h b/include/linux/arm-smccc-rsi.h
index cca881ddfdbab..cf8e157269f3c 100644
--- a/include/linux/arm-smccc-rsi.h
+++ b/include/linux/arm-smccc-rsi.h
@@ -144,6 +144,14 @@ struct realm_config {
#endif /* __ASSEMBLER__ */
+/*
+ * The RSI definition of the Hash Algorithm (as specified by the Secure
+ * Hash Standard) returned in the realm_config data structure.
+ */
+#define RSI_HASH_SHA_256 0
+#define RSI_HASH_SHA_512 1
+#define RSI_HASH_SHA_384 2
+
/*
* Read configuration for the current Realm.
*
--
2.43.0