public ToXmlString ( bool includePrivateParameters ) : string | ||
includePrivateParameters | bool | |
리턴 | string |
public void MonoXmlImportExportWithoutCRT () { RSAManaged rsa = new RSAManaged (); rsa.FromXmlString (MonoXml384woCRT); Assert.AreEqual (MonoXml384woCRT, rsa.ToXmlString (true), "Mono-Xml384-WithoutCRT"); rsa.FromXmlString (MonoXml448woCRT); Assert.AreEqual (MonoXml448woCRT, rsa.ToXmlString (true), "Mono-Xml448-WithoutCRT"); rsa.FromXmlString (MonoXml512woCRT); Assert.AreEqual (MonoXml512woCRT, rsa.ToXmlString (true), "Mono-Xml512-WithoutCRT"); rsa.FromXmlString (MonoXml576woCRT); Assert.AreEqual (MonoXml576woCRT, rsa.ToXmlString (true), "Mono-Xml576-WithoutCRT"); rsa.FromXmlString (MonoXml640woCRT); Assert.AreEqual (MonoXml640woCRT, rsa.ToXmlString (true), "Mono-Xml640-WithoutCRT"); rsa.FromXmlString (MonoXml704woCRT); Assert.AreEqual (MonoXml704woCRT, rsa.ToXmlString (true), "Mono-Xml704-WithoutCRT"); rsa.FromXmlString (MonoXml768woCRT); Assert.AreEqual (MonoXml768woCRT, rsa.ToXmlString (true), "Mono-Xml768-WithoutCRT"); rsa.FromXmlString (MonoXml832woCRT); Assert.AreEqual (MonoXml832woCRT, rsa.ToXmlString (true), "Mono-Xml832-WithoutCRT"); rsa.FromXmlString (MonoXml896woCRT); Assert.AreEqual (MonoXml896woCRT, rsa.ToXmlString (true), "Mono-Xml896-WithoutCRT"); rsa.FromXmlString (MonoXml960woCRT); Assert.AreEqual (MonoXml960woCRT, rsa.ToXmlString (true), "Mono-Xml960-WithoutCRT"); rsa.FromXmlString (MonoXml1024woCRT); Assert.AreEqual (MonoXml1024woCRT, rsa.ToXmlString (true), "Mono-Xml1024-WithoutCRT"); rsa.FromXmlString (MonoXml1536woCRT); Assert.AreEqual (MonoXml1536woCRT, rsa.ToXmlString (true), "Mono-Xml1536-WithoutCRT"); rsa.FromXmlString (MonoXml2048woCRT); Assert.AreEqual (MonoXml2048woCRT, rsa.ToXmlString (true), "Mono-Xml2048-WithoutCRT"); }
void GenerateKeyPair () { var rsa = new RSAManaged ((int)keySize); KeyValue = rsa.ToXmlString (true); IsValid = true; }
public void MonoXmlImportExport () { RSAManaged rsa = new RSAManaged (); rsa.FromXmlString (MonoXml384); Assert.AreEqual (MonoXml384, rsa.ToXmlString (true), "Mono-Xml384"); rsa.FromXmlString (MonoXml448); Assert.AreEqual (MonoXml448, rsa.ToXmlString (true), "Mono-Xml448"); rsa.FromXmlString (MonoXml512); Assert.AreEqual (MonoXml512, rsa.ToXmlString (true), "Mono-Xml512"); rsa.FromXmlString (MonoXml576); Assert.AreEqual (MonoXml576, rsa.ToXmlString (true), "Mono-Xml576"); rsa.FromXmlString (MonoXml640); Assert.AreEqual (MonoXml640, rsa.ToXmlString (true), "Mono-Xml640"); rsa.FromXmlString (MonoXml704); Assert.AreEqual (MonoXml704, rsa.ToXmlString (true), "Mono-Xml704"); rsa.FromXmlString (MonoXml768); Assert.AreEqual (MonoXml768, rsa.ToXmlString (true), "Mono-Xml768"); rsa.FromXmlString (MonoXml832); Assert.AreEqual (MonoXml832, rsa.ToXmlString (true), "Mono-Xml832"); rsa.FromXmlString (MonoXml896); Assert.AreEqual (MonoXml896, rsa.ToXmlString (true), "Mono-Xml896"); rsa.FromXmlString (MonoXml960); Assert.AreEqual (MonoXml960, rsa.ToXmlString (true), "Mono-Xml960"); rsa.FromXmlString (MonoXml1024); Assert.AreEqual (MonoXml1024, rsa.ToXmlString (true), "Mono-Xml1024"); rsa.FromXmlString (MonoXml1536); Assert.AreEqual (MonoXml1536, rsa.ToXmlString (true), "Mono-Xml1536"); rsa.FromXmlString (MonoXml2048); Assert.AreEqual (MonoXml2048, rsa.ToXmlString (true), "Mono-Xml2048"); }