From 2e13c372f1419f08dab7797b244681f889dd9bcf Mon Sep 17 00:00:00 2001 From: Michal Hanus Date: Mon, 14 Apr 2025 22:04:32 +0200 Subject: nrfdemo --- .../tfm/api_ns/platform/common/nrf_provisioning.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h (limited to 'nrfdemo/builddk/tfm/api_ns/platform/common/nrf_provisioning.h') 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); -- cgit v1.2.3