Fixed comment...
This commit is contained in:
parent
b25640a268
commit
7bcdfcab8b
@ -112,6 +112,7 @@ GhettoCipher::Flexblock GhettoCipher::Cipher::Decipher(const Flexblock& data, bo
|
|||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
|
||||||
#if defined _WIN32 || defined _WIN64
|
#if defined _WIN32 || defined _WIN64
|
||||||
#pragma optimize("", off )
|
#pragma optimize("", off )
|
||||||
#elif defined __GNUG__
|
#elif defined __GNUG__
|
||||||
|
@ -191,7 +191,7 @@ void GhettoCipher::Feistel::GenerateRoundKeys(const Block& seedKey)
|
|||||||
return;
|
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
|
#if defined _WIN32 || defined _WIN64
|
||||||
#pragma optimize("", off )
|
#pragma optimize("", off )
|
||||||
#elif defined __GNUG__
|
#elif defined __GNUG__
|
||||||
|
@ -142,6 +142,7 @@ GhettoCipher::Flexblock GhettoCipher::Cipher::Decipher(const Flexblock& data, bo
|
|||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// These pragmas only work for MSVC and g++, as far as i know. Beware!!!
|
||||||
#if defined _WIN32 || defined _WIN64
|
#if defined _WIN32 || defined _WIN64
|
||||||
#pragma optimize("", off )
|
#pragma optimize("", off )
|
||||||
#elif defined __GNUG__
|
#elif defined __GNUG__
|
||||||
@ -354,7 +355,7 @@ void GhettoCipher::Feistel::GenerateRoundKeys(const Block& seedKey)
|
|||||||
return;
|
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
|
#if defined _WIN32 || defined _WIN64
|
||||||
#pragma optimize("", off )
|
#pragma optimize("", off )
|
||||||
#elif defined __GNUG__
|
#elif defined __GNUG__
|
||||||
|
@ -28,11 +28,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
/*** ./../GhettoCrypt/Version.h ***/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
#define GHETTOCRYPT_VERSION 0.1
|
|
||||||
|
|
||||||
/*** ./../GhettoCrypt/GhettoCryptWrapper.h ***/
|
/*** ./../GhettoCrypt/GhettoCryptWrapper.h ***/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -80,6 +75,11 @@ namespace GhettoCipher
|
|||||||
typedef std::string Flexblock;
|
typedef std::string Flexblock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*** ./../GhettoCrypt/Version.h ***/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
#define GHETTOCRYPT_VERSION 0.1
|
||||||
|
|
||||||
/*** ./../GhettoCrypt/Config.h ***/
|
/*** ./../GhettoCrypt/Config.h ***/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@ -90,17 +90,6 @@ namespace GhettoCipher
|
|||||||
constexpr int N_ROUNDS = 64;
|
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 ***/
|
/*** ./../GhettoCrypt/Block.h ***/
|
||||||
|
|
||||||
#pragma once
|
#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 ***/
|
/*** ./../GhettoCrypt/Keyset.h ***/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user