TlsSrp6VerifierGenerator.cs 880 B

123456789101112131415161718192021
  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.Tls.Crypto
  6. {
  7. /// <summary>Base interface for a generator for SRP-6 verifiers.</summary>
  8. public interface TlsSrp6VerifierGenerator
  9. {
  10. /// <summary>Creates a new SRP-6 verifier value.</summary>
  11. /// <param name="salt">The salt to use, generally should be large and random</param>
  12. /// <param name="identity">The user's identifying information (eg. username)</param>
  13. /// <param name="password">The user's password</param>
  14. /// <returns>A new verifier for use in future SRP authentication</returns>
  15. BigInteger GenerateVerifier(byte[] salt, byte[] identity, byte[] password);
  16. }
  17. }
  18. #pragma warning restore
  19. #endif