forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[rpm2extents] Perform digest computation within the validator
The validator calls `rpmcliVerifySignaturesFD` which under the hood performs `Fread`. Digests are computed/updated for each `Fread`. This diffs takes advantage of that by initializing the digest before calling `rpmcliVerifySignaturesFD`. Once `rpmcliVerifySignaturesFD` as returned and the file has been read, the digests are available. This saves us from spawning a `digestor` process, as well as performing an extra file read within it.
- Loading branch information
Showing
1 changed file
with
106 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters