removed _ from tables in precompute
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -134,9 +134,9 @@ class AES { | ... | @@ -134,9 +134,9 @@ class AES { |
134 | * @private | 134 | * @private |
135 | */ | 135 | */ |
136 | _precompute() { | 136 | _precompute() { |
137 | let _tables = [[[], [], [], [], []], [[], [], [], [], []]]; | 137 | let tables = [[[], [], [], [], []], [[], [], [], [], []]]; |
138 | let encTable = _tables[0]; | 138 | let encTable = tables[0]; |
139 | let decTable = _tables[1]; | 139 | let decTable = tables[1]; |
140 | let sbox = encTable[4]; | 140 | let sbox = encTable[4]; |
141 | let sboxInv = decTable[4]; | 141 | let sboxInv = decTable[4]; |
142 | let i; | 142 | let i; |
... | @@ -179,7 +179,7 @@ class AES { | ... | @@ -179,7 +179,7 @@ class AES { |
179 | encTable[i] = encTable[i].slice(0); | 179 | encTable[i] = encTable[i].slice(0); |
180 | decTable[i] = decTable[i].slice(0); | 180 | decTable[i] = decTable[i].slice(0); |
181 | } | 181 | } |
182 | return _tables; | 182 | return tables; |
183 | } | 183 | } |
184 | 184 | ||
185 | /** | 185 | /** | ... | ... |
-
Please register or sign in to post a comment