MCPcopy Create free account
hub / github.com/coreboot/coreboot / qualcomm_probe

Function qualcomm_probe

util/cbfstool/platform_fixups.c:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static bool qualcomm_probe(struct buffer *buffer, size_t offset)
193{
194 struct vb2_hash real_hash;
195 void *table_hash = qualcomm_find_hash(buffer, offset, &real_hash);
196 if (!table_hash)
197 return false;
198
199 if (memcmp(real_hash.raw, table_hash, VB2_SHA384_DIGEST_SIZE)) {
200 ERROR("fixups: Identified Qualcomm MBN, but existing hash doesn't match!\n");
201 return false;
202 }
203
204 return true;
205}
206
207static int qualcomm_fixup(struct buffer *buffer, size_t offset)
208{

Callers 1

platform_fixups_probeFunction · 0.85

Calls 2

qualcomm_find_hashFunction · 0.85
memcmpFunction · 0.50

Tested by

no test coverage detected