Share via


MessageCertificateX509.HashAlgorithmToAlgId Method (String)

 

Converts a hash algorithm string representation to an algorithm ID recognized by WinCrypt.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public static uint HashAlgorithmToAlgId(
    string algorithm
)
public:
static unsigned int HashAlgorithmToAlgId(
    String^ algorithm
)
Public Shared Function HashAlgorithmToAlgId (
    algorithm As String
) As UInteger

Parameters

  • algorithm
    Type: System.String

    Algorithm name to convert to an AlgID representation.

Return Value

Type: System.UInt32

Crypto API algorithm ID.

See Also

MessageCertificateX509 Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top