       @_emit_buf buf
 
     while sb.rem()
-      console.log sb.rem()
       @_enc()
       @_emit_sb sb
 

    @blockSize = 16

  encryptBlock : (words) ->
    t = words[0]
    words[0] = words[1]
    words[1] = words[2]
    words[2] = words[3]
    words[3] = t

#===============================================================================


  #-------------

  _emit_buf : (buf) ->
    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
