parseKeyPair static method
({RSAPrivateKey? privateKey, RSAPublicKey publicKey})
parseKeyPair({})
Parses both public and private keys (if provided)
Implementation
static ({RSAPublicKey publicKey, RSAPrivateKey? privateKey}) parseKeyPair({
required String publicKey,
String? privateKey,
}) {
final pubKey = parsePublicKey(publicKey);
final privKey = privateKey != null ? parsePrivateKey(privateKey) : null;
return (publicKey: pubKey, privateKey: privKey);
}