ParametersWithSBox.cs 647 B

12345678910111213141516171819202122232425262728
  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. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
  6. {
  7. public class ParametersWithSBox : ICipherParameters
  8. {
  9. private ICipherParameters parameters;
  10. private byte[] sBox;
  11. public ParametersWithSBox(
  12. ICipherParameters parameters,
  13. byte[] sBox)
  14. {
  15. this.parameters = parameters;
  16. this.sBox = sBox;
  17. }
  18. public byte[] GetSBox() { return sBox; }
  19. public ICipherParameters Parameters { get { return parameters; } }
  20. }
  21. }
  22. #pragma warning restore
  23. #endif