Example #1
0
		public IEncryptionTestHost GetEncryptionTestHost (CryptoProviderType type, CryptoTestParameters parameters)
		{
			switch (type) {
			case CryptoProviderType.Mono:
				return new MonoCryptoProvider { Parameters = parameters };

			default:
				throw new NotSupportedException ();
			}
		}
Example #2
0
        public IEncryptionTestHost GetEncryptionTestHost(CryptoProviderType type, CryptoTestParameters parameters)
        {
            switch (type)
            {
            case CryptoProviderType.Mono:
                return(new MonoCryptoProvider {
                    Parameters = parameters
                });

            default:
                throw new NotSupportedException();
            }
        }
Example #3
0
 public MyCbcBlockCipher(CryptoTestParameters parameters, CipherSuite cipher)
     : base(parameters.IsServer, parameters.Protocol, cipher)
 {
     this.parameters = parameters;
 }
Example #4
0
 public MyGaloisCounterCipher(CryptoTestParameters parameters, CipherSuite cipher)
     : base(parameters.IsServer, parameters.Protocol, cipher)
 {
     this.parameters = parameters;
 }
Example #5
0
 public override CryptoTestParameters GetParameters()
 {
     return(CryptoTestParameters.CreateCBC(
                TlsProtocolCode.Tls12, CipherSuiteCode.TLS_RSA_WITH_AES_128_CBC_SHA,
                GetField(TestKeyName), GetField(TestMacName), GetField(TestIvName)));
 }
Example #6
0
 public ICryptoTestContext CreateContext(CryptoTestParameters parameters)
 {
     return(new MonoCryptoContext(TlsProtocolCode.Tls12, true));
 }
Example #7
0
 public ICryptoTestContext CreateContext(CryptoTestParameters parameters)
 {
     throw new NotSupportedException();
 }
Example #8
0
 public override CryptoTestParameters GetParameters()
 {
     return(CryptoTestParameters.CreateGCM(
                TlsProtocolCode.Tls12, CipherSuiteCode.TLS_RSA_WITH_AES_128_GCM_SHA256, GetField(TestKeyName),
                GetField(ImplicitNonce), GetField(ExplicitNonce)));
 }
Example #9
0
 public IEncryptionTestHost GetEncryptionTestHost(CryptoProviderType type, CryptoTestParameters parameters)
 {
     throw new NotImplementedException();
 }
		public IEncryptionTestHost GetEncryptionTestHost (CryptoProviderType type, CryptoTestParameters parameters)
		{
			throw new NotImplementedException ();
		}