'Return the size of the object we wrap.
@return: The size of the key.
@rtype: L{int}'

def size(self):

    if (self._keyObject is None):
        return 0
    elif (self.type() == 'EC'):
        return self._keyObject.curve.key_size
    return self._keyObject.key_size
