     wa = WordArray.from_buffer buf[0...@block_size]
     wa.xor @FRE, {n_words : (Math.min wa.words.length, @FRE.words.length) }
     buf = wa.to_buffer()
-    @FR = buf
     @out_bufs.push buf
+    @FR = new Buffer buf
 
   #-------------
 

  ct = encrypt { block_cipher_class, key, prefixrandom, plaintext }
  console.log ct
  pt = decrypt {block_cipher_class, key, prefixrandom, ciphertext : ct }
  console.log pt.toString('utf8')

test()


    @blockSize = 16

  encryptBlock : (words) ->
    #for w, i in words
    #  words[i] = w ^ 0x11223344
    #t = words[0]
    #words[0] = words[1]
    #words[1] = words[2]
