[PATCH 2/3] arm64: rsi: Add realm hash algorithm defines

From: Sami Mujawar

Date: Mon Apr 13 2026 - 04:57:02 EST


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>
---
arch/arm64/include/asm/rsi_smc.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/arch/arm64/include/asm/rsi_smc.h b/arch/arm64/include/asm/rsi_smc.h
index e19253f96c94..dbcb98a6d5c9 100644
--- a/arch/arm64/include/asm/rsi_smc.h
+++ b/arch/arm64/include/asm/rsi_smc.h
@@ -144,6 +144,13 @@ 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
+
/*
* Read configuration for the current Realm.
*
--
SAMI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}