Lines Matching refs:expected_sha1
72 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; in ReadPartitionToBuffer() local
73 if (ParseSha1(partition.hash, expected_sha1) != 0) { in ReadPartitionToBuffer()
88 if (memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer()
101 memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer()
308 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; in FlashPartition() local
309 if (ParseSha1(partition.hash, expected_sha1) != 0) { in FlashPartition()
314 if (memcmp(source_file.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in FlashPartition()
330 uint8_t expected_sha1[SHA_DIGEST_LENGTH]; in GenerateTarget() local
331 if (ParseSha1(target.hash, expected_sha1) != 0) { in GenerateTarget()
387 if (memcmp(patched.sha1, expected_sha1, SHA_DIGEST_LENGTH) != 0) { in GenerateTarget()
388 LOG(ERROR) << "Patching did not produce the expected SHA-1 of " << short_sha1(expected_sha1); in GenerateTarget()
409 LOG(INFO) << " now " << short_sha1(expected_sha1); in GenerateTarget()