]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/aes: fix comment
authorRuss Cox <rsc@golang.org>
Mon, 7 May 2012 20:45:34 +0000 (16:45 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 7 May 2012 20:45:34 +0000 (16:45 -0400)
Fixes #3589.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6190044

src/pkg/crypto/aes/const.go

index f0b4eabf6ea0f4e4e8b69230f1307d7ef2468336..aee73a7c52c75eb2f6d2c1e451c3905949debfd1 100644 (file)
@@ -11,11 +11,11 @@ package aes
 // http://www.csrc.nist.gov/publications/fips/fips197/fips-197.pdf
 
 // AES is based on the mathematical behavior of binary polynomials
-// (polynomials over GF(2)) modulo the irreducible polynomial xâ\81¸ + xâ\81´ + x² + x + 1.
+// (polynomials over GF(2)) modulo the irreducible polynomial xâ\81¸ + xâ\81´ + x³ + x + 1.
 // Addition of these binary polynomials corresponds to binary xor.
 // Reducing mod poly corresponds to binary xor with poly every
 // time a 0x100 bit appears.
-const poly = 1<<8 | 1<<4 | 1<<3 | 1<<1 | 1<<0 // xâ\81¸ + xâ\81´ + x² + x + 1
+const poly = 1<<8 | 1<<4 | 1<<3 | 1<<1 | 1<<0 // xâ\81¸ + xâ\81´ + x³ + x + 1
 
 // Powers of x mod poly in GF(2).
 var powx = [16]byte{