示例#1
0
        public void ProviderKeyCleanup(string providerName, string keyName)
        {
            //Clear out the test key
            ManagedRSAEncryption managedRSA = new ManagedRSAEncryption();

            managedRSA.DestroyLocalRSAKey(providerName, keyName);
        }
        public void TestCleanup()
        {
            //Clear out the test key
            ManagedRSAEncryption managedRSA = new ManagedRSAEncryption();

            managedRSA.DestroyLocalRSAKey(TestProvider, TestKeyName);
        }
示例#3
0
        public void TestCleanup()
        {
            ManagedRSAEncryption utility = new ManagedRSAEncryption();

            //Destroy the test key


            utility.DestroyLocalRSAKey(TestProvider, TestKeyName);
        }
示例#4
0
        private void ProviderKeyInitialize(string providerName, string keyName, string algorithmName)
        {
            ManagedRSAEncryption managedRSA = new ManagedRSAEncryption();

            if (!managedRSA.TryGenerateLocalRSAKey(providerName, keyName))
            {
                //Delete and try again
                managedRSA.DestroyLocalRSAKey(providerName, keyName);
                managedRSA.TryGenerateLocalRSAKey(providerName, keyName);
            }
        }
        public void TestInitialize()
        {
            ManagedRSAEncryption managedRSA = new ManagedRSAEncryption();

            if (!managedRSA.TryGenerateLocalRSAKey(TestProvider, TestKeyName))
            {
                //Delete and try again
                managedRSA.DestroyLocalRSAKey(TestProvider, TestKeyName);
                managedRSA.TryGenerateLocalRSAKey(TestProvider, TestKeyName);
            }
        }
示例#6
0
        public void TestInitialize()
        {
            ManagedRSAEncryption utility = new ManagedRSAEncryption();

            //Create the test key

            if (!utility.TryGenerateLocalRSAKey(TestProvider, TestKeyName))
            {
                utility.DestroyLocalRSAKey(TestProvider, TestKeyName);
                utility.TryGenerateLocalRSAKey(TestProvider, TestKeyName);
            }
        }