Graham
e0708458f9
Add use extension method for releasing reference-counted objects
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
4da1c5c3cf
Fix XTEA en/decryption if the index is not a multiple of the block size
...
This commit updates the tests to ensure all combinations of 0-7 bytes of
leading/trailing blocks of unencrypted bytes work correctly with all
test vectors.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7218855eb7
Fix en/decryption of XTEA messages not a multiple of the block size
...
Reported by Scu11.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
c3715d7320
Add useTempFile extension methods
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
35fea8f293
Remove redundant substring() call
...
parseUnsignedInt() is capable of parsing a substring itself.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
676be4a0cb
Add XTEA implementation
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
7fc8c4e078
Add ISAAC cipher implementation
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
177326221f
Move cryptographic code to a separate module
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago