class Aws::S3::EncryptionV2::IODecrypter

def write(chunk)

def write(chunk)
  # decrypt and write
  if @cipher.method(:update).arity == 1
    @io.write(@cipher.update(chunk))
  else
    @io.write(@cipher.update(chunk, @cipher_buffer))
  end
end