pldm: Add verify CRC value of the BIOS table

Add a checksum methods to the BIOS table and verify the integrity
of the BIOS table.

Tested: add the UTest method and pass the test.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I57849714b0450b65fd894f767b15ab47de8cde89
diff --git a/libpldm/bios_table.h b/libpldm/bios_table.h
index fe964ee..284efcb 100644
--- a/libpldm/bios_table.h
+++ b/libpldm/bios_table.h
@@ -714,6 +714,13 @@
     const void *src_table, size_t src_length, void *dest_table,
     size_t *dest_length, const void *entry, size_t entry_length);
 
+/** @brief Verify the crc value of the complete table
+ *  @param[in] table - Pointer to a buffer of a bios table
+ *  @param[in] size - Size of the buffer of a bios table
+ *  @return true: crc value is correct
+ */
+bool pldm_bios_table_checksum(const uint8_t *table, size_t size);
+
 #ifdef __cplusplus
 }
 #endif