//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ using Experimental.System.Messaging.Interop; using System.Diagnostics.CodeAnalysis; namespace Experimental.System.Messaging { /// /// /// /// Specifies the hash algorithm used by Message /// Queuing when authenticating messages. /// /// /// public enum HashAlgorithm { /// /// /// /// No hashing /// algorithm. /// /// /// None = 0, /// /// /// /// MD2 hashing algorithm. /// /// Md2 = NativeMethods.CALG_MD2, /// /// /// /// MD4 hashing algorithm. /// /// /// Md4 = NativeMethods.CALG_MD4, /// /// /// /// MD5 hashing algorithm. /// /// Md5 = NativeMethods.CALG_MD5, /// /// /// /// SHA hashing algorithm. /// /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] Sha = NativeMethods.CALG_SHA, /// /// /// /// MAC keyed hashing algorithm. /// /// Mac = NativeMethods.CALG_MAC, /// /// /// /// SHA256 hashing algorithm. /// /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] Sha256 = NativeMethods.CALG_SHA256, /// /// /// /// SHA384 hashing algorithm. /// /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] Sha384 = NativeMethods.CALG_SHA384, /// /// /// /// SHA512 hashing algorithm. /// /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")] Sha512 = NativeMethods.CALG_SHA512, } }