HashAlgorithm.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. //------------------------------------------------------------------------------
  2. // <copyright file="HashAlgorithm.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. //------------------------------------------------------------------------------
  6. using Experimental.System.Messaging.Interop;
  7. using System.Diagnostics.CodeAnalysis;
  8. namespace Experimental.System.Messaging
  9. {
  10. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm"]/*' />
  11. /// <devdoc>
  12. /// <para>
  13. /// Specifies the hash algorithm used by Message
  14. /// Queuing when authenticating messages.
  15. ///
  16. /// </para>
  17. /// </devdoc>
  18. public enum HashAlgorithm
  19. {
  20. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.None"]/*' />
  21. /// <devdoc>
  22. /// <para>
  23. /// No hashing
  24. /// algorithm.
  25. ///
  26. /// </para>
  27. /// </devdoc>
  28. None = 0,
  29. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md2"]/*' />
  30. /// <devdoc>
  31. /// <para>
  32. /// MD2 hashing algorithm.
  33. /// </para>
  34. /// </devdoc>
  35. Md2 = NativeMethods.CALG_MD2,
  36. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md4"]/*' />
  37. /// <devdoc>
  38. /// <para>
  39. /// MD4 hashing algorithm.
  40. ///
  41. /// </para>
  42. /// </devdoc>
  43. Md4 = NativeMethods.CALG_MD4,
  44. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md5"]/*' />
  45. /// <devdoc>
  46. /// <para>
  47. /// MD5 hashing algorithm.
  48. /// </para>
  49. /// </devdoc>
  50. Md5 = NativeMethods.CALG_MD5,
  51. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha"]/*' />
  52. /// <devdoc>
  53. /// <para>
  54. /// SHA hashing algorithm.
  55. /// </para>
  56. /// </devdoc>
  57. [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
  58. Sha = NativeMethods.CALG_SHA,
  59. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Mac"]/*' />
  60. /// <devdoc>
  61. /// <para>
  62. /// MAC keyed hashing algorithm.
  63. /// </para>
  64. /// </devdoc>
  65. Mac = NativeMethods.CALG_MAC,
  66. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha256"]/*' />
  67. /// <devdoc>
  68. /// <para>
  69. /// SHA256 hashing algorithm.
  70. /// </para>
  71. /// </devdoc>
  72. [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
  73. Sha256 = NativeMethods.CALG_SHA256,
  74. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha384"]/*' />
  75. /// <devdoc>
  76. /// <para>
  77. /// SHA384 hashing algorithm.
  78. /// </para>
  79. /// </devdoc>
  80. [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
  81. Sha384 = NativeMethods.CALG_SHA384,
  82. /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha512"]/*' />
  83. /// <devdoc>
  84. /// <para>
  85. /// SHA512 hashing algorithm.
  86. /// </para>
  87. /// </devdoc>
  88. [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
  89. Sha512 = NativeMethods.CALG_SHA512,
  90. }
  91. }