[kmac/lc_ctrl] Set cSHAKE hash to 128bit and update custom string
The life cycle tokens are 128bit in size, hence we use a 128bit cSHAKE.
Since this is a life cycle specific operation, we also change the custom
string to "LC_CTRL".
Signed-off-by: Michael Schaffner <msf@google.com>
diff --git a/hw/ip/kmac/rtl/kmac_pkg.sv b/hw/ip/kmac/rtl/kmac_pkg.sv
index 45d79dc..a1bb5fe 100644
--- a/hw/ip/kmac/rtl/kmac_pkg.sv
+++ b/hw/ip/kmac/rtl/kmac_pkg.sv
@@ -145,13 +145,13 @@
Prefix: '0 // Not used in CSR prefix mode
},
- // OTP
+ // LC_CTRL
'{
Mode: AppCShake,
- Strength: sha3_pkg::L256,
+ Strength: sha3_pkg::L128,
PrefixMode: 1'b 1, // Use prefix parameter
- // {fname: encode_string(""), custom_str: encode_string("OTP_CTRL")}
- Prefix: NSPrefixW'(96'h 4c52_5443_5f50_544f_4001_0001)
+ // {fname: encode_string(""), custom_str: encode_string("LC_CTRL")}
+ Prefix: NSPrefixW'(88'h 4c_5254_435f_434C_3801_0001)
},
// ROM_CTRL