def private_encrypt(key, message):
 signer = salt.utils.rsax931.RSAX931Signer(key.exportKey('PEM'))
 return signer.sign(message)

def private_encrypt ( key , message ) : signer = salt . utils . rsax931 . RSAX931Signer ( key . exportKey ( 'PEM' ) ) return signer . sign ( message )
generate an m2crypto-compatible signature .