IBlockCipherMode.cs 732 B

1234567891011121314151617181920212223
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Modes
  5. {
  6. public interface IBlockCipherMode
  7. : IBlockCipher
  8. {
  9. /// <summary>Return the <code cref="IBlockCipher"/> underlying this cipher mode.</summary>
  10. IBlockCipher UnderlyingCipher { get; }
  11. /// <summary>Indicates whether this cipher mode can handle partial blocks.</summary>
  12. bool IsPartialBlockOkay { get; }
  13. /// <summary>
  14. /// Reset the cipher mode to the same state as it was after the last init (if there was one).
  15. /// </summary>
  16. void Reset();
  17. }
  18. }
  19. #pragma warning restore
  20. #endif