public void Constructor(byte[] key, EE ee)
 {
     try
     {
         var symmetricSecurityKey = new SymmetricSecurityKey(key);
         ee.ProcessNoException();
     }
     catch (Exception exception)
     {
         ee.ProcessException(exception);
     }
 }
예제 #2
0
 public SignatureProviderTheoryData(string testId, string signingAlgorithm, string verifyAlgorithm, SecurityKey signingKey, SecurityKey verifyKey, EE expectedException = null)
 {
     SigningAlgorithm = signingAlgorithm;
     VerifyAlgorithm = verifyAlgorithm;
     SigningKey = signingKey;
     VerifyKey = verifyKey;
     ExpectedException = expectedException ?? EE.NoExceptionExpected;
     TestId = testId;
 }
예제 #3
0
 public CryptoProviderFactoryTheoryData(string testId, string algorithm, SecurityKey signingKey, SecurityKey verifyKey, EE expectedException = null)
 {
     SigningAlgorithm = algorithm;
     SigningKey = signingKey;
     VerifyKey = verifyKey;
     ExpectedException = expectedException ?? EE.NoExceptionExpected;
     TestId = testId;
 }