summaryrefslogtreecommitdiff
path: root/include/interface
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2019-07-17 12:21:09 +0800
committerJi Luo <ji.luo@nxp.com>2020-05-15 17:34:30 +0800
commit0221aefb405c8ad72bef2f5a4bdeaf350f533228 (patch)
tree2fc35f336625e8e168395bfdb2d4346e80ec5192 /include/interface
parentc4d8f9d5db2448810f7f5c6d58849f988073a8df (diff)
MA-15151 Limit some hwcrypto commands within bootloader
It can be dangerous to export some hwcrypto commands to Linux, add commands to limit some commands within bootloader. Test: hwcrypto commands can't be used after locking boot state. Change-Id: Ib0a96a87f661778c133178840d8dccf49f151c22 Signed-off-by: Ji Luo <ji.luo@nxp.com> (cherry picked from commit 3fc3f521957677b1f363624494ed866985a25505)
Diffstat (limited to 'include/interface')
-rw-r--r--include/interface/hwcrypto/hwcrypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/interface/hwcrypto/hwcrypto.h b/include/interface/hwcrypto/hwcrypto.h
index 4579d8c2e7..b8afb94aef 100644
--- a/include/interface/hwcrypto/hwcrypto.h
+++ b/include/interface/hwcrypto/hwcrypto.h
@@ -40,6 +40,7 @@ enum hwcrypto_command {
HWCRYPTO_ENCAP_BLOB = (2 << HWCRYPTO_REQ_SHIFT),
HWCRYPTO_GEN_RNG = (3 << HWCRYPTO_REQ_SHIFT),
HWCRYPTO_GEN_BKEK = (4 << HWCRYPTO_REQ_SHIFT),
+ HWCRYPTO_LOCK_BOOT_STATE = (5 << HWCRYPTO_REQ_SHIFT),
};
/**