IesWithCipherParameters.cs 1.0 KB

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