Skip to content

Commit

Permalink
Adjust includes to be amalgamation-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
utelle committed Dec 18, 2024
1 parent b2253ef commit 3739865
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
14 changes: 6 additions & 8 deletions src/aegis/libaegis.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@
#include "common/cpu.c"
#include "common/softaes.c"

#if 1
/* AEGIS 128 L */
#include "aegis128l/implementations.h"
#include "aegis128l/aegis128l_aesni.c"
#include "aegis128l/aegis128l_altivec.c"
#include "aegis128l/aegis128l_armcrypto.c"
#include "aegis128l/aegis128l_soft.c"
#include "aegis128l/aegis128l.c"

/* AEGIS 128 x2 */
#include "aegis128x2/implementations.h"
#include "aegis128x2/aegis128x2_aesni.c"
#include "aegis128x2/aegis128x2_altivec.c"
#include "aegis128x2/aegis128x2_armcrypto.c"
Expand All @@ -40,41 +41,38 @@
#include "aegis128x2/aegis128x2.c"

/* AEGIS 128 x4 */
#include "aegis128x4/implementations.h"
#include "aegis128x4/aegis128x4_aesni.c"
#include "aegis128x4/aegis128x4_altivec.c"
#include "aegis128x4/aegis128x4_armcrypto.c"
#include "aegis128x4/aegis128x4_avx2.c"
#include "aegis128x4/aegis128x4_avx512.c"
#include "aegis128x4/aegis128x4_soft.c"
#include "aegis128x4/aegis128x4.c"
#endif

#if 1
/* AEGIS 256 */
#include "aegis256/implementations.h"
#include "aegis256/aegis256_aesni.c"
#include "aegis256/aegis256_altivec.c"
#include "aegis256/aegis256_armcrypto.c"
#include "aegis256/aegis256_soft.c"
#include "aegis256/aegis256.c"
#endif

#if 1
/* AEGIS 256 x2 */
#include "aegis256x2/implementations.h"
#include "aegis256x2/aegis256x2_aesni.c"
#include "aegis256x2/aegis256x2_altivec.c"
#include "aegis256x2/aegis256x2_armcrypto.c"
#include "aegis256x2/aegis256x2_avx2.c"
#include "aegis256x2/aegis256x2_soft.c"
#include "aegis256x2/aegis256x2.c"
#endif

#if 1
/* AEGIS 256 x4 */
#include "aegis256x4/implementations.h"
#include "aegis256x4/aegis256x4_aesni.c"
#include "aegis256x4/aegis256x4_altivec.c"
#include "aegis256x4/aegis256x4_armcrypto.c"
#include "aegis256x4/aegis256x4_avx2.c"
#include "aegis256x4/aegis256x4_avx512.c"
#include "aegis256x4/aegis256x4_soft.c"
#include "aegis256x4/aegis256x4.c"
#endif
3 changes: 0 additions & 3 deletions src/argon2/libargon2.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@
#include "src/argon2.c"
#include "src/core.c"
#include "src/encoding.c"
#if 0
#include "src/opt.c"
#endif
#include "src/ref.c"
#include "src/thread.c"
2 changes: 1 addition & 1 deletion src/argon2/src/blake2/blake2.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef PORTABLE_BLAKE2_H
#define PORTABLE_BLAKE2_H

#include <argon2.h>
#include "argon2.h"

#if defined(__cplusplus)
extern "C" {
Expand Down

0 comments on commit 3739865

Please sign in to comment.