Kdf2BytesGenerator.cs 723 B

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