lib/megar/crypto/support.rb
# Javascript reference implementation: function encrypt_key(cipher,a)
#
Javascript reference implementation: function encrypt_key(cipher,a)
Javascript reference implementation : function encrypt_key ( cipher a )
def encrypt_key(a, key)
    b=[]
    (0..(a.length-1)).step(4) do |i|
      b.concat aes_cbc_encrypt_a32(a[i,4], key)
    end
    b
  end
def encrypt_key ( a , key ) b = [ ] ( 0 .. ( a . length - 1 ) ) . step ( 4 ) do | i | b . concat aes_cbc_encrypt_a32 ( a [ i , 4 ] , key ) end b end
Javascript reference implementation: function encrypt_key(cipher,a)
Javascript reference implementation : function encrypt_key ( cipher a )
a
key