'Guess the type of key in data.  The types map to _fromString_*
methods.
@type data: L{bytes}
@param data: The key data.'

@classmethod
def _guessStringType(cls, data):

    if (data.startswith('ssh-') or data.startswith('ecdsa-sha2-')):
        return 'public_openssh'
    elif data.startswith('-----BEGIN'):
        return 'private_openssh'
    elif data.startswith('{'):
        return 'public_lsh'
    elif data.startswith('('):
        return 'private_lsh'
    elif (data.startswith('\x00\x00\x00\x07ssh-') or data.startswith('\x00\x00\x00\x13ecdsa-')):
        (ignored, rest) = common.getNS(data)
        count = 0
        while rest:
            count += 1
            (ignored, rest) = common.getMP(rest)
        if (count > 4):
            return 'agentv3'
        else:
            return 'blob'
