lib/megar/crypto/support.rb
# Returns a packed string given an array +a+ of 32-bit signed integers
#
# Javascript reference implementation: function a32_to_str(a)
#
Returns a packed string given an array +a+ of 32-bit signed integers
Javascript reference implementation: function a32_to_str(a)
Returns a packed string given an array + a + of 32 - bit signed integers Javascript reference implementation : function a32_to_str ( a )
def a32_to_str(a)
    b = ''
    (a.size * 4).times { |i| b << ((a[i>>2] >> (24-(i & 3)*8)) & 255).chr }
    b
  end
def a32_to_str ( a ) b = '' ( a . size * 4 ) . times { | i | b << ( ( a [ i >> 2 ] >> ( 24 - ( i & 3 ) * 8 ) ) & 255 ) . chr } b end
Returns a packed string given an array +a+ of 32-bit signed integers
Javascript reference implementation: function a32_to_str(a)
Returns a packed string given an array + a + of 32 - bit signed integers Javascript reference implementation : function a32_to_str ( a )
a