IRawAgreement.cs 591 B

123456789101112131415161718192021
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace Best.HTTP.SecureProtocol.Org.BouncyCastle.Crypto
  5. {
  6. public interface IRawAgreement
  7. {
  8. void Init(ICipherParameters parameters);
  9. int AgreementSize { get; }
  10. void CalculateAgreement(ICipherParameters publicKey, byte[] buf, int off);
  11. #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER || UNITY_2021_2_OR_NEWER
  12. void CalculateAgreement(ICipherParameters publicKey, Span<byte> output);
  13. #endif
  14. }
  15. }
  16. #pragma warning restore
  17. #endif