示例#1
0
 /// <summary>Extension method which initializes an RSACryptoServiceProvider from a PEM public key string.</summary>
 public static void LoadPublicKeyPEM(RSACryptoServiceProvider provider, string sPEM)
 {
     byte[] DERData = RSACryptoServiceProviderExtension.GetDERFromPEM(sPEM);
     RSACryptoServiceProviderExtension.LoadPublicKeyDER(provider, DERData);
 }