|
BSL v1.0.0 - 4.g1b6a605
AMMOS Bundle Protocol Security Library (BSL)
|
Declarations for BPv7 block CRC handling. More...
Include dependency graph for crc.h:
This graph shows which files directly or indirectly include this file:Functions | |
| void | mock_bpa_crc_apply (UsefulBuf buf, size_t begin, size_t end, BSL_BundleCRCType_e crc_type) |
| Apply a CRC function to an encoded block. | |
| bool | mock_bpa_crc_check (UsefulBufC buf, size_t begin, size_t end, BSL_BundleCRCType_e crc_type) |
| Check the CRC of an encoded block. | |
Declarations for BPv7 block CRC handling.
| void mock_bpa_crc_apply | ( | UsefulBuf | buf, |
| size_t | begin, | ||
| size_t | end, | ||
| BSL_BundleCRCType_e | crc_type | ||
| ) |
Apply a CRC function to an encoded block.
| buf | The buffer holding the encoded block. The buffer contents will be modified to hold the correct CRC value. |
| begin | The start of the block array |
| end | The end of the block array |
| crc_type | The needed CRC type. |
References BSL_BUNDLECRCTYPE_16, BSL_BUNDLECRCTYPE_32, and BSL_BUNDLECRCTYPE_NONE.
Referenced by bsl_mock_encode_canonical(), and bsl_mock_encode_primary().
| bool mock_bpa_crc_check | ( | UsefulBufC | buf, |
| size_t | begin, | ||
| size_t | end, | ||
| BSL_BundleCRCType_e | crc_type | ||
| ) |
Check the CRC of an encoded block.
| buf | The buffer holding the encoded block. |
| begin | The start of the block array |
| end | The end of the block array |
| crc_type | The needed CRC type. |
References BSL_BUNDLECRCTYPE_16, BSL_BUNDLECRCTYPE_32, and BSL_BUNDLECRCTYPE_NONE.
Referenced by bsl_mock_decode_canonical(), and bsl_mock_decode_primary().