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