mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-20 11:34:20 +00:00
fix(st-crypto): move flag control into source code
Remove the control from the include file to avoid compilation issue. Add the check in the source code instead. Signed-off-by: Lionel Debieve <lionel.debieve@foss.st.com> Change-Id: I533f829607f76389399a3e8dbc3c6095278562ab
This commit is contained in:
parent
e0e2d64f47
commit
6a187a002e
2 changed files with 7 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022, STMicroelectronics - All Rights Reserved
|
* Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,11 @@
|
||||||
|
|
||||||
#include <platform_def.h>
|
#include <platform_def.h>
|
||||||
|
|
||||||
|
#if !PKA_USE_NIST_P256 && !PKA_USE_BRAINPOOL_P256R1 && !PKA_USE_BRAINPOOL_P256T1 && \
|
||||||
|
!PKA_USE_NIST_P521
|
||||||
|
#error "At least one ECDSA curve needs to be selected"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For our comprehension in this file
|
* For our comprehension in this file
|
||||||
* _len are in BITs
|
* _len are in BITs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022, STMicroelectronics - All Rights Reserved
|
* Copyright (c) 2022-2023, STMicroelectronics - All Rights Reserved
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -9,24 +9,11 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if !PKA_USE_NIST_P256 && !PKA_USE_BRAINPOOL_P256R1 && !PKA_USE_BRAINPOOL_P256T1 && \
|
|
||||||
!PKA_USE_NIST_P521
|
|
||||||
#error "At least one ECDSA curve needs to be selected"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum stm32_pka_ecdsa_curve_id {
|
enum stm32_pka_ecdsa_curve_id {
|
||||||
#if PKA_USE_NIST_P256
|
|
||||||
PKA_NIST_P256,
|
PKA_NIST_P256,
|
||||||
#endif
|
|
||||||
#if PKA_USE_BRAINPOOL_P256R1
|
|
||||||
PKA_BRAINPOOL_P256R1,
|
PKA_BRAINPOOL_P256R1,
|
||||||
#endif
|
|
||||||
#if PKA_USE_BRAINPOOL_P256T1
|
|
||||||
PKA_BRAINPOOL_P256T1,
|
PKA_BRAINPOOL_P256T1,
|
||||||
#endif
|
|
||||||
#if PKA_USE_NIST_P521
|
|
||||||
PKA_NIST_P521,
|
PKA_NIST_P521,
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct stm32_pka_platdata {
|
struct stm32_pka_platdata {
|
||||||
|
|
Loading…
Add table
Reference in a new issue