I use this Big Integer library for Javascript: http://www.leemon.com/crypto/BigInt.js and I need to be able to XOR two large interfaces together and the sad library does not include such a function. The library is relatively simple, so I do not consider it a huge task, just confusing.
I tried to hack one, but not very lucky, I would be very grateful if someone could lend me a hand. This is what I tried (maybe wrong). But I assume that the structure will be very similar to some other functions there.
function xor(x, y)
{
var c, k, i;
var result = new Array(0);
k=x.length>y.length ? x.length : y.length;
result = expand(result, k);
for (c=0, i=0; i < k; i++)
{
}
return result;
}
, , bigInt. , bigintC [i] = bigintA [i] ^ bigintB [i], , . .