Function extract_pem_key_type
Source pub fn extract_pem_key_type(private_key: &str) -> Option<&'static str>
Expand description
Extract the key type from a PEM-formatted string
§Arguments
private_key - The PEM-formatted private key string
§Returns
Some(&str) containing the key type (e.g., “EC”, “RSA”, or generic “”)
None if no valid header is found