|
CycloneBOOT 2.6.6
Secure Bootloader for ARM Cortex-M MCU
|
CRC32 cryptographic integrity tag. More...
Macros | |
| #define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
| error_t | crc32Compute (const void *data, size_t length, uint8_t *digest) |
| Digest a message using CRC32. | |
| void | crc32Init (Crc32Context *context) |
| Initialize CRC32 message digest context. | |
| void | crc32Update (Crc32Context *context, const void *data, size_t length) |
| Update the CRC32 context with a portion of the message being hashed. | |
| void | crc32Final (Crc32Context *context, uint8_t *digest) |
| Finish the CRC32 message digest. | |
Variables | |
| const HashAlgo | crc32HashAlgo |
CRC32 cryptographic integrity tag.
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2021-2026 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneBOOT Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
| error_t crc32Compute | ( | const void * | data, |
| size_t | length, | ||
| uint8_t * | digest | ||
| ) |
Digest a message using CRC32.
| [in] | data | Pointer to the message being hashed |
| [in] | length | Length of the message |
| [out] | digest | Pointer to the calculated digest |
| void crc32Final | ( | Crc32Context * | context, |
| uint8_t * | digest | ||
| ) |
Finish the CRC32 message digest.
| [in] | context | Pointer to the CRC32 context |
| [out] | digest | Calculated digest (optional parameter) |
| void crc32Init | ( | Crc32Context * | context | ) |
Initialize CRC32 message digest context.
| [in] | context | Pointer to the CRC32 context to initialize |
| void crc32Update | ( | Crc32Context * | context, |
| const void * | data, | ||
| size_t | length | ||
| ) |
Update the CRC32 context with a portion of the message being hashed.
| [in] | context | Pointer to the CRC32 context |
| [in] | data | Pointer to the buffer being hashed |
| [in] | length | Length of the buffer |
| const HashAlgo crc32HashAlgo |