CcmParameters.cs 697 B

123456789101112131415161718192021222324252627282930
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. #pragma warning disable
  3. using System;
  4. namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters
  5. {
  6. [Obsolete("Use AeadParameters")]
  7. public class CcmParameters
  8. : AeadParameters
  9. {
  10. /**
  11. * Base constructor.
  12. *
  13. * @param key key to be used by underlying cipher
  14. * @param macSize macSize in bits
  15. * @param nonce nonce to be used
  16. * @param associatedText associated text, if any
  17. */
  18. public CcmParameters(
  19. KeyParameter key,
  20. int macSize,
  21. byte[] nonce,
  22. byte[] associatedText)
  23. : base(key, macSize, nonce, associatedText)
  24. {
  25. }
  26. }
  27. }
  28. #pragma warning restore
  29. #endif