core/hw/rsa: Take std::vector instances by value
Allows us to std::move them and allow calling code to eliminate copies from occurring entirely.
This commit is contained in:
@ -74,7 +74,7 @@ void InitSlots() {
|
||||
std::vector<u8> exponent(256);
|
||||
file.ReadArray(exponent.data(), exponent.size());
|
||||
|
||||
rsa_slots[0] = RsaSlot(exponent, modulus);
|
||||
rsa_slots[0] = RsaSlot(std::move(exponent), std::move(modulus));
|
||||
// TODO(B3N30): Initalize the other slots. But since they aren't used at all, we can skip them
|
||||
// for now
|
||||
}
|
||||
|
Reference in New Issue
Block a user