You are here

public function Verifier::verifyChecksumList in Automatic Updates 7

Same name and namespace in other branches
  1. 8 vendor/drupal/php-signify/src/Verifier.php \Drupal\Signify\Verifier::verifyChecksumList()

Verify a signed checksum list, and then verify the checksum for each file in the list.

Parameters

string $signed_checksum_list: Contents of a signify signature file whose message is a file checksum list.

string $working_directory: A directory on the filesystem that the file checksum list is relative to.

Return value

int The number of files verified.

Throws

\SodiumException

\Drupal\Signify\VerifierException Thrown when the checksum list could not be verified by the signature, or a listed file could not be verified.

1 call to Verifier::verifyChecksumList()
Verifier::verifyChecksumFile in vendor/drupal/php-signify/src/Verifier.php
Verify the a signed checksum list file, and then verify the checksum for each file in the list.

File

vendor/drupal/php-signify/src/Verifier.php, line 166

Class

Verifier

Namespace

Drupal\Signify

Code

public function verifyChecksumList($signed_checksum_list, $working_directory) {
  $checksum_list_raw = $this
    ->verifyMessage($signed_checksum_list);
  return $this
    ->verifyTrustedChecksumList($checksum_list_raw, $working_directory);
}