NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Verifying a shared name

A shared name is verified by using the shared name public key to verify the shared name signature blob (see 1.2.2). This operation requires a reference to the PE file containing the Assembly manifest.

If this function returns TRUE, then the signature is verified, otherwise it returns FALSE and the shared name should not be respected.

   BOOL StrongNameSignatureVerification(  
      // [in] valid path to the PE file for the Assembly
      LPCWSTR               szFilePath)

SzFilePath must be valid reference to a PE file and it must contain: 1) a PublicKeyBlob structure in the metadata; and 2) a shared name signature blob in the section of the PE file reserved for this purpose.

The function computes the hash of the PE file using the same algorithm used in StrongNameSignatureGeneration(). Verification involves operations on this hash, the signature, and public key that depend upon the algorithm being used.