WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
encryptionfunctions.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX INC 2025. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX INC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX INC.
15******************************************************************************/
16#ifndef ENCRYPTION_FUNCTIONS_H
17#define ENCRYPTION_FUNCTIONS_H
18
19#include <string>
20
21namespace warptwin {
22
23 const int MAX_SIZE_CHAR = 0xFF;
24
30 void simpleEncrypt(char* unencrypted, char* encrypted, char size, const std::string &key);
31
37 void simpleDecrypt(char* encrypted, char* unencrypted, char size, const std::string &key);
38
43 void writeFileBinarySize(char* buffer, char buffer_size, const std::string &filename);
44
49 void readFileBinarySize(char buffer[MAX_SIZE_CHAR], char* size_actual, const std::string &filename);
50
51}
52
53#endif
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
void readFileBinarySize(char buffer[MAX_SIZE_CHAR], char *size_actual, const std::string &filename)
Function to read a buffer of bytes from a file.
Definition encryptionfunctions.cpp:79
void writeFileBinarySize(char *buffer, char buffer_size, const std::string &filename)
Function to write a buffer of bytes to a file, along with their size.
Definition encryptionfunctions.cpp:65
void simpleDecrypt(char *encrypted, char *unencrypted, char size, const std::string &key)
Function to decrypt a buffer of data – companion to simpleEncrypt.
Definition encryptionfunctions.cpp:47
const int MAX_SIZE_CHAR
Definition encryptionfunctions.h:23
void simpleEncrypt(char *unencrypted, char *encrypted, char size, const std::string &key)
Function to perform a simple encryption of a buffer of data.
Definition encryptionfunctions.cpp:24