|
|
@ -997,8 +997,9 @@ var qrcodegen = new function() {
|
|
|
|
data.forEach(function(b) {
|
|
|
|
data.forEach(function(b) {
|
|
|
|
var factor = b ^ result.shift();
|
|
|
|
var factor = b ^ result.shift();
|
|
|
|
result.push(0);
|
|
|
|
result.push(0);
|
|
|
|
for (var i = 0; i < result.length; i++)
|
|
|
|
coefficients.forEach(function(coef, i) {
|
|
|
|
result[i] ^= ReedSolomonGenerator.multiply(coefficients[i], factor);
|
|
|
|
result[i] ^= ReedSolomonGenerator.multiply(coef, factor);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
};
|
|
|
|