123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- //------------------------------------------------------------------------------
- // <copyright file="HashAlgorithm.cs" company="Microsoft">
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
- //------------------------------------------------------------------------------
- using Experimental.System.Messaging.Interop;
- using System.Diagnostics.CodeAnalysis;
- namespace Experimental.System.Messaging
- {
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm"]/*' />
- /// <devdoc>
- /// <para>
- /// Specifies the hash algorithm used by Message
- /// Queuing when authenticating messages.
- ///
- /// </para>
- /// </devdoc>
- public enum HashAlgorithm
- {
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.None"]/*' />
- /// <devdoc>
- /// <para>
- /// No hashing
- /// algorithm.
- ///
- /// </para>
- /// </devdoc>
- None = 0,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md2"]/*' />
- /// <devdoc>
- /// <para>
- /// MD2 hashing algorithm.
- /// </para>
- /// </devdoc>
- Md2 = NativeMethods.CALG_MD2,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md4"]/*' />
- /// <devdoc>
- /// <para>
- /// MD4 hashing algorithm.
- ///
- /// </para>
- /// </devdoc>
- Md4 = NativeMethods.CALG_MD4,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Md5"]/*' />
- /// <devdoc>
- /// <para>
- /// MD5 hashing algorithm.
- /// </para>
- /// </devdoc>
- Md5 = NativeMethods.CALG_MD5,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha"]/*' />
- /// <devdoc>
- /// <para>
- /// SHA hashing algorithm.
- /// </para>
- /// </devdoc>
- [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
- Sha = NativeMethods.CALG_SHA,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Mac"]/*' />
- /// <devdoc>
- /// <para>
- /// MAC keyed hashing algorithm.
- /// </para>
- /// </devdoc>
- Mac = NativeMethods.CALG_MAC,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha256"]/*' />
- /// <devdoc>
- /// <para>
- /// SHA256 hashing algorithm.
- /// </para>
- /// </devdoc>
- [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
- Sha256 = NativeMethods.CALG_SHA256,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha384"]/*' />
- /// <devdoc>
- /// <para>
- /// SHA384 hashing algorithm.
- /// </para>
- /// </devdoc>
- [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
- Sha384 = NativeMethods.CALG_SHA384,
- /// <include file='doc\HashAlgorithm.uex' path='docs/doc[@for="HashAlgorithm.Sha512"]/*' />
- /// <devdoc>
- /// <para>
- /// SHA512 hashing algorithm.
- /// </para>
- /// </devdoc>
- [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
- Sha512 = NativeMethods.CALG_SHA512,
- }
- }
|