rsaPublicKeyFromPemPkcs1 static method

RSAPublicKey rsaPublicKeyFromPemPkcs1(
  1. String pem
)

Decode a RSAPublicKey from the given pem string formated in the pkcs1 standard.

Implementation

static RSAPublicKey rsaPublicKeyFromPemPkcs1(String pem) {
  var bytes = RsaUtil.getBytesFromPEMString(pem);
  return rsaPublicKeyFromDERBytesPkcs1(bytes);
}