code: def key_sign(rsakey, message, digest):
      
      padding = _asymmetric.padding.PKCS1v15()
      signature = rsakey.sign(message, padding, digest)
      return signature
docs: Sign the given message with the RSA key.