def METHOD_NAME(session, oid):
    priv = ec.generate_private_key(getattr(ec, oid.name)())
    session.verify_admin(DEFAULT_ADMIN_PIN)
    session.put_key(KEY_REF.SIG, priv)
    message = b"Hello world"
    session.verify_pin(DEFAULT_PIN)
    sig = session.sign(message, hashes.SHA256())
    priv.public_key().verify(sig, message, ec.ECDSA(hashes.SHA256()))