|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
API is taking time....I am trying to fetch public key from DSA certification using .NET cryptography AP. It is taking 15 to 45 seconds..... String crtFileName = "C:\mycert.cer"; X509Certificate2 x509 = new X509Certificate2(); byte[] rawData = System.IO.File.ReadAllBytes(crtFileName); x509.Import(rawData); // START DateTime dtFaq = DateTime.Now; DSACryptoServiceProvider dsa1 = (DSACryptoServiceProvider) x509.PublicKey.Key; // TAKING 15 to 45 SECONDS TimeSpan tsFaq = DateTime.Now - dtFaq; Console.WriteLine("Extract Public Key : " + tsFaq.ToString ()); // END HashAlgorithm hashAlgo = HashAlgorithm.Create("SHA1"); byte[] hash = hashAlgo.ComputeHash(data_to_sign); bool bVar = dsa1.VerifySignature(hash, signature); Help me to find why API is taking time... ? Hello...
Just a sugestion.. use CLR profier... http://msdn.microsoft.com/en-us/library/ms979205.aspx Hope it helps...
interop & performance
Impersonation problem Problem using obfuscation Dotnet 2.0 PCKS CheckSignature Error What permission do I need to add a user to a group? (C#) Prevent others from using my class libraries problem impersonating when remoting Form authentication and files that shouldn'y be authenticated Keyed hash vs Digital signature ???? Security Exception and Windows Vista |
|||||||||||||||||||||||