RSAPrivateKey.fromPEM constructor

RSAPrivateKey.fromPEM(
  1. String input
)

Implementation

factory RSAPrivateKey.fromPEM(String input) {
  final pem =
      PemPart.decodeLabelled(input, ['RSA PRIVATE KEY', 'PRIVATE KEY']);
  return RSAPrivateKey.fromASN1(pem.data,
      fromPkcs1: pem.label == 'RSA PRIVATE KEY');
}