Method: Paygate::Aes.sub_word

Defined in:
lib/paygate/aes.rb

.sub_word(word) ⇒ Object

apply SBox to 4-byte word w



139
140
141
142
# File 'lib/paygate/aes.rb', line 139

def self.sub_word(word)
  0.upto(3) { |i| word[i] = S_BOX[word[i]] }
  word
end