code: def key_size(self):
          
          if self.key_algorithm in {PubKeyAlgorithm.ECDSA, PubKeyAlgorithm.ECDH}:
              return self._key.keymaterial.oid
          return next(iter(self._key.keymaterial)).bit_length()
docs: *new in 0.4.1*
          The size pertaining to this key. ``int`` for non-EC key algorithms; :py:obj:`constants.EllipticCurveOID` for EC keys.