def _scryptBlockMix(blocks, len_blocks):
 x = blocks[(-1)]
 core = _raw_salsa20_lib.Salsa20_8_core
 result = [create_string_buffer(64) for _ in range(len(blocks))]
 for i in xrange(len(blocks)):
  core(x, blocks[i], result[i])
  x = result[i]
 return [result[(i + j)] for j in xrange(2) for i in xrange(0, len_blocks, 2)]

def _scryptBlockMix ( blocks , len_blocks ) : x = blocks [ ( - 1 ) ] core = _raw_salsa20_lib . Salsa20_8_core result = [ create_string_buffer ( 64 ) for _ in range ( len ( blocks ) ) ] for i in xrange ( len ( blocks ) ) : core ( x , blocks [ i ] , result [ i ] ) x = result [ i ] return [ result [ ( i + j ) ] for j in xrange ( 2 ) for i in xrange ( 0 , len_blocks , 2 ) ]
hash function for romix .