| # Copyright lowRISC contributors. |
| # Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| # SPDX-License-Identifier: Apache-2.0 |
| |
| load("//rules:opentitan_test.bzl", "opentitan_functest", "verilator_params") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| opentitan_functest( |
| name = "ecdsa_p256_functest", |
| srcs = ["ecdsa_p256_functest.c"], |
| verilator = verilator_params( |
| timeout = "long", |
| ), |
| deps = [ |
| "//sw/device/lib/crypto:otbn_util", |
| "//sw/device/lib/crypto/drivers:hmac", |
| "//sw/device/lib/crypto/drivers:otbn", |
| "//sw/device/lib/crypto/ecdsa_p256", |
| "//sw/device/lib/runtime:log", |
| "//sw/device/lib/testing:entropy_testutils", |
| "//sw/device/lib/testing/test_framework:ottf_main", |
| ], |
| ) |
| |
| cc_library( |
| name = "ecdsa_p256_verify_testvectors", |
| hdrs = ["ecdsa_p256_verify_testvectors.h"], |
| ) |
| |
| opentitan_functest( |
| name = "ecdsa_p256_verify_functest", |
| srcs = ["ecdsa_p256_verify_functest.c"], |
| verilator = verilator_params( |
| timeout = "long", |
| ), |
| deps = [ |
| ":ecdsa_p256_verify_testvectors", |
| "//sw/device/lib/crypto:otbn_util", |
| "//sw/device/lib/crypto/drivers:hmac", |
| "//sw/device/lib/crypto/drivers:otbn", |
| "//sw/device/lib/crypto/ecdsa_p256", |
| "//sw/device/lib/runtime:log", |
| "//sw/device/lib/testing/test_framework:ottf_main", |
| ], |
| ) |
| |
| cc_library( |
| name = "rsa_3072_verify_testvectors", |
| hdrs = ["rsa_3072_verify_testvectors.h"], |
| ) |
| |
| opentitan_functest( |
| name = "rsa_3072_verify_functest", |
| srcs = ["rsa_3072_verify_functest.c"], |
| verilator = verilator_params( |
| timeout = "long", |
| ), |
| deps = [ |
| ":rsa_3072_verify_testvectors", |
| "//sw/device/lib/crypto:otbn_util", |
| "//sw/device/lib/crypto/drivers:hmac", |
| "//sw/device/lib/crypto/drivers:otbn", |
| "//sw/device/lib/crypto/rsa_3072:rsa_3072_verify", |
| "//sw/device/lib/runtime:log", |
| "//sw/device/lib/testing/test_framework:ottf_main", |
| ], |
| ) |