TlsNonceGenerator.cs 495 B

12345678910111213141516
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tls.Crypto
  5. {
  6. public interface TlsNonceGenerator
  7. {
  8. /// <summary>Generate a nonce byte[] string.</summary>
  9. /// <param name="size">the length, in bytes, of the nonce to generate.</param>
  10. /// <returns>the nonce value.</returns>
  11. byte[] GenerateNonce(int size);
  12. }
  13. }
  14. #pragma warning restore
  15. #endif