Typos fix
This commit is contained in:
parent
ecea90fd79
commit
c11b85dd9e
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ var (
|
|||
31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73, 236, 127, 12, 111, 246,
|
||||
108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, 177, 187, 204, 62, 90,
|
||||
203, 89, 95, 176, 156, 169, 160, 81, 11, 245, 22, 235, 122, 117, 44, 215,
|
||||
79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80,
|
||||
79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80, 88, 175
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -128,7 +128,7 @@ func RS_12_9_CalcErrorEvaluatorPoly(locator, syndrome, evaluator *RS_12_9_Poly)
|
|||
func RS_12_9_CalcDiscrepancy(locator, syndrome *RS_12_9_Poly, L, n uint8) uint8 {
|
||||
var i, sum uint8
|
||||
|
||||
for i = 0; i < L; i++ {
|
||||
for i = 0; i <= L; i++ {
|
||||
sum ^= RS_12_9_Galois_Mul(locator[i], syndrome[n-i])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue