System.Security.Cryptography.Pkcs.SignerInfo.CheckHash Method

The SignerInfo.CheckHash method verifies the data integrity of the CMS/PKCS #7 message signer information. SignerInfo.CheckHash is a specialized method used in specific security infrastructure applications in which the subject uses the HashOnly member of the System.Security.Cryptography.Pkcs.SubjectIdentifierType enumeration when setting up a System.Security.Cryptography.Pkcs.CmsSigner object. SignerInfo.CheckHash does not authenticate the signer information because this method does not involve verifying a digital signature. For general-purpose checking of the integrity and authenticity of CMS/PKCS #7 message signer information and countersignatures, use the SignerInfo.CheckSignature(bool) or SignerInfo.CheckSignature(System.Security.Cryptography.X509Certificates.X509Certificate2Collection, bool) methods.

Syntax

public void CheckHash ()

Remarks

This method does not provide authentication of the CMS/PKCS #7 message signer information.

Requirements

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0