mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add and use SpamSum for Media and Rom types
SpamSum implementation courtesy of https://github.com/aaru-dps/Aaru
This commit is contained in:
@@ -94,6 +94,7 @@ namespace SabreTools.Library.DatItems
|
||||
Field.DatItem_SHA256,
|
||||
Field.DatItem_SHA384,
|
||||
Field.DatItem_SHA512,
|
||||
Field.DatItem_SpamSum,
|
||||
Field.DatItem_Merge,
|
||||
Field.DatItem_Region,
|
||||
Field.DatItem_Offset,
|
||||
@@ -782,6 +783,10 @@ namespace SabreTools.Library.DatItems
|
||||
case Field.DatItem_SHA512:
|
||||
key = Constants.SHA512Zero;
|
||||
break;
|
||||
|
||||
case Field.DatItem_SpamSum:
|
||||
key = null;
|
||||
break;
|
||||
}
|
||||
|
||||
// Double and triple check the key for corner cases
|
||||
|
||||
Reference in New Issue
Block a user