You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: net-ssh.rb
    path of file: ./repos/vagrant/lib/vagrant/patches
    
    the code of the file until where you have to start completion: # Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: 
    
    def vagrant_read_private_keyblob(type)
      case type
      when /^ecdsa\-sha2\-(\w*)$/
        curve_name_in_type = $1
        curve_name_in_key = read_string

        unless curve_name_in_type == curve_name_in_key
          raise Net::SSH::Exception, "curve name mismatched (`#{curve_name_in_key}' with `#{curve_name_in_type}')"
        end