* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / corlib / Mono.Security.Cryptography / RSAManaged.cs
index bc6b9fb045f4e5822028c41ff06b7b5647ebbe5d..8bbe49a5f3da7dcf6e2759415779c1cb8de60668 100644 (file)
@@ -161,10 +161,10 @@ namespace Mono.Security.Cryptography {
                        get { return "RSA-PKCS1-KeyEx"; }
                }
 
-               // note: this property will exist in RSACryptoServiceProvider in
-               // version 2.0 of the framework
+               // note: when (if) we generate a keypair then it will have both
+               // the public and private keys
                public bool PublicOnly {
-                       get { return ((d == null) || (n == null)); }
+                       get { return (keypairGenerated && ((d == null) || (n == null))); }
                }
 
                public override string SignatureAlgorithm {