Midnight Sun Firmware
Loading...
Searching...
No Matches
fota_encryption.h
1#pragma once
2
3/************************************************************************************************
4 * @file fota_encryption.h
5 *
6 * @brief Fota Encryption Header File
7 *
8 * @date 2025-04-29
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdint.h>
14
15/* Inter-component Headers */
16
17/* Intra-component Headers */
18#include "fota_datagram.h"
19#include "fota_error.h"
20#include "fota_packet.h"
21
34
40uint32_t fota_calculate_crc32(uint8_t *data, uint32_t length_words);
41
48
55
FotaError fota_verify_datagram_encryption(FotaDatagram *datagram)
Verify a FOTA datagrams encryption.
Definition: fota_encryption.c:76
uint32_t fota_calculate_crc32(uint8_t *data, uint32_t length_words)
Calculate the CRC32 for a given buffer of 4-byte aligned data.
Definition: fota_encryption.c:42
FotaError fota_encryption_init()
Initialize the encryption unit.
Definition: fota_encryption.c:23
FotaError
FOTA Error code definitions.
Definition: fota_error.h:27
FotaError fota_verify_packet_encryption(FotaPacket *packet)
Verify a FOTA packets encryption.
Definition: fota_encryption.c:50
Structure representing datagram.
Definition: fota_datagram.h:58
FOTA Packet structure.
Definition: fota_packet.h:68