def _ssh_read_next_string(data):
 if (len(data) < 4):
  raise ValueError('Key is not in the proper format')
 (str_len,) = struct.unpack('>I', data[:4])
 if (len(data) < (str_len + 4)):
  raise ValueError('Key is not in the proper format')
 return (data[4:(4 + str_len)], data[(4 + str_len):])

def _ssh_read_next_string ( data ) : if ( len ( data ) < 4 ) : raise ValueError ( 'Key is not in the proper format' ) ( str_len , ) = struct . unpack ( '>I' , data [ : 4 ] ) if ( len ( data ) < ( str_len + 4 ) ) : raise ValueError ( 'Key is not in the proper format' ) return ( data [ 4 : ( 4 + str_len ) ] , data [ ( 4 + str_len ) : ] )
retrieves the next rfc 4251 string value from the data .