Posted 01 July 2012 - 02:54 PM
Hi all, I found a SHA256 Lua implementation a little while ago, but when using it, it causes the 'bit' CC api to throw an error complaining that it expected a number and received a nil value.
This is the source code. I've managed to track the error down to line 135, where it says:
So I have no idea what the problem is, hopefully someone can help…
Thanks in advance,
Toxic Wolf
This is the source code. I've managed to track the error down to line 135, where it says:
H[1] = band(H[1], a)
Yet, it is giving the function two numbers, since I checked this by adding type() checks for both 'H[1]' and 'a', and then again actually at the beginning of the band function in the bit api.So I have no idea what the problem is, hopefully someone can help…
Thanks in advance,
Toxic Wolf