Software APIs
mock_mod_exp_ibex.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_IBEX_H_
6 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_IBEX_H_
7 
8 #include "sw/device/lib/base/global_mock.h"
9 #include "sw/device/silicon_creator/lib/sigverify/mod_exp_ibex.h"
10 #include "sw/device/silicon_creator/testing/rom_test.h"
11 
12 namespace rom_test {
13 namespace internal {
14 
15 /**
16  * Mock class for sigverify_mod_exp_ibex.c
17  */
19  : public global_mock::GlobalMock<MockSigverifyModExpIbex> {
20  public:
21  MOCK_METHOD(rom_error_t, mod_exp,
24 };
25 
26 } // namespace internal
27 
28 using MockSigverifyModExpIbex =
29  testing::StrictMock<internal::MockSigverifyModExpIbex>;
30 } // namespace rom_test
31 
32 #endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_IBEX_H_