diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-22 04:18:35 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-22 04:18:35 +0300 |
commit | bc0c51d1c2248364aca30e45705c83348baf59b9 (patch) | |
tree | fdf3aad8272e96ee46ead748df2bded014b6e39b /UVtools.Core/FileFormats/FDGFile.cs | |
parent | 7d1884282f667930f4ef74a82a4e912844a63089 (diff) |
Refactorings
Diffstat (limited to 'UVtools.Core/FileFormats/FDGFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/FDGFile.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/UVtools.Core/FileFormats/FDGFile.cs b/UVtools.Core/FileFormats/FDGFile.cs index 751ac55..246ca60 100644 --- a/UVtools.Core/FileFormats/FDGFile.cs +++ b/UVtools.Core/FileFormats/FDGFile.cs @@ -471,7 +471,7 @@ namespace UVtools.Core.FileFormats if (Parent.HeaderSettings.EncryptionKey > 0) { - LayerRleReCrypt(Parent.HeaderSettings.EncryptionKey, layerIndex, EncodedRle); + LayerRleCryptBuffer(Parent.HeaderSettings.EncryptionKey, layerIndex, EncodedRle); } int limit = image.Width * image.Height; @@ -1152,11 +1152,11 @@ namespace UVtools.Core.FileFormats public static byte[] LayerRleCrypt(uint seed, uint layerIndex, IEnumerable<byte> input) { var result = input.ToArray(); - LayerRleReCrypt(seed, layerIndex, result); + LayerRleCryptBuffer(seed, layerIndex, result); return result; } - public static void LayerRleReCrypt(uint seed, uint layerIndex, byte[] input) + public static void LayerRleCryptBuffer(uint seed, uint layerIndex, byte[] input) { var init = (seed - 0x1dcb76c3) ^ 0x257e2431; var key = init * 0x82391efd * (layerIndex ^ 0x110bdacd); |