'Get the type of the object we wrap as defined in the SSH protocol,
defined in RFC 4253, Section 6.6. Currently this can only be b\'ssh-rsa\',
b\'ssh-dss\' or b\'ecdsa-sha2-[identifier]\'.
identifier is the standard NIST curve name
@return: The key type format.
@rtype: L{bytes}'

def sshType(self):

    if (self.type() == 'EC'):
        return ('ecdsa-sha2-' + _secToNist[self._keyObject.curve.name.encode('ascii')])
    else:
        return {'RSA': 'ssh-rsa', 'DSA': 'ssh-dss'}[self.type()]
