public static RSA Create()
{
return s_provider.Create();
}
RSAFactory::Create ( int keySize ) : RSA |
public void NullPadding_Throws() { using (RSA rsa = RSAFactory.Create()) { AssertExtensions.Throws <ArgumentNullException>("padding", () => Encrypt(rsa, TestData.HelloBytes, null)); AssertExtensions.Throws <ArgumentNullException>("padding", () => Decrypt(rsa, TestData.HelloBytes, null)); } }