AbstractTlsCipherFactory.cs 490 B

12345678910111213141516171819
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using System.IO;
  4. namespace Org.BouncyCastle.Crypto.Tls
  5. {
  6. public class AbstractTlsCipherFactory
  7. : TlsCipherFactory
  8. {
  9. /// <exception cref="IOException"></exception>
  10. public virtual TlsCipher CreateCipher(TlsContext context, int encryptionAlgorithm, int macAlgorithm)
  11. {
  12. throw new TlsFatalAlert(AlertDescription.internal_error);
  13. }
  14. }
  15. }
  16. #endif