INNER CODE UNIT · TypeScript
posj
paulmillr/noble-ciphers · src/_arx.ts:192
posj = pos + j;
output[posj] = data[posj] ^ block[j];
}
pos += take;
}
return;
}
for (let pos = 0; pos < len; counter++) {
core(
sigma as TRet<Uint32Array>,
key as TRet<Uint32Array>,
nonce as TRet<Uint32Array>,
b32,
counter,
rounds
);
// See MAX_COUNTER policy note above: never silently wrap the shared public counter.
if (counter >= MAX_COUNTER) throw new Error('arx: counter overflow');