lib/megar/crypto/support.rb
def decrypt_key(a, key)
    b=[]
    (0..(a.length-1)).step(4) do |i|
      b.concat aes_cbc_decrypt_a32(a[i,4], key)
    end
    b
  end
# Returns a decrypted given an array +a+ of 32-bit integers and +key+
#
# Javascript reference implementation: function decrypt_key(cipher,a)
#
Returns a decrypted given an array +a+ of 32-bit integers and +key+
Javascript reference implementation: function decrypt_key(cipher,a)
Returns a decrypted given an array + a + of 32 - bit integers and + key + Javascript reference implementation : function decrypt_key ( cipher a )
def decrypt_key(a, key)
    b=[]
    (0..(a.length-1)).step(4) do |i|
      b.concat aes_cbc_decrypt_a32(a[i,4], key)
    end
    b
  end
def decrypt_key ( a , key ) b = [ ] ( 0 .. ( a . length - 1 ) ) . step ( 4 ) do | i | b . concat aes_cbc_decrypt_a32 ( a [ i , 4 ] , key ) end b end
Returns a decrypted given an array +a+ of 32-bit integers and +key+
Javascript reference implementation: function decrypt_key(cipher,a)
Returns a decrypted given an array + a + of 32 - bit integers and + key + Javascript reference implementation : function decrypt_key ( cipher a )
a
key