Don't protect api.h against double inclusion, it's useless.

Plus, we need to use dedicated macros for that.
This commit is contained in:
Frank Denis
2013-04-22 12:47:32 -07:00
parent b146c5150a
commit b50e6fb5e7
27 changed files with 0 additions and 104 deletions
@@ -1,5 +1,3 @@
#ifndef crypto_auth_H
#define crypto_auth_H
#include "crypto_auth_hmacsha256.h"
@@ -10,5 +8,3 @@
#define crypto_auth_PRIMITIVE "hmacsha256"
#define crypto_auth_IMPLEMENTATION crypto_auth_hmacsha256_IMPLEMENTATION
#define crypto_auth_VERSION crypto_auth_hmacsha256_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_auth_H
#define crypto_auth_H
#include "crypto_auth_hmacsha512256.h"
@@ -10,5 +8,3 @@
#define crypto_auth_PRIMITIVE "hmacsha512256"
#define crypto_auth_IMPLEMENTATION crypto_auth_hmacsha512256_IMPLEMENTATION
#define crypto_auth_VERSION crypto_auth_hmacsha512256_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_box_H
#define crypto_box_H
#include "crypto_box_curve25519xsalsa20poly1305.h"
@@ -19,5 +17,3 @@
#define crypto_box_PRIMITIVE "curve25519xsalsa20poly1305"
#define crypto_box_IMPLEMENTATION crypto_box_curve25519xsalsa20poly1305_IMPLEMENTATION
#define crypto_box_VERSION crypto_box_curve25519xsalsa20poly1305_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_core_H
#define crypto_core_H
#include "crypto_core_hsalsa20.h"
@@ -11,5 +9,3 @@
#define crypto_core_PRIMITIVE "hsalsa20"
#define crypto_core_IMPLEMENTATION crypto_core_hsalsa20_IMPLEMENTATION
#define crypto_core_VERSION crypto_core_hsalsa20_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_core_H
#define crypto_core_H
#include "crypto_core_salsa20.h"
@@ -11,5 +9,3 @@
#define crypto_core_PRIMITIVE "salsa20"
#define crypto_core_IMPLEMENTATION crypto_core_salsa20_IMPLEMENTATION
#define crypto_core_VERSION crypto_core_salsa20_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_core_H
#define crypto_core_H
#include "crypto_core_salsa2012.h"
@@ -11,5 +9,3 @@
#define crypto_core_PRIMITIVE "salsa2012"
#define crypto_core_IMPLEMENTATION crypto_core_salsa2012_IMPLEMENTATION
#define crypto_core_VERSION crypto_core_salsa2012_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_core_H
#define crypto_core_H
#include "crypto_core_salsa208.h"
@@ -11,5 +9,3 @@
#define crypto_core_PRIMITIVE "salsa208"
#define crypto_core_IMPLEMENTATION crypto_core_salsa208_IMPLEMENTATION
#define crypto_core_VERSION crypto_core_salsa208_VERSION
#endif
@@ -1,8 +1,4 @@
#ifndef crypto_generichash_H
#define crypto_generichash_H
#include "crypto_generichash_blake2b.h"
#define crypto_generichash_blake2b crypto_generichash_blake2b_ref
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_hash_H
#define crypto_hash_H
#include "crypto_hash_sha256.h"
@@ -8,5 +6,3 @@
#define crypto_hash_PRIMITIVE "sha256"
#define crypto_hash_IMPLEMENTATION crypto_hash_sha256_IMPLEMENTATION
#define crypto_hash_VERSION crypto_hash_sha256_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_hash_H
#define crypto_hash_H
#include "crypto_hash_sha512.h"
@@ -8,5 +6,3 @@
#define crypto_hash_PRIMITIVE "sha512"
#define crypto_hash_IMPLEMENTATION crypto_hash_sha512_IMPLEMENTATION
#define crypto_hash_VERSION crypto_hash_sha512_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_hashblocks_H
#define crypto_hashblocks_H
#include "crypto_hashblocks_sha256.h"
@@ -9,5 +7,3 @@
#define crypto_hashblocks_PRIMITIVE "sha256"
#define crypto_hashblocks_IMPLEMENTATION crypto_hashblocks_sha256_IMPLEMENTATION
#define crypto_hashblocks_VERSION crypto_hashblocks_sha256_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_hashblocks_H
#define crypto_hashblocks_H
#include "crypto_hashblocks_sha512.h"
@@ -9,5 +7,3 @@
#define crypto_hashblocks_PRIMITIVE "sha512"
#define crypto_hashblocks_IMPLEMENTATION crypto_hashblocks_sha512_IMPLEMENTATION
#define crypto_hashblocks_VERSION crypto_hashblocks_sha512_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_onetimeauth_H
#define crypto_onetimeauth_H
#include "crypto_onetimeauth_poly1305.h"
@@ -8,5 +6,3 @@
#define crypto_onetimeauth crypto_onetimeauth_poly1305_53
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_53_verify
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_onetimeauth_H
#define crypto_onetimeauth_H
#include "crypto_onetimeauth_poly1305.h"
@@ -8,5 +6,3 @@
#define crypto_onetimeauth crypto_onetimeauth_poly1305_ref
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_ref_verify
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_scalarmult_H
#define crypto_scalarmult_H
#include "crypto_scalarmult_curve25519.h"
@@ -9,4 +7,3 @@
#define crypto_scalarmult crypto_scalarmult_curve25519_donna_c64
#define crypto_scalarmult_base crypto_scalarmult_curve25519_donna_c64_base
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_scalarmult_H
#define crypto_scalarmult_H
#include "crypto_scalarmult_curve25519.h"
@@ -8,5 +6,3 @@
#define crypto_scalarmult crypto_scalarmult_curve25519_ref
#define crypto_scalarmult_base crypto_scalarmult_curve25519_ref_base
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_secretbox_H
#define crypto_secretbox_H
#include "crypto_secretbox_xsalsa20poly1305.h"
@@ -12,5 +10,3 @@
#define crypto_secretbox_PRIMITIVE "xsalsa20poly1305"
#define crypto_secretbox_IMPLEMENTATION crypto_secretbox_xsalsa20poly1305_IMPLEMENTATION
#define crypto_secretbox_VERSION crypto_secretbox_xsalsa20poly1305_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_shorthash_H
#define crypto_shorthash_H
#include "crypto_shorthash_siphash24.h"
@@ -8,5 +6,3 @@
#define crypto_shorthash_PRIMITIVE "siphash24"
#define crypto_shorthash_IMPLEMENTATION crypto_shorthash_siphash24_IMPLEMENTATION
#define crypto_shorthash_VERSION crypto_shorthash_siphash24_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_sign_H
#define crypto_sign_H
#include "crypto_sign_ed25519.h"
@@ -13,5 +11,3 @@
#define crypto_sign_PRIMITIVE "ed25519"
#define crypto_sign_IMPLEMENTATION crypto_sign_ed25519_IMPLEMENTATION
#define crypto_sign_VERSION crypto_sign_ed25519_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_sign_H
#define crypto_sign_H
#include "crypto_sign_edwards25519sha512batch.h"
@@ -13,4 +11,3 @@
#define crypto_sign_IMPLEMENTATION crypto_sign_edwards25519sha512batch_IMPLEMENTATION
#define crypto_sign_VERSION crypto_sign_edwards25519sha512batch_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_stream_H
#define crypto_stream_H
#include "crypto_stream_aes128ctr.h"
@@ -14,5 +12,3 @@
#define crypto_stream_PRIMITIVE "aes128ctr"
#define crypto_stream_IMPLEMENTATION crypto_stream_aes128ctr_IMPLEMENTATION
#define crypto_stream_VERSION crypto_stream_aes128ctr_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_stream_H
#define crypto_stream_H
#include "crypto_stream_salsa20.h"
@@ -14,5 +12,3 @@
#define crypto_stream_PRIMITIVE "salsa20"
#define crypto_stream_IMPLEMENTATION crypto_stream_salsa20_IMPLEMENTATION
#define crypto_stream_VERSION crypto_stream_salsa20_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_stream_H
#define crypto_stream_H
#include "crypto_stream_salsa2012.h"
@@ -15,4 +13,3 @@
#define crypto_stream_IMPLEMENTATION crypto_stream_salsa2012_IMPLEMENTATION
#define crypto_stream_VERSION crypto_stream_salsa2012_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_stream_H
#define crypto_stream_H
#include "crypto_stream_salsa208.h"
@@ -14,5 +12,3 @@
#define crypto_stream_PRIMITIVE "salsa208"
#define crypto_stream_IMPLEMENTATION crypto_stream_salsa208_IMPLEMENTATION
#define crypto_stream_VERSION crypto_stream_salsa208_VERSION
#endif
@@ -1,5 +1,3 @@
#ifndef crypto_stream_H
#define crypto_stream_H
#include "crypto_stream_xsalsa20.h"
@@ -15,4 +13,3 @@
#define crypto_stream_IMPLEMENTATION crypto_stream_xsalsa20_IMPLEMENTATION
#define crypto_stream_VERSION crypto_stream_xsalsa20_VERSION
#endif
-4
View File
@@ -1,6 +1,2 @@
#ifndef crypto_verify_16_H
#define crypto_verify_16_H
#include "crypto_verify_16.h"
#endif
-4
View File
@@ -1,6 +1,2 @@
#ifndef crypto_verify_32_H
#define crypto_verify_32_H
#include "crypto_verify_32.h"
#endif