(noob alert)
Hello,
Sorry to bring this up!
I was trying to compile when I got this error:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'NewestCOServer!NewestCOServer.Native::BF_set_key' has unbalanced the stack.
Highlighting the following code:
So I applyed Korvacs suggestion
changing
for
But now I have the following error "A call to PInvoke function 'NewestCOServer!NewestCOServer.Native::BF_cfb64_en crypt' has unbalanced the stack."
[Only registered and activated users can see links. Click Here To Register...]
Can anyone help me?
Thank you in advance.
Hello,
Sorry to bring this up!
I was trying to compile when I got this error:
PInvokeStackImbalance was detected
Message: A call to PInvoke function 'NewestCOServer!NewestCOServer.Native::BF_set_key' has unbalanced the stack.
Highlighting the following code:
Code:
public void SetKey(byte[] data)
{
_encryptNum = 0;
_decryptNum = 0;
[COLOR="Red"]Native.BF_set_key(_key, data.Length, data);[/COLOR]
}
changing
Code:
[DllImport("libeay32.dll")]
Code:
[DllImport("libeay32.dll", CallingConvention = CallingConvention.Cdecl)]
Code:
Native.BF_cfb64_encrypt(buffer, ret, buffer.Length, _key, _encryptIv, ref _encryptNum, 1);
Can anyone help me?
Thank you in advance.