mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 17:07:04 +02:00
This fix modifies the order of system includes to meet the ARM TF coding standard. There are some exceptions in order to retain header groupings, minimise changes to imported headers, and where there are headers within the #if and #ifndef statements. Change-Id: I65085a142ba6a83792b26efb47df1329153f1624 Signed-off-by: Isla Mitchell <isla.mitchell@arm.com>
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef _NVM__H
|
|
#define _NVM__H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include "cc_crypto_boot_defs.h"
|
|
#include "cc_pal_types.h"
|
|
#include "cc_sec_defs.h"
|
|
|
|
/*------------------------------------
|
|
DEFINES
|
|
-------------------------------------*/
|
|
|
|
/**
|
|
* @brief This function reads the LCS from the SRAM/NVM
|
|
*
|
|
* @param[in] hwBaseAddress - CryptoCell base address
|
|
*
|
|
* @param[in/out] lcs_ptr - pointer to memory to store the LCS
|
|
*
|
|
* @return CCError_t - On success the value CC_OK is returned, and on failure -a value from NVM_error.h
|
|
*/
|
|
CCError_t NVM_GetLCS(unsigned long hwBaseAddress, uint32_t *lcs_ptr);
|
|
|
|
/**
|
|
* @brief The NVM_ReadHASHPubKey function is a NVM interface function -
|
|
* The function retrieves the HASH of the device Public key from the SRAM/NVM
|
|
*
|
|
* @param[in] hwBaseAddress - CryptoCell base address
|
|
*
|
|
* @param[in] pubKeyIndex - Index of HASH in the OTP
|
|
*
|
|
* @param[out] PubKeyHASH - the public key HASH.
|
|
*
|
|
* @param[in] hashSizeInWords - hash size (valid values: 4W, 8W)
|
|
*
|
|
* @return CCError_t - On success the value CC_OK is returned, and on failure -a value from NVM_error.h
|
|
*/
|
|
|
|
CCError_t NVM_ReadHASHPubKey(unsigned long hwBaseAddress, CCSbPubKeyIndexType_t pubKeyIndex, CCHashResult_t PubKeyHASH, uint32_t hashSizeInWords);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|