Skip to main content

validate_rsa_private_key

Function validate_rsa_private_key 

Source
pub fn validate_rsa_private_key(pem_private_key: &str) -> Result<(), FutuError>
Expand description

Validate RSA private-key material with the same parser used by every encrypt/decrypt operation.

Both PKCS#8 and PKCS#1 PEM are supported. Parsing constructs an [rsa::RsaPrivateKey], which validates its key components before returning.