Kdf2BytesGenerator.cs 852 B

12345678910111213141516171819202122232425262728293031
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
  5. using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
  6. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Generators
  7. {
  8. /**
  9. * KDF2 generator for derived keys and ivs as defined by IEEE P1363a/ISO 18033
  10. * <br/>
  11. * This implementation is based on IEEE P1363/ISO 18033.
  12. */
  13. public class Kdf2BytesGenerator
  14. : BaseKdfBytesGenerator
  15. {
  16. /**
  17. * Construct a KDF2 bytes generator. Generates key material
  18. * according to IEEE P1363 or ISO 18033 depending on the initialisation.
  19. *
  20. * @param digest the digest to be used as the source of derived keys.
  21. */
  22. public Kdf2BytesGenerator(IDigest digest)
  23. : base(1, digest)
  24. {
  25. }
  26. }
  27. }
  28. #pragma warning restore
  29. #endif