diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gf.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,11 +11,11 @@ func GFMultiply(a, b byte) byte { return 0x00 } - ans := logXPlusOneOf[a] + logXPlusOneOf[b] + ans := uint16(logXPlusOneOf[a]) + uint16(logXPlusOneOf[b]) if ans >= 255 { ans -= 255 } - return xPlusOneToThe[ans] + return xPlusOneToThe[byte(ans)] } var xPlusOneToThe map[byte]byte = map[byte]byte{ |