aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs b/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs
index 0d1ae27f..a111d5d6 100644
--- a/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs
+++ b/Ryujinx.HLE/HOS/Services/Ro/IRoInterface.cs
@@ -142,14 +142,9 @@ namespace Ryujinx.HLE.HOS.Services.Ro
_owner.CpuMemory.Read(nroAddress, nroData);
- byte[] nroHash = null;
-
MemoryStream stream = new MemoryStream(nroData);
- using (SHA256 hasher = SHA256.Create())
- {
- nroHash = hasher.ComputeHash(stream);
- }
+ byte[] nroHash = SHA256.HashData(stream);
if (!IsNroHashPresent(nroHash))
{