BaseDigestCalculator.cs 511 B

123456789101112131415161718192021222324252627
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
  5. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Cms
  6. {
  7. internal class BaseDigestCalculator
  8. : IDigestCalculator
  9. {
  10. private readonly byte[] digest;
  11. internal BaseDigestCalculator(
  12. byte[] digest)
  13. {
  14. this.digest = digest;
  15. }
  16. public byte[] GetDigest()
  17. {
  18. return Arrays.Clone(digest);
  19. }
  20. }
  21. }
  22. #pragma warning restore
  23. #endif