       super(chunk, encoding, cb)
 
   _flush : (cb) ->
-    noop = () ->
     super(noop)
     @push(encrypt(new Buffer('')))
     cb()

exports.DecryptStream = class DecryptStream extends stream.ChunkStream
  decrypt = (chunk) ->
    ciphertext = parse_payload_packet(chunk, @header_hash, @mac_key, 'foo', @block_num)
    payload = @decryptor.secretbox_open({ciphertext, nonce.nonceForChunkSecretBox(@block_num)})
    ++@block_num
    return payload


    @block_num = 0
    super(decrypt, saltpack_block_len, true)

  _transform : (chunk, encoding, cb) ->
    if not @header_read
      {@header_hash, _, seckey, @mac_key} = header.parse_encryption_header_packet(@decryptor, msgpack.encode(chunk))
      @decryptor.secretKey = seckey
      @header_read = true
      cb()
    else
