From: Laurent Mazet Date: Mon, 7 Apr 2025 07:12:20 +0000 (+0200) Subject: cleaning X-Git-Tag: v1.0~70 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=b358fc7e9c1950e8eebc24b0b474e7472fcd7bae;p=morep.git cleaning --- diff --git a/header.h b/header.h deleted file mode 100644 index bd0fc2a..0000000 --- a/header.h +++ /dev/null @@ -1,13 +0,0 @@ -/* - File name : verbose.h - Projet : MERLIN - Date of creation : 2025/03/19 - Version : 1.0 - Copyright : Thales SIX - Author : Laurent Mazet - - Description : This file contains verbose macros - - History : - - initial version -*/ diff --git a/message.h b/message.h deleted file mode 100644 index 2604d44..0000000 --- a/message.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - File name : message.h - Projet : MERLIN - Date of creation : 2025/04/03 - Version : 1.0 - Copyright : Thales SIX - Author : Laurent Mazet - - Description : This file contains message definition - - History : - - initial version -*/ - -#ifndef __MESSAGE_H__ -#define __MESSAGE_H__ - -#include -#include - -__BEGIN_DECLS - -/** - @ingroup MESSAGE - - Clear data type -*/ -typedef struct { - uint8_t channel_id; /**< channel index */ - uint8_t bypass_len; /**< attached bypass message length */ - uint8_t bypass_msg[255]; /**< attached bypass message */ - uint8_t data_len; /**< data length (must be aligned to 16 bytes) */ - uint8_t data[1472]; /**< data message */ -} CLEAR_DATA_t; - -/** - @ingroup MESSAGE - - Encrypted data type -*/ -typedef struct { - uint8_t channel_id; /**< channel index */ - uint8_t bypass_len; /**< attached bypass message length */ - uint8_t bypass_msg[255]; /**< attached bypass message */ - uint8_t data_len; /**< data length (must be aligned to 16 bytes) */ - uint8_t data[1472]; /**< data message */ - uint8_t iv[12]; /**< initial vector */ -} ENCRYPTED_DATA_t; - -/** - @ingroup MESSAGE - - PRNG parameter type -*/ -typedef struct { - uint8_t prng_id; /**< algorithm index */ - uint16_t seq_len; /**< requested PRNG sequence length */ - uint8_t seed_len; /**< data length (must be aligned to 16 bytes) */ -} PRNG_PARAM_t; - -/** - @ingroup MESSAGE - - Key type -*/ -typedef struct { - uint16_t key_len; /**< key length */ - uint8_t key[1495]; /**< raw key */ -} KEY_t; - -/** - @ingroup MESSAGE - - Channel type -*/ -typedef struct { - uint8_t channel_id; /**< channel index */ - uint8_t key_id; /**< key index */ -} CHANNEL_t; - -/** - @ingroup MESSAGE - - Status type -*/ -typedef struct { - uint8_t status; /**< status */ -} STATUS_t; - -/** - @ingroup MESSAGE - - Raw data type -*/ -typedef struct { - uint16_t data_len; /**< payload length */ - uint8_t data[1495]; /**< raw payload */ -} RAW_DATA_t; - -__END_DECLS - -#endif /* __MESSAGE_H__ */ - -/* vim: set ts=4 sw=4 si et: */ diff --git a/morep.c b/morep.c index 1566289..b154deb 100644 --- a/morep.c +++ b/morep.c @@ -1,7 +1,7 @@ /* Messaging Over Raw Ethernet Packets communication library - Copyrigth Thales 20250319 + Copyright Thales 20250319 */ #include