public IEncryptionTestHost GetEncryptionTestHost (CryptoProviderType type, CryptoTestParameters parameters) { switch (type) { case CryptoProviderType.Mono: return new MonoCryptoProvider { Parameters = parameters }; default: throw new NotSupportedException (); } }
public IEncryptionTestHost GetEncryptionTestHost(CryptoProviderType type, CryptoTestParameters parameters) { switch (type) { case CryptoProviderType.Mono: return(new MonoCryptoProvider { Parameters = parameters }); default: throw new NotSupportedException(); } }
public MyCbcBlockCipher(CryptoTestParameters parameters, CipherSuite cipher) : base(parameters.IsServer, parameters.Protocol, cipher) { this.parameters = parameters; }
public MyGaloisCounterCipher(CryptoTestParameters parameters, CipherSuite cipher) : base(parameters.IsServer, parameters.Protocol, cipher) { this.parameters = parameters; }
public override CryptoTestParameters GetParameters() { return(CryptoTestParameters.CreateCBC( TlsProtocolCode.Tls12, CipherSuiteCode.TLS_RSA_WITH_AES_128_CBC_SHA, GetField(TestKeyName), GetField(TestMacName), GetField(TestIvName))); }
public ICryptoTestContext CreateContext(CryptoTestParameters parameters) { return(new MonoCryptoContext(TlsProtocolCode.Tls12, true)); }
public ICryptoTestContext CreateContext(CryptoTestParameters parameters) { throw new NotSupportedException(); }
public override CryptoTestParameters GetParameters() { return(CryptoTestParameters.CreateGCM( TlsProtocolCode.Tls12, CipherSuiteCode.TLS_RSA_WITH_AES_128_GCM_SHA256, GetField(TestKeyName), GetField(ImplicitNonce), GetField(ExplicitNonce))); }
public IEncryptionTestHost GetEncryptionTestHost(CryptoProviderType type, CryptoTestParameters parameters) { throw new NotImplementedException(); }
public IEncryptionTestHost GetEncryptionTestHost (CryptoProviderType type, CryptoTestParameters parameters) { throw new NotImplementedException (); }