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