blob: 99151fed51f26972fe182306e86cff09c7e57688 [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_OTBN_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_OTBN_H_
#include "sw/device/lib/base/global_mock.h"
#include "sw/device/silicon_creator/lib/sigverify/mod_exp_otbn.h"
#include "sw/device/silicon_creator/testing/rom_test.h"
namespace rom_test {
namespace internal {
/**
* Mock class for sigverify_mod_exp_otbn.c
*/
class MockSigverifyModExpOtbn
: public global_mock::GlobalMock<MockSigverifyModExpOtbn> {
public:
MOCK_METHOD(rom_error_t, mod_exp,
(const sigverify_rsa_key_t *, const sigverify_rsa_buffer_t *,
sigverify_rsa_buffer_t *));
};
} // namespace internal
using MockSigverifyModExpOtbn =
testing::StrictMock<internal::MockSigverifyModExpOtbn>;
} // namespace rom_test
#endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MOCK_MOD_EXP_OTBN_H_