summaryrefslogtreecommitdiff
path: root/nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h
diff options
context:
space:
mode:
Diffstat (limited to 'nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h')
-rw-r--r--nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h b/nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h
new file mode 100644
index 0000000..ebba4e4
--- /dev/null
+++ b/nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2022 Nordic Semiconductor ASA
+ *
+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
+ */
+
+/**
+ * \brief Update the security lifecycle in OTP
+ *
+ * Check if this is valid transition according to the current state and update
+ * the OTP to transition into the new state.
+ *
+ * \param slc Must be the same or the successor state of the current one.
+ *
+ * \retval 0 Update was successful.
+ * \retval -EREADLCS Error on reading the current state
+ * \retval -EINVALIDLCS Invalid next state
+ */
+int tfm_attest_update_security_lifecycle_otp(enum tfm_security_lifecycle_t slc);