Lines Matching full:crc
21 #include <ipmiblob/crc.hpp>
36 uint16_t crc; member
79 /* We don't include the command byte at offset 0 as part of the crc in validateBlobCommand()
80 * payload area or the crc bytes at the beginning. in validateBlobCommand()
88 * Get the first two bytes of the request for crc. in validateBlobCommand()
90 uint16_t crc; in validateBlobCommand() local
91 if (data.size() < sizeof(crc)) in validateBlobCommand()
97 std::memcpy(&crc, data.data(), sizeof(crc)); in validateBlobCommand()
99 /* Set the in-place CRC to zero. in validateBlobCommand()
100 * Remove the first two bytes for crc and get the reset of the request. in validateBlobCommand()
102 data = data.subspan(sizeof(crc)); in validateBlobCommand()
104 /* Crc expected but didn't match. */ in validateBlobCommand()
105 if (crc != ipmiblob::generateCrc( in validateBlobCommand()
146 /* Read can return 0 bytes, and just a CRC, otherwise you need a CRC and 1 in processBlobCommand()
160 /* The command, whatever it was, replied, so let's set the CRC. */ in processBlobCommand()
165 /* Copy the CRC into place. */ in processBlobCommand()