Skip to content

Commit e3995e4

Browse files
committed
[pentest] Use general cryptolib target
Use the crypto target as a dependency for the pentest framework instead of the separate targets. Signed-off-by: Siemen Dhooghe <[email protected]>
1 parent 9beb45c commit e3995e4

File tree

8 files changed

+10
-32
lines changed

8 files changed

+10
-32
lines changed

sw/device/lib/crypto/impl/key_transport_unittest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
#include "gmock/gmock.h"
1010
#include "gtest/gtest.h"
11-
#include "sw/device/lib/crypto/impl/keyblob.h"
1211
#include "sw/device/lib/crypto/impl/status.h"
1312
#include "sw/device/lib/crypto/include/datatypes.h"
13+
#include "sw/device/lib/crypto/include/keyblob.h"
1414

1515
namespace key_transport_unittest {
1616
namespace {

sw/device/tests/crypto/ecdh_p256_functest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
#include "sw/device/lib/crypto/drivers/otbn.h"
6-
#include "sw/device/lib/crypto/impl/keyblob.h"
76
#include "sw/device/lib/crypto/include/ecc_p256.h"
7+
#include "sw/device/lib/crypto/include/keyblob.h"
88
#include "sw/device/lib/runtime/log.h"
99
#include "sw/device/lib/testing/entropy_testutils.h"
1010
#include "sw/device/lib/testing/test_framework/check.h"

sw/device/tests/crypto/ecdh_p384_functest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
#include "sw/device/lib/crypto/drivers/otbn.h"
6-
#include "sw/device/lib/crypto/impl/keyblob.h"
76
#include "sw/device/lib/crypto/include/ecc_p384.h"
7+
#include "sw/device/lib/crypto/include/keyblob.h"
88
#include "sw/device/lib/runtime/log.h"
99
#include "sw/device/lib/testing/entropy_testutils.h"
1010
#include "sw/device/lib/testing/test_framework/check.h"

sw/device/tests/crypto/ecdsa_p256_sideload_functest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
#include "sw/device/lib/crypto/drivers/entropy.h"
6-
#include "sw/device/lib/crypto/impl/keyblob.h"
76
#include "sw/device/lib/crypto/include/datatypes.h"
87
#include "sw/device/lib/crypto/include/ecc_p256.h"
98
#include "sw/device/lib/crypto/include/key_transport.h"
9+
#include "sw/device/lib/crypto/include/keyblob.h"
1010
#include "sw/device/lib/crypto/include/sha2.h"
1111
#include "sw/device/lib/runtime/log.h"
1212
#include "sw/device/lib/testing/keymgr_testutils.h"

sw/device/tests/crypto/ecdsa_p384_sideload_functest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
#include "sw/device/lib/crypto/drivers/entropy.h"
6-
#include "sw/device/lib/crypto/impl/keyblob.h"
76
#include "sw/device/lib/crypto/include/datatypes.h"
87
#include "sw/device/lib/crypto/include/ecc_p384.h"
98
#include "sw/device/lib/crypto/include/key_transport.h"
9+
#include "sw/device/lib/crypto/include/keyblob.h"
1010
#include "sw/device/lib/crypto/include/sha2.h"
1111
#include "sw/device/lib/runtime/log.h"
1212
#include "sw/device/lib/testing/keymgr_testutils.h"

sw/device/tests/penetrationtests/firmware/fi/BUILD

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ cc_library(
7676
"//sw/device/lib/base:math",
7777
"//sw/device/lib/base:memory",
7878
"//sw/device/lib/base:status",
79-
"//sw/device/lib/crypto/impl:ecc_p256",
80-
"//sw/device/lib/crypto/impl:ecc_p384",
81-
"//sw/device/lib/crypto/impl:integrity",
82-
"//sw/device/lib/crypto/impl:key_transport",
83-
"//sw/device/lib/crypto/impl:keyblob",
84-
"//sw/device/lib/crypto/impl:rsa",
85-
"//sw/device/lib/crypto/impl:sha2",
79+
"//sw/device/lib/crypto",
8680
"//sw/device/lib/crypto/include:crypto_hdrs",
8781
"//sw/device/lib/crypto/include:datatypes",
8882
"//sw/device/lib/runtime:log",
@@ -103,12 +97,7 @@ cc_library(
10397
deps = [
10498
"//sw/device/lib/base:memory",
10599
"//sw/device/lib/base:status",
106-
"//sw/device/lib/crypto/impl:aes",
107-
"//sw/device/lib/crypto/impl:aes_gcm",
108-
"//sw/device/lib/crypto/impl:drbg",
109-
"//sw/device/lib/crypto/impl:hmac",
110-
"//sw/device/lib/crypto/impl:integrity",
111-
"//sw/device/lib/crypto/impl:keyblob",
100+
"//sw/device/lib/crypto",
112101
"//sw/device/lib/crypto/include:crypto_hdrs",
113102
"//sw/device/lib/crypto/include:datatypes",
114103
"//sw/device/lib/runtime:log",

sw/device/tests/penetrationtests/firmware/sca/BUILD

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,7 @@ cc_library(
7373
"//sw/device/lib/base:math",
7474
"//sw/device/lib/base:memory",
7575
"//sw/device/lib/base:status",
76-
"//sw/device/lib/crypto/impl:ecc_p256",
77-
"//sw/device/lib/crypto/impl:ecc_p384",
78-
"//sw/device/lib/crypto/impl:integrity",
79-
"//sw/device/lib/crypto/impl:key_transport",
80-
"//sw/device/lib/crypto/impl:keyblob",
81-
"//sw/device/lib/crypto/impl:rsa",
82-
"//sw/device/lib/crypto/impl:sha2",
76+
"//sw/device/lib/crypto",
8377
"//sw/device/lib/crypto/include:crypto_hdrs",
8478
"//sw/device/lib/crypto/include:datatypes",
8579
"//sw/device/lib/runtime:log",
@@ -100,12 +94,7 @@ cc_library(
10094
deps = [
10195
"//sw/device/lib/base:memory",
10296
"//sw/device/lib/base:status",
103-
"//sw/device/lib/crypto/impl:aes",
104-
"//sw/device/lib/crypto/impl:aes_gcm",
105-
"//sw/device/lib/crypto/impl:drbg",
106-
"//sw/device/lib/crypto/impl:hmac",
107-
"//sw/device/lib/crypto/impl:integrity",
108-
"//sw/device/lib/crypto/impl:keyblob",
97+
"//sw/device/lib/crypto",
10998
"//sw/device/lib/crypto/include:crypto_hdrs",
11099
"//sw/device/lib/crypto/include:datatypes",
111100
"//sw/device/lib/runtime:log",

sw/device/tests/penetrationtests/firmware/sca/otbn_sca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "sw/device/lib/base/memory.h"
1010
#include "sw/device/lib/base/status.h"
1111
#include "sw/device/lib/crypto/drivers/keymgr.h"
12-
#include "sw/device/lib/crypto/impl/keyblob.h"
1312
#include "sw/device/lib/crypto/impl/status.h"
13+
#include "sw/device/lib/crypto/include/keyblob.h"
1414
#include "sw/device/lib/dif/dif_otbn.h"
1515
#include "sw/device/lib/runtime/log.h"
1616
#include "sw/device/lib/testing/entropy_testutils.h"

0 commit comments

Comments
 (0)