| 190 | } |
| 191 | |
| 192 | static 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 | |
| 207 | static int qualcomm_fixup(struct buffer *buffer, size_t offset) |
| 208 | { |
no test coverage detected