From af23f3943ed667d0b7950efe7ff78e01753387bb Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Thu, 10 Oct 2024 13:04:46 +1100 Subject: [PATCH] make header guards consistent --- src/emp-ag2pc/2pc.h | 6 +++--- src/emp-ag2pc/config.h | 4 ++-- src/emp-ag2pc/feq.h | 6 +++--- src/emp-ag2pc/fpre.h | 6 +++--- src/emp-ag2pc/helper.h | 4 ++-- src/emp-ag2pc/leaky_deltaot.h | 6 +++--- src/emp-ot/co.h | 6 +++--- src/emp-ot/iknp.h | 4 ++-- src/emp-ot/ot.h | 4 ++-- src/emp-tool/circuits/bit.h | 4 ++-- src/emp-tool/circuits/circuit_file.h | 4 ++-- src/emp-tool/circuits/swappable.h | 4 ++-- src/emp-tool/execution/circuit_execution.h | 4 ++-- src/emp-tool/execution/protocol_execution.h | 4 ++-- src/emp-tool/gc/halfgate_eva.h | 6 +++--- src/emp-tool/gc/halfgate_gen.h | 6 +++--- src/emp-tool/io/io_channel.h | 4 ++-- src/emp-tool/utils/aes_opt.h | 4 ++-- src/emp-tool/utils/block.h | 6 +++--- src/emp-tool/utils/constants.h | 6 +++--- src/emp-tool/utils/f2k.h | 4 ++-- src/emp-tool/utils/group.h | 4 ++-- src/emp-tool/utils/group_openssl.h | 4 ++-- src/emp-tool/utils/hash.h | 6 +++--- src/emp-tool/utils/mitccrh.h | 6 +++--- src/emp-tool/utils/prg.h | 6 +++--- src/emp-tool/utils/prp.h | 6 +++--- src/emp-tool/utils/utils.h | 6 +++--- 28 files changed, 70 insertions(+), 70 deletions(-) diff --git a/src/emp-ag2pc/2pc.h b/src/emp-ag2pc/2pc.h index 4ef1ed5..393cb79 100644 --- a/src/emp-ag2pc/2pc.h +++ b/src/emp-ag2pc/2pc.h @@ -1,5 +1,5 @@ -#ifndef EMP_AG2PC_2PC_H__ -#define EMP_AG2PC_2PC_H__ +#ifndef EMP_AG2PC_2PC_H +#define EMP_AG2PC_2PC_H #include #include "emp-ag2pc/fpre.h" @@ -524,4 +524,4 @@ public: } -#endif // EMP_AG2PC_2PC_H__ +#endif // EMP_AG2PC_2PC_H diff --git a/src/emp-ag2pc/config.h b/src/emp-ag2pc/config.h index daa3cb4..36df8f5 100644 --- a/src/emp-ag2pc/config.h +++ b/src/emp-ag2pc/config.h @@ -1,5 +1,5 @@ -#ifndef EMP_AG2PC_CONFIG_H__ -#define EMP_AG2PC_CONFIG_H__ +#ifndef EMP_AG2PC_CONFIG_H +#define EMP_AG2PC_CONFIG_H namespace emp { const static char * IP = "127.0.0.1"; //const static char * IP = "172.31.10.128"; diff --git a/src/emp-ag2pc/feq.h b/src/emp-ag2pc/feq.h index 76d062c..1babadd 100644 --- a/src/emp-ag2pc/feq.h +++ b/src/emp-ag2pc/feq.h @@ -1,5 +1,5 @@ -#ifndef EMP_AG2PC_FEQ_H__ -#define EMP_AG2PC_FEQ_H__ +#ifndef EMP_AG2PC_FEQ_H +#define EMP_AG2PC_FEQ_H #include namespace emp { @@ -45,4 +45,4 @@ class Feq { public: }; } -#endif// FEQ_H__ +#endif// FEQ_H diff --git a/src/emp-ag2pc/fpre.h b/src/emp-ag2pc/fpre.h index 1215798..e516e48 100644 --- a/src/emp-ag2pc/fpre.h +++ b/src/emp-ag2pc/fpre.h @@ -1,5 +1,5 @@ -#ifndef EMP_AG2PC_FPRE_H__ -#define EMP_AG2PC_FPRE_H__ +#ifndef EMP_AG2PC_FPRE_H +#define EMP_AG2PC_FPRE_H #include #include #include "emp-ag2pc/feq.h" @@ -357,4 +357,4 @@ class Fpre { } }; } -#endif// FPRE_H__ +#endif// FPRE_H diff --git a/src/emp-ag2pc/helper.h b/src/emp-ag2pc/helper.h index 39e7c33..d319ca2 100644 --- a/src/emp-ag2pc/helper.h +++ b/src/emp-ag2pc/helper.h @@ -1,5 +1,5 @@ -#ifndef EMP_AG2PC_HELPER_H__ -#define EMP_AG2PC_HELPER_H__ +#ifndef EMP_AG2PC_HELPER_H +#define EMP_AG2PC_HELPER_H #include #include "config.h" diff --git a/src/emp-ag2pc/leaky_deltaot.h b/src/emp-ag2pc/leaky_deltaot.h index 6a05f0b..22be3a6 100644 --- a/src/emp-ag2pc/leaky_deltaot.h +++ b/src/emp-ag2pc/leaky_deltaot.h @@ -1,5 +1,5 @@ -#ifndef LEAKY_DELTA_OT_H__ -#define LEAKY_DELTA_OT_H__ +#ifndef LEAKY_DELTA_OT_H +#define LEAKY_DELTA_OT_H #include namespace emp { #ifdef __GNUC__ @@ -44,4 +44,4 @@ public: #endif #endif } -#endif// LEAKY_DELTA_OT_H__ +#endif// LEAKY_DELTA_OT_H diff --git a/src/emp-ot/co.h b/src/emp-ot/co.h index 27ed256..8d744fa 100644 --- a/src/emp-ot/co.h +++ b/src/emp-ot/co.h @@ -1,5 +1,5 @@ -#ifndef EMP_OTCO_H__ -#define EMP_OTCO_H__ +#ifndef EMP_OTCO_H +#define EMP_OTCO_H #include #include "emp-ot/ot.h" @@ -96,4 +96,4 @@ class OTCO: public OT { public: }; }//namespace -#endif// OT_CO_H__ +#endif// OT_CO_H diff --git a/src/emp-ot/iknp.h b/src/emp-ot/iknp.h index dd09dfb..e4646fd 100644 --- a/src/emp-ot/iknp.h +++ b/src/emp-ot/iknp.h @@ -1,5 +1,5 @@ -#ifndef EMP_IKNP_H__ -#define EMP_IKNP_H__ +#ifndef EMP_IKNP_H +#define EMP_IKNP_H #include "emp-ot/co.h" namespace emp { diff --git a/src/emp-ot/ot.h b/src/emp-ot/ot.h index abd545d..5b1b315 100644 --- a/src/emp-ot/ot.h +++ b/src/emp-ot/ot.h @@ -1,5 +1,5 @@ -#ifndef EMP_OT_H__ -#define EMP_OT_H__ +#ifndef EMP_OT_H +#define EMP_OT_H #include namespace emp { diff --git a/src/emp-tool/circuits/bit.h b/src/emp-tool/circuits/bit.h index 634bfbc..1354040 100644 --- a/src/emp-tool/circuits/bit.h +++ b/src/emp-tool/circuits/bit.h @@ -1,5 +1,5 @@ -#ifndef EMP_BIT_H__ -#define EMP_BIT_H__ +#ifndef EMP_BIT_H +#define EMP_BIT_H #include "emp-tool/execution/circuit_execution.h" #include "emp-tool/execution/protocol_execution.h" #include "emp-tool/utils/utils.h" diff --git a/src/emp-tool/circuits/circuit_file.h b/src/emp-tool/circuits/circuit_file.h index 6159ac0..627a5ff 100644 --- a/src/emp-tool/circuits/circuit_file.h +++ b/src/emp-tool/circuits/circuit_file.h @@ -1,5 +1,5 @@ -#ifndef EMP_BRISTOL_FORMAT_H__ -#define EMP_BRISTOL_FORMAT_H__ +#ifndef EMP_BRISTOL_FORMAT_H +#define EMP_BRISTOL_FORMAT_H #include "emp-tool/execution/circuit_execution.h" #include "emp-tool/execution/protocol_execution.h" diff --git a/src/emp-tool/circuits/swappable.h b/src/emp-tool/circuits/swappable.h index 744e9cf..d88e1a2 100644 --- a/src/emp-tool/circuits/swappable.h +++ b/src/emp-tool/circuits/swappable.h @@ -1,5 +1,5 @@ -#ifndef EMP_SWAPPABLE_H__ -#define EMP_SWAPPABLE_H__ +#ifndef EMP_SWAPPABLE_H +#define EMP_SWAPPABLE_H #include "emp-tool/circuits/bit.h" namespace emp { class Bit; diff --git a/src/emp-tool/execution/circuit_execution.h b/src/emp-tool/execution/circuit_execution.h index 7bae48a..37f5596 100644 --- a/src/emp-tool/execution/circuit_execution.h +++ b/src/emp-tool/execution/circuit_execution.h @@ -1,5 +1,5 @@ -#ifndef EMP_CIRCUIT_EXECUTION_H__ -#define EMP_CIRCUIT_EXECUTION_H__ +#ifndef EMP_CIRCUIT_EXECUTION_H +#define EMP_CIRCUIT_EXECUTION_H #include "emp-tool/utils/block.h" #include "emp-tool/utils/constants.h" diff --git a/src/emp-tool/execution/protocol_execution.h b/src/emp-tool/execution/protocol_execution.h index 791b847..8bfd439 100644 --- a/src/emp-tool/execution/protocol_execution.h +++ b/src/emp-tool/execution/protocol_execution.h @@ -1,5 +1,5 @@ -#ifndef EMP_PROTOCOL_EXECUTION_H__ -#define EMP_PROTOCOL_EXECUTION_H__ +#ifndef EMP_PROTOCOL_EXECUTION_H +#define EMP_PROTOCOL_EXECUTION_H #include #include "emp-tool/utils/block.h" #include "emp-tool/utils/constants.h" diff --git a/src/emp-tool/gc/halfgate_eva.h b/src/emp-tool/gc/halfgate_eva.h index c1fa0c4..0f3a1c2 100644 --- a/src/emp-tool/gc/halfgate_eva.h +++ b/src/emp-tool/gc/halfgate_eva.h @@ -1,5 +1,5 @@ -#ifndef EMP_HALFGATE_EVA_H__ -#define EMP_HALFGATE_EVA_H__ +#ifndef EMP_HALFGATE_EVA_H +#define EMP_HALFGATE_EVA_H #include "emp-tool/utils/utils.h" #include "emp-tool/utils/mitccrh.h" #include "emp-tool/execution/circuit_execution.h" @@ -60,4 +60,4 @@ public: } }; } -#endif// HALFGATE_EVA_H__ +#endif// HALFGATE_EVA_H diff --git a/src/emp-tool/gc/halfgate_gen.h b/src/emp-tool/gc/halfgate_gen.h index b34618b..5f63d35 100644 --- a/src/emp-tool/gc/halfgate_gen.h +++ b/src/emp-tool/gc/halfgate_gen.h @@ -1,5 +1,5 @@ -#ifndef EMP_HALFGATE_GEN_H__ -#define EMP_HALFGATE_GEN_H__ +#ifndef EMP_HALFGATE_GEN_H +#define EMP_HALFGATE_GEN_H #include "emp-tool/utils/utils.h" #include "emp-tool/utils/mitccrh.h" #include "emp-tool/execution/circuit_execution.h" @@ -79,4 +79,4 @@ public: } }; } -#endif// HALFGATE_GEN_H__ +#endif// HALFGATE_GEN_H diff --git a/src/emp-tool/io/io_channel.h b/src/emp-tool/io/io_channel.h index 5b46fff..86ae2c1 100644 --- a/src/emp-tool/io/io_channel.h +++ b/src/emp-tool/io/io_channel.h @@ -1,5 +1,5 @@ -#ifndef EMP_IO_CHANNEL_H__ -#define EMP_IO_CHANNEL_H__ +#ifndef EMP_IO_CHANNEL_H +#define EMP_IO_CHANNEL_H #include "emp-tool/utils/block.h" #include "emp-tool/utils/prg.h" #include "emp-tool/utils/group.h" diff --git a/src/emp-tool/utils/aes_opt.h b/src/emp-tool/utils/aes_opt.h index 2594e32..294a1b2 100644 --- a/src/emp-tool/utils/aes_opt.h +++ b/src/emp-tool/utils/aes_opt.h @@ -1,5 +1,5 @@ -#ifndef EMP_AES_OPT_KS_H__ -#define EMP_AES_OPT_KS_H__ +#ifndef EMP_AES_OPT_KS_H +#define EMP_AES_OPT_KS_H #include "emp-tool/utils/aes.h" diff --git a/src/emp-tool/utils/block.h b/src/emp-tool/utils/block.h index 3c25a73..ad7af1b 100644 --- a/src/emp-tool/utils/block.h +++ b/src/emp-tool/utils/block.h @@ -1,5 +1,5 @@ -#ifndef EMP_UTIL_BLOCK_H__ -#define EMP_UTIL_BLOCK_H__ +#ifndef EMP_UTIL_BLOCK_H +#define EMP_UTIL_BLOCK_H #ifdef __x86_64__ #include @@ -179,4 +179,4 @@ inline void sse_trans(uint8_t *out, uint8_t const *inp, uint64_t nrows, OUT(rr, cc + i) = _mm_movemask_epi8(tmp.x); } } -#endif//UTIL_BLOCK_H__ +#endif//UTIL_BLOCK_H diff --git a/src/emp-tool/utils/constants.h b/src/emp-tool/utils/constants.h index 9980693..8dc9319 100644 --- a/src/emp-tool/utils/constants.h +++ b/src/emp-tool/utils/constants.h @@ -1,5 +1,5 @@ -#ifndef EMP_CONFIG_H__ -#define EMP_CONFIG_H__ +#ifndef EMP_CONFIG_H +#define EMP_CONFIG_H namespace emp { const static int AES_BATCH_SIZE = 8; const static int HASH_BUFFER_SIZE = 1024*8; @@ -15,4 +15,4 @@ const static int BOB = 2; const char fix_key[] = "\x61\x7e\x8d\xa2\xa0\x51\x1e\x96\x5e\x41\xc2\x9b\x15\x3f\xc7\x7a"; } -#endif// CONFIG_H__ +#endif// CONFIG_H diff --git a/src/emp-tool/utils/f2k.h b/src/emp-tool/utils/f2k.h index 4819b0e..819a841 100644 --- a/src/emp-tool/utils/f2k.h +++ b/src/emp-tool/utils/f2k.h @@ -1,5 +1,5 @@ -#ifndef EMP_F2K_H__ -#define EMP_F2K_H__ +#ifndef EMP_F2K_H +#define EMP_F2K_H #include "emp-tool/utils/block.h" namespace emp { diff --git a/src/emp-tool/utils/group.h b/src/emp-tool/utils/group.h index 410356e..adbd67f 100644 --- a/src/emp-tool/utils/group.h +++ b/src/emp-tool/utils/group.h @@ -1,5 +1,5 @@ -#ifndef EMP_GROUP_H__ -#define EMP_GROUP_H__ +#ifndef EMP_GROUP_H +#define EMP_GROUP_H #include #include diff --git a/src/emp-tool/utils/group_openssl.h b/src/emp-tool/utils/group_openssl.h index dcc7b3e..eaf389f 100644 --- a/src/emp-tool/utils/group_openssl.h +++ b/src/emp-tool/utils/group_openssl.h @@ -1,5 +1,5 @@ -#ifndef EMP_GROUP_OPENSSL_H__ -#define EMP_GROUP_OPENSSL_H__ +#ifndef EMP_GROUP_OPENSSL_H +#define EMP_GROUP_OPENSSL_H namespace emp { inline BigInt::BigInt() { diff --git a/src/emp-tool/utils/hash.h b/src/emp-tool/utils/hash.h index 9f287a3..ec03f36 100644 --- a/src/emp-tool/utils/hash.h +++ b/src/emp-tool/utils/hash.h @@ -1,5 +1,5 @@ -#ifndef EMP_HASH_H__ -#define EMP_HASH_H__ +#ifndef EMP_HASH_H +#define EMP_HASH_H #include "emp-tool/utils/block.h" #include "emp-tool/utils/group.h" @@ -75,4 +75,4 @@ class Hash { public: } }; } -#endif// HASH_H__ +#endif// HASH_H diff --git a/src/emp-tool/utils/mitccrh.h b/src/emp-tool/utils/mitccrh.h index 8164e85..2507dee 100644 --- a/src/emp-tool/utils/mitccrh.h +++ b/src/emp-tool/utils/mitccrh.h @@ -1,5 +1,5 @@ -#ifndef EMP_MITCCRH_H__ -#define EMP_MITCCRH_H__ +#ifndef EMP_MITCCRH_H +#define EMP_MITCCRH_H #include "emp-tool/utils/aes_opt.h" #include @@ -60,4 +60,4 @@ class MITCCRH { public: }; } -#endif// MITCCRH_H__ +#endif// MITCCRH_H diff --git a/src/emp-tool/utils/prg.h b/src/emp-tool/utils/prg.h index 23bbf42..bb2c2cd 100644 --- a/src/emp-tool/utils/prg.h +++ b/src/emp-tool/utils/prg.h @@ -1,5 +1,5 @@ -#ifndef EMP_PRG_H__ -#define EMP_PRG_H__ +#ifndef EMP_PRG_H +#define EMP_PRG_H #include "emp-tool/utils/block.h" #include "emp-tool/utils/aes.h" #include "emp-tool/utils/utils.h" @@ -120,4 +120,4 @@ class PRG { public: }; } -#endif// PRP_H__ +#endif// PRP_H diff --git a/src/emp-tool/utils/prp.h b/src/emp-tool/utils/prp.h index 08db0da..adf0cc9 100644 --- a/src/emp-tool/utils/prp.h +++ b/src/emp-tool/utils/prp.h @@ -1,5 +1,5 @@ -#ifndef EMP_PRP_H__ -#define EMP_PRP_H__ +#ifndef EMP_PRP_H +#define EMP_PRP_H #include "emp-tool/utils/block.h" #include "emp-tool/utils/constants.h" #include "emp-tool/utils/aes.h" @@ -37,4 +37,4 @@ class PRP { public: } }; } -#endif// PRP_H__ +#endif// PRP_H diff --git a/src/emp-tool/utils/utils.h b/src/emp-tool/utils/utils.h index 2f0b47f..4a8eb8f 100644 --- a/src/emp-tool/utils/utils.h +++ b/src/emp-tool/utils/utils.h @@ -1,5 +1,5 @@ -#ifndef EMP_UTILS_H__ -#define EMP_UTILS_H__ +#ifndef EMP_UTILS_H +#define EMP_UTILS_H #include #include "emp-tool/utils/block.h" #include @@ -52,4 +52,4 @@ bool file_exists(const std::string &name); #include "emp-tool/utils/utils.hpp" } -#endif// UTILS_H__ +#endif// UTILS_H