IDerivationFunction.cs 605 B

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