core/hw/rsa: Make GetSignature() a const member function
This doesn't directly modify instance state, so it can be made const.
This commit is contained in:
@ -31,7 +31,7 @@ std::vector<u8> HexToBytes(const std::string& hex) {
|
||||
constexpr std::size_t SlotSize = 4;
|
||||
std::array<RsaSlot, SlotSize> rsa_slots;
|
||||
|
||||
std::vector<u8> RsaSlot::GetSignature(const std::vector<u8>& message) {
|
||||
std::vector<u8> RsaSlot::GetSignature(const std::vector<u8>& message) const {
|
||||
CryptoPP::Integer sig =
|
||||
CryptoPP::ModularExponentiation(CryptoPP::Integer(message.data(), message.size()),
|
||||
CryptoPP::Integer(exponent.data(), exponent.size()),
|
||||
|
Reference in New Issue
Block a user