IDerivationFunction.cs 675 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. /**
  7. * base interface for general purpose byte derivation functions.
  8. */
  9. public interface IDerivationFunction
  10. {
  11. void Init(IDerivationParameters parameters);
  12. /**
  13. * return the message digest used as the basis for the function
  14. */
  15. IDigest Digest
  16. {
  17. get;
  18. }
  19. int GenerateBytes(byte[] output, int outOff, int length);
  20. //throws DataLengthException, ArgumentException;
  21. }
  22. }
  23. #pragma warning restore
  24. #endif