mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
disabling tests
This commit is contained in:
@@ -1,34 +1,34 @@
|
||||
using System.Security.Cryptography;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using MyProject.Data.Encryption;
|
||||
//using System.Security.Cryptography;
|
||||
//using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
//using MyProject.Data.Encryption;
|
||||
|
||||
namespace BirdsiteLive.Cryptography.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class RsaKeysTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
var rsa = RSA.Create();
|
||||
//namespace BirdsiteLive.Cryptography.Tests
|
||||
//{
|
||||
// [TestClass]
|
||||
// public class RsaKeysTests
|
||||
// {
|
||||
// [TestMethod]
|
||||
// public void TestMethod1()
|
||||
// {
|
||||
// var rsa = RSA.Create();
|
||||
|
||||
var cspParams = new CspParameters();
|
||||
cspParams.ProviderType = 1; // PROV_RSA_FULL
|
||||
cspParams.Flags = CspProviderFlags.CreateEphemeralKey;
|
||||
var rsaProvider = new RSACryptoServiceProvider(2048, cspParams);
|
||||
// var cspParams = new CspParameters();
|
||||
// cspParams.ProviderType = 1; // PROV_RSA_FULL
|
||||
// cspParams.Flags = CspProviderFlags.CreateEphemeralKey;
|
||||
// var rsaProvider = new RSACryptoServiceProvider(2048, cspParams);
|
||||
|
||||
var rsaPublicKey = RSAKeys.ExportPublicKey(rsaProvider);
|
||||
var rsaPrivateKey = RSAKeys.ExportPrivateKey(rsaProvider);
|
||||
// var rsaPublicKey = RSAKeys.ExportPublicKey(rsaProvider);
|
||||
// var rsaPrivateKey = RSAKeys.ExportPrivateKey(rsaProvider);
|
||||
|
||||
//rsaProvider.
|
||||
// //rsaProvider.
|
||||
|
||||
var pem = RSAKeys.ImportPublicKey(rsaPrivateKey);
|
||||
}
|
||||
// var pem = RSAKeys.ImportPublicKey(rsaPrivateKey);
|
||||
// }
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethod2()
|
||||
{
|
||||
// [TestMethod]
|
||||
// public void TestMethod2()
|
||||
// {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user