Skip to content

Commit

Permalink
Move CRYPTO_ALIGN definition to aegis.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Jun 10, 2024
1 parent ab74d30 commit f0d4731
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/include/aegis.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
# define __attribute__(a)
#endif

#ifndef CRYPTO_ALIGN
# if defined(__INTEL_COMPILER) || defined(_MSC_VER)
# define CRYPTO_ALIGN(x) __declspec(align(x))
# elif defined(__GNUC__) || defined(__clang__)
# define CRYPTO_ALIGN(x) __attribute__((aligned(x)))
# else
# define CRYPTO_ALIGN(x)
# endif
#endif

#include "aegis128l.h"
#include "aegis128x2.h"
#include "aegis128x4.h"
Expand Down

0 comments on commit f0d4731

Please sign in to comment.