IRsa.cs 593 B

1234567891011121314151617181920
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto
  6. {
  7. public interface IRsa
  8. {
  9. void Init(bool forEncryption, ICipherParameters parameters);
  10. int GetInputBlockSize();
  11. int GetOutputBlockSize();
  12. BigInteger ConvertInput(byte[] buf, int off, int len);
  13. BigInteger ProcessBlock(BigInteger input);
  14. byte[] ConvertOutput(BigInteger result);
  15. }
  16. }
  17. #pragma warning restore
  18. #endif