def get_private_key_size(private_key, passphrase=None):
 return (_get_private_key_obj(private_key, passphrase).size() * 8)

def get_private_key_size ( private_key , passphrase = None ) : return ( _get_private_key_obj ( private_key , passphrase ) . size ( ) * 8 )
returns the bit length of a private key in pem format .