@@ -228,6 +228,72 @@ cc_library(
228228 ],
229229)
230230
231+ cc_library (
232+ name = "ecc256_keygen_sca" ,
233+ srcs = ["ecc256_keygen_sca.c" ],
234+ hdrs = ["ecc256_keygen_sca.h" ],
235+ deps = [
236+ "//hw/top_earlgrey/sw/autogen:top_earlgrey" ,
237+ "//sw/device/lib/base:abs_mmio" ,
238+ "//sw/device/lib/base:memory" ,
239+ "//sw/device/lib/crypto/drivers:otbn" ,
240+ "//sw/device/lib/runtime:ibex" ,
241+ "//sw/device/lib/runtime:log" ,
242+ "//sw/device/lib/testing:entropy_testutils" ,
243+ "//sw/device/lib/testing/test_framework:ottf_ld_silicon_creator_slot_a" ,
244+ "//sw/device/lib/testing/test_framework:ottf_main" ,
245+ "//sw/device/lib/testing/test_framework:ujson_ottf" ,
246+ "//sw/device/lib/ujson" ,
247+ "//sw/device/sca/lib:prng" ,
248+ "//sw/device/sca/lib:sca" ,
249+ "//sw/device/tests/crypto/cryptotest/json:otbn_sca_commands" ,
250+ "//sw/otbn/crypto:p256_key_from_seed_sca" ,
251+ ],
252+ )
253+
254+ cc_library (
255+ name = "ecc256_modinv_sca" ,
256+ srcs = ["ecc256_modinv_sca.c" ],
257+ hdrs = ["ecc256_modinv_sca.h" ],
258+ deps = [
259+ "//hw/top_earlgrey/sw/autogen:top_earlgrey" ,
260+ "//sw/device/lib/base:abs_mmio" ,
261+ "//sw/device/lib/base:memory" ,
262+ "//sw/device/lib/crypto/drivers:otbn" ,
263+ "//sw/device/lib/runtime:ibex" ,
264+ "//sw/device/lib/runtime:log" ,
265+ "//sw/device/lib/testing:entropy_testutils" ,
266+ "//sw/device/lib/testing/test_framework:ottf_ld_silicon_creator_slot_a" ,
267+ "//sw/device/lib/testing/test_framework:ottf_main" ,
268+ "//sw/device/lib/testing/test_framework:ujson_ottf" ,
269+ "//sw/device/lib/ujson" ,
270+ "//sw/device/sca/lib:prng" ,
271+ "//sw/device/sca/lib:sca" ,
272+ "//sw/device/tests/crypto/cryptotest/json:otbn_sca_commands" ,
273+ "//sw/otbn/crypto:p256_mod_inv_sca" ,
274+ ],
275+ )
276+
277+ cc_library (
278+ name = "otbn_sca" ,
279+ srcs = ["otbn_sca.c" ],
280+ hdrs = ["otbn_sca.h" ],
281+ deps = [
282+ ":ecc256_keygen_sca" ,
283+ ":ecc256_modinv_sca" ,
284+ "//sw/device/lib/base:memory" ,
285+ "//sw/device/lib/base:status" ,
286+ "//sw/device/lib/crypto/impl:status" ,
287+ "//sw/device/lib/runtime:log" ,
288+ "//sw/device/lib/testing/test_framework:ujson_ottf" ,
289+ "//sw/device/lib/ujson" ,
290+ "//sw/device/sca/lib:prng" ,
291+ "//sw/device/sca/lib:sca" ,
292+ "//sw/device/tests/crypto/cryptotest/firmware:sca_lib" ,
293+ "//sw/device/tests/crypto/cryptotest/json:otbn_sca_commands" ,
294+ ],
295+ )
296+
231297cc_library (
232298 name = "otbn_fi" ,
233299 srcs = ["otbn_fi.c" ],
@@ -331,6 +397,7 @@ FIRMWARE_DEPS = [
331397 ":ibex_sca" ,
332398 ":kmac_sca" ,
333399 ":kmac" ,
400+ ":otbn_sca" ,
334401 ":otbn_fi" ,
335402 ":prng_sca" ,
336403 ":sha3_sca" ,
0 commit comments