Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2021-08-22 04:18:35 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-08-22 04:18:35 +0300
commitbc0c51d1c2248364aca30e45705c83348baf59b9 (patch)
treefdf3aad8272e96ee46ead748df2bded014b6e39b /UVtools.Core/FileFormats/FDGFile.cs
parent7d1884282f667930f4ef74a82a4e912844a63089 (diff)
Refactorings
Diffstat (limited to 'UVtools.Core/FileFormats/FDGFile.cs')
-rw-r--r--UVtools.Core/FileFormats/FDGFile.cs6
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);