ISL_VerifyLoadedModuleAndCredentials
ISL_VERIFIED_MODULE_PTR ISL_VerifyLoadedModuleAndCredentials
(ISL_CONST_DATA Credentials,
ISL_CONST_DATA SectionName,
ISL_CONST_DATA Signer,
ISL_CONST_DATA PublicKey)
The purpose of this function is to verify the integrity of the credentials associated with a loaded object code module and the integrity of the object code itself. Verification is accomplished as follows:
- Verify the credentials-the specified PublicKey is used to verify the signature on the specified Credentials. The Credentials parameter must specify a full file system path name to locate the signature and manifest files associated with the target module. If the signature has more than one signer, the Signer parameter selects the signer to be verified.
- Verify module integrity-if the credentials are valid, the integrity of the loaded object code module referenced by the manifest section with the specified SectionName is verified. If successful, a verified module object pointer is returned. Otherwise, NULL is returned.
Certificates embedded in the PKCS#7 signature as well as free-standing X.509 certificates in the credentials directory can be used in the certificate chain.
This function combines many smaller functions into one call for a common case. If greater flexibility is needed, a series of calls that includes ISL_CreateCertificateChain, ISL_CopyCertificateChain, ISL_CreateVerifiedSignatureRootWithCertificate, ISL_FindManifestSection, and ISL_VerifyLoadedModule provides the same functionality. Cleanup is done by ISL_RecycleVerifiedModuleCredentials.
- Credentials (input)
The full file name to the signature file.
- SectionName (input)
The section name of the manifest that refers to the object code to be verified.
- Signer (input)
The signer information (for directly signed signatures) or issuer name (if signed by certificates). If the Signer is NULL, a default value is assumed.
- PublicKey (input)
This is the public key of the signer or root certificate authority. The representation for the key must be compatible with the format of public keys in the selected certificate format. If the PublicKey is NULL, a default value is assumed.
Pointer to a verified object if verification is successful, or NULL if verification is unsuccessful.
ISL_CreateCertificateChain, ISL_FindManifestSection, ISL_CopyCertificateChain, ISL_VerifyLoadedModule, ISL_CreateVerifiedSignatureRoot, ISL_RecycleVerifiedModuleCredentials, ISL_FindRegistryAttribute
Contents | Next section | Index |