WHQL catalog file- by microsoft

本文介绍了用于数字签名的已签名目录文件(.cat)在驱动程序包中的使用方式。这些文件确保了软件的真实性和完整性,并详细说明了如何在不同操作系统上进行验证,以及在修改驱动程序或硬件更改后重新签名的要求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Signed catalog files (.cat) are used as digital signatures for driver packages. A catalog file is a collection of tags. Each tag corresponds to a file installed by the driver package. On Windows® 2000 and later, and on Windows Millennium Edition, each tag is a cryptographic checksum value. On Windows 98, each tag is a text file name. Regardless of the intended operating system, cryptographic technology is used to digitally sign the catalog file.

The CatalogFile entry in the INF Version section of the driver's INF file specifies the name of the catalog file. For driver packages that receive a WHQL digital signature, WHQL reads this entry and generates a signed catalog file with the specified name. For driver packages that have a vendor-supplied Authenticode signature, the vendor generates a signed catalog file for the package.

 

At driver installation, the system uses the CatalogFile entry to identify and validate the catalog file. The system copies the catalog file to the %System%/CatRoot directory, and it copies the INF file to the %System%/Inf directory.

Changing or replacing any of the files in the driver package, including the INF file or the catalog file itself, invalidates the digital signature. Even a single-byte change, for example, to correct a misspelling, invalidates the signature. If the digital signature is broken, you must either resubmit the package to WHQL for a new signature or generate a new Authenticode signature for the package.

 

Similarly, changes to the device hardware or firmware require a revised device ID value, so that the system can detect the updated device and install the correct driver. Because the revised device ID value must appear in the INF file, you must either resubmit the package to WHQL for a new signature or generate a new Authenticode signature for the package. You must do this even if the binaries do not change.

 

As a general rule, there should be one catalog file for each INF file in a driver package. If the driver package installs the same binaries on both Windows 98/Me and Windows 2000 and later platforms, the INF file can contain a single, undecorated CatalogFile directive. However, if the package installs different binaries, the INF file should contain decorated CatalogFile directives. For more information about the CatalogFile directive, see the INF Version Section.

 

If you have more than one driver package, you should create a separate catalog file for each package and give each catalog file a unique name. Two unrelated driver packages cannot share a single catalog file. A single driver package that serves multiple devices requires only one catalog file.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值