ParametersWithSBox.cs 553 B

12345678910111213141516171819202122232425262728
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. using System;
  3. using Org.BouncyCastle.Crypto;
  4. namespace Org.BouncyCastle.Crypto.Parameters
  5. {
  6. public class ParametersWithSBox : ICipherParameters
  7. {
  8. private ICipherParameters parameters;
  9. private byte[] sBox;
  10. public ParametersWithSBox(
  11. ICipherParameters parameters,
  12. byte[] sBox)
  13. {
  14. this.parameters = parameters;
  15. this.sBox = sBox;
  16. }
  17. public byte[] GetSBox() { return sBox; }
  18. public ICipherParameters Parameters { get { return parameters; } }
  19. }
  20. }
  21. #endif