blob: ebba4e4918d241460cb64b5a4d9d8a0e27202d08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
|