https://gist.github.com/krzyzanowskim/bcd81fc0e86495b78253/d65535c8bc9a5f0cec9f6549323f7f6ec38dc45d
@@ -255,7 +255,7 @@ public class AES {
func subWord(word:[UInt8]) -> [UInt8] {
var result = word
for i in 0..<4 {
- result[i] = sBox[Int(word[i])]
+ result[i] = self.sBox[Int(word[i])]
}
return result