File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
platform/ext/target/arm/drivers/cc3xx/tests/src Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2025, Arm Limited. All rights reserved.
2
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*
6
6
*/
7
7
8
+ #include <string.h>
9
+
8
10
#include "cc3xx_test_dpa.h"
9
11
#ifndef CC3XX_CONFIG_FILE
10
12
#include "cc3xx_config.h"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Arm Limited. All rights reserved.
2
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*
6
6
*/
7
7
8
+ #include <string.h>
8
9
9
10
#include "cc3xx_test_ecc.h"
10
11
#include "cc3xx_ec.h"
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023-2025, Arm Limited. All rights reserved.
2
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*
@@ -3623,7 +3623,7 @@ static void ecdsa_getpub_tests(struct test_result_t *ret)
3623
3623
for (size_t i = 0 ; i < ARRAY_SIZE (curve_id ); i ++ ) {
3624
3624
3625
3625
if (curve_id_to_name (curve_id [i ], & curve_name )) {
3626
- return 1 ;
3626
+ return ;
3627
3627
}
3628
3628
3629
3629
const cc3xx_ec_curve_data_t * curve_data = cc3xx_lowlevel_ec_get_curve_data (curve_id [i ]);
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023, Arm Limited. All rights reserved.
2
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*
6
6
*/
7
7
8
+ #include <string.h>
9
+
8
10
#include "cc3xx_test_pka.h"
9
11
#ifndef CC3XX_CONFIG_FILE
10
12
#include "cc3xx_config.h"
13
15
#endif
14
16
#include "cc3xx_test_assert.h"
15
17
#include "cc3xx_dev.h"
18
+ #include "cc3xx_rng.h"
16
19
17
20
#include "cc3xx_test_utils.h"
18
21
@@ -863,8 +866,8 @@ void pka_test_virtual_registers(struct test_result_t *ret)
863
866
}
864
867
865
868
for (idx = 0 ; idx < 128 ; idx ++ ) {
866
- cc3xx_lowlevel_rng_get_random_uint (sizeof (r ), & rand_0 );
867
- cc3xx_lowlevel_rng_get_random_uint (sizeof (r ), & rand_1 );
869
+ cc3xx_lowlevel_rng_get_random_uint (sizeof (r ), & rand_0 , CC3XX_RNG_FAST );
870
+ cc3xx_lowlevel_rng_get_random_uint (sizeof (r ), & rand_1 , CC3XX_RNG_FAST );
868
871
869
872
cc3xx_lowlevel_pka_add (r [rand_0 ], r [rand_1 ], res );
870
873
cc3xx_lowlevel_pka_read_reg (res , & readback , sizeof (readback ));
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2024, Arm Limited. All rights reserved.
2
+ * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
3
3
*
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*
8
8
9
9
#include "cc3xx_test_utils.h"
10
10
11
+ #include <string.h>
11
12
#include <assert.h>
12
13
13
14
void cc3xx_add_tests_to_testsuite (struct test_t * test_list , uint32_t test_am ,
You can’t perform that action at this time.
0 commit comments