Fixed comment...

This commit is contained in:
Leonetienne 2021-12-06 13:02:37 +01:00
parent b25640a268
commit 7bcdfcab8b
4 changed files with 20 additions and 18 deletions

View File

@ -112,6 +112,7 @@ GhettoCipher::Flexblock GhettoCipher::Cipher::Decipher(const Flexblock& data, bo
return ss.str();
}
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
#if defined _WIN32 || defined _WIN64
#pragma optimize("", off )
#elif defined __GNUG__

View File

@ -191,7 +191,7 @@ void GhettoCipher::Feistel::GenerateRoundKeys(const Block& seedKey)
return;
}
// These pragmas only work for MSVC, as far as i know. Beware!!!
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
#if defined _WIN32 || defined _WIN64
#pragma optimize("", off )
#elif defined __GNUG__

View File

@ -142,6 +142,7 @@ GhettoCipher::Flexblock GhettoCipher::Cipher::Decipher(const Flexblock& data, bo
return ss.str();
}
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
#if defined _WIN32 || defined _WIN64
#pragma optimize("", off )
#elif defined __GNUG__
@ -354,7 +355,7 @@ void GhettoCipher::Feistel::GenerateRoundKeys(const Block& seedKey)
return;
}
// These pragmas only work for MSVC, as far as i know. Beware!!!
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
#if defined _WIN32 || defined _WIN64
#pragma optimize("", off )
#elif defined __GNUG__

View File

@ -28,11 +28,6 @@
#pragma once
/*** ./../GhettoCrypt/Version.h ***/
#pragma once
#define GHETTOCRYPT_VERSION 0.1
/*** ./../GhettoCrypt/GhettoCryptWrapper.h ***/
#pragma once
@ -80,6 +75,11 @@ namespace GhettoCipher
typedef std::string Flexblock;
}
/*** ./../GhettoCrypt/Version.h ***/
#pragma once
#define GHETTOCRYPT_VERSION 0.1
/*** ./../GhettoCrypt/Config.h ***/
#pragma once
@ -90,17 +90,6 @@ namespace GhettoCipher
constexpr int N_ROUNDS = 64;
}
/*** ./../GhettoCrypt/Halfblock.h ***/
#pragma once
#include <bitset>
namespace GhettoCipher
{
constexpr int HALFBLOCK_SIZE = (BLOCK_SIZE / 2);
typedef std::bitset<HALFBLOCK_SIZE> Halfblock;
}
/*** ./../GhettoCrypt/Block.h ***/
#pragma once
@ -372,6 +361,17 @@ namespace GhettoCipher
}
}
/*** ./../GhettoCrypt/Halfblock.h ***/
#pragma once
#include <bitset>
namespace GhettoCipher
{
constexpr int HALFBLOCK_SIZE = (BLOCK_SIZE / 2);
typedef std::bitset<HALFBLOCK_SIZE> Halfblock;
}
/*** ./../GhettoCrypt/Keyset.h ***/
#pragma once