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); }
public void TestCleanup() { ManagedRSAEncryption utility = new ManagedRSAEncryption(); //Destroy the test key utility.DestroyLocalRSAKey(TestProvider, TestKeyName); }
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); } }
public void TestInitialize() { ManagedRSAEncryption utility = new ManagedRSAEncryption(); //Create the test key if (!utility.TryGenerateLocalRSAKey(TestProvider, TestKeyName)) { utility.DestroyLocalRSAKey(TestProvider, TestKeyName); utility.TryGenerateLocalRSAKey(TestProvider, TestKeyName); } }