py_rsa_signature

Function py_rsa_signature 

Source
pub fn py_rsa_signature(private_key_pem: &str, data: &str) -> PyResult<String>
Expand description

RSA PKCS#1 SHA-256 signature of data using the provided private key in PEM format.

ยงErrors

Returns an error if signature generation fails, e.g., due to empty data or invalid key PEM.