Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <cstdint> |
| 4 | #include <vector> |
| 5 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 6 | namespace ipmiblob |
Patrick Venture | 123b5c0 | 2019-03-05 14:01:00 -0800 | [diff] [blame] | 7 | { |
| 8 | |
| 9 | /** |
| 10 | * Generate the CRC for a payload (really any bytes). |
| 11 | * |
| 12 | * This is meant to only be called on the payload and not the CRC or the OEM |
| 13 | * header, etc. |
| 14 | * |
| 15 | * @param[in] data - the bytes against to run the CRC |
| 16 | * @return the CRC value |
| 17 | */ |
| 18 | std::uint16_t generateCrc(const std::vector<std::uint8_t>& data); |
| 19 | |
Patrick Venture | 1470bec | 2019-03-06 07:33:12 -0800 | [diff] [blame] | 20 | } // namespace ipmiblob |