mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Fix plEncryptedStream.
This commit is contained in:
@ -88,7 +88,7 @@ plEncryptedStream::~plEncryptedStream()
|
|||||||
//
|
//
|
||||||
void plEncryptedStream::IEncipher(UInt32* const v)
|
void plEncryptedStream::IEncipher(UInt32* const v)
|
||||||
{
|
{
|
||||||
register unsigned long y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32;
|
register UInt32 y=v[0], z=v[1], sum=0, delta=0x9E3779B9, n=32;
|
||||||
|
|
||||||
while (n-- > 0)
|
while (n-- > 0)
|
||||||
{
|
{
|
||||||
@ -102,7 +102,7 @@ void plEncryptedStream::IEncipher(UInt32* const v)
|
|||||||
|
|
||||||
void plEncryptedStream::IDecipher(UInt32* const v)
|
void plEncryptedStream::IDecipher(UInt32* const v)
|
||||||
{
|
{
|
||||||
register unsigned long y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32;
|
register UInt32 y=v[0], z=v[1], sum=0xC6EF3720, delta=0x9E3779B9, n=32;
|
||||||
|
|
||||||
// sum = delta<<5, in general sum = delta * n
|
// sum = delta<<5, in general sum = delta * n
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user