Now using actual include guards
This commit is contained in:
parent
a3c04b957f
commit
cb6c50b684
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_CONFIG_H
|
||||
#define GCRYPT_CONFIG_H
|
||||
|
||||
#include "GCrypt/SecureBitset.h"
|
||||
#include "GCrypt/Config.h"
|
||||
|
||||
@ -6,3 +8,5 @@ namespace Leonetienne::GCrypt {
|
||||
typedef SecureBitset<BLOCK_SIZE> Block;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_CONFIG_H
|
||||
#define GCRYPT_CONFIG_H
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace Leonetienne::GCrypt {
|
||||
@ -8,3 +10,6 @@ namespace Leonetienne::GCrypt {
|
||||
// MUST BE > 2
|
||||
constexpr std::size_t N_ROUNDS = 64;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_FEISTEL_H
|
||||
#define GCRYPT_FEISTEL_H
|
||||
|
||||
#include "GCrypt/Keyset.h"
|
||||
#include "GCrypt/Block.h"
|
||||
#include "GCrypt/Key.h"
|
||||
@ -60,3 +62,6 @@ namespace Leonetienne::GCrypt {
|
||||
Keyset roundKeys;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,7 +1,12 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_FLEXBLOCK_H
|
||||
#define GCRYPT_FLEXBLOCK_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace Leonetienne::GCrypt {
|
||||
//! A "bitset" of variable length
|
||||
typedef std::string Flexblock;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_GCIPHER_H
|
||||
#define GCRYPT_GCIPHER_H
|
||||
|
||||
#include "GCrypt/Feistel.h"
|
||||
#include "GCrypt/Flexblock.h"
|
||||
|
||||
@ -35,3 +37,6 @@ namespace Leonetienne::GCrypt {
|
||||
Block lastBlock;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_KEYSET_H
|
||||
#define GCRYPT_KEYSET_H
|
||||
|
||||
#include <array>
|
||||
#include "GCrypt/Key.h"
|
||||
#include "GCrypt/Config.h"
|
||||
@ -7,3 +9,5 @@ namespace Leonetienne::GCrypt {
|
||||
typedef std::array<Key, N_ROUNDS> Keyset;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_SECUREBITSET_H
|
||||
#define GCRYPT_SECUREBITSET_H
|
||||
|
||||
#include <bitset>
|
||||
#include <ostream>
|
||||
#include <istream>
|
||||
@ -285,3 +287,6 @@ namespace Leonetienne::GCrypt {
|
||||
return ifs >> bs.Get();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
#pragma once
|
||||
#ifndef GCRYPT_VERSION_H
|
||||
#define GCRYPT_VERSION_H
|
||||
|
||||
#define GHETTOCRYPT_VERSION 0.22
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user