IesWithCipherParameters.cs 980 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. namespace Org.BouncyCastle.Crypto.Parameters
  4. {
  5. public class IesWithCipherParameters : IesParameters
  6. {
  7. private int cipherKeySize;
  8. /**
  9. * @param derivation the derivation parameter for the KDF function.
  10. * @param encoding the encoding parameter for the KDF function.
  11. * @param macKeySize the size of the MAC key (in bits).
  12. * @param cipherKeySize the size of the associated Cipher key (in bits).
  13. */
  14. public IesWithCipherParameters(
  15. byte[] derivation,
  16. byte[] encoding,
  17. int macKeySize,
  18. int cipherKeySize) : base(derivation, encoding, macKeySize)
  19. {
  20. this.cipherKeySize = cipherKeySize;
  21. }
  22. public int CipherKeySize
  23. {
  24. get
  25. {
  26. return cipherKeySize;
  27. }
  28. }
  29. }
  30. }
  31. #endif