Kdf1BytesGenerator.cs 758 B

123456789101112131415161718192021222324252627282930
  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. * KFD2 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 Kdf1BytesGenerator
  14. : BaseKdfBytesGenerator
  15. {
  16. /**
  17. * Construct a KDF1 byte generator.
  18. *
  19. * @param digest the digest to be used as the source of derived keys.
  20. */
  21. public Kdf1BytesGenerator(IDigest digest)
  22. : base(0, digest)
  23. {
  24. }
  25. }
  26. }
  27. #pragma warning restore
  28. #endif