Include export.h everywhere.

This commit is contained in:
Frank Denis
2013-04-21 17:32:10 -07:00
parent f44c1e477f
commit 6db3177585
42 changed files with 71 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ SODIUM_EXPORT = \
sodium/crypto_uint8.h \
sodium/crypto_verify_16.h \
sodium/crypto_verify_32.h \
sodium/export.h \
sodium/randombytes.h \
sodium/randombytes_salsa20_random.h \
sodium/randombytes_sysrandom.h \
+2
View File
@@ -2,6 +2,8 @@
#ifndef __SODIUM_CORE_H__
#define __SODIUM_CORE_H__
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_auth_hmacsha512256.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_auth_hmacsha256_H
#define crypto_auth_hmacsha256_H
#include "export.h"
#define crypto_auth_hmacsha256_BYTES 32
#define crypto_auth_hmacsha256_KEYBYTES 32
@@ -1,6 +1,8 @@
#ifndef crypto_auth_hmacsha512256_H
#define crypto_auth_hmacsha512256_H
#include "export.h"
#define crypto_auth_hmacsha512256_BYTES 32
#define crypto_auth_hmacsha512256_KEYBYTES 32
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_box_curve25519xsalsa20poly1305.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_box_curve25519xsalsa20poly1305_H
#define crypto_box_curve25519xsalsa20poly1305_H
#include "export.h"
#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32
#define crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES 32
#define crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES 32
@@ -1,6 +1,8 @@
#ifndef crypto_core_hsalsa20_H
#define crypto_core_hsalsa20_H
#include "export.h"
#define crypto_core_hsalsa20_OUTPUTBYTES 32
#define crypto_core_hsalsa20_INPUTBYTES 16
#define crypto_core_hsalsa20_KEYBYTES 32
@@ -1,6 +1,8 @@
#ifndef crypto_core_salsa20_H
#define crypto_core_salsa20_H
#include "export.h"
#define crypto_core_salsa20_OUTPUTBYTES 64
#define crypto_core_salsa20_INPUTBYTES 16
#define crypto_core_salsa20_KEYBYTES 32
@@ -1,6 +1,8 @@
#ifndef crypto_core_salsa2012_H
#define crypto_core_salsa2012_H
#include "export.h"
#define crypto_core_salsa2012_OUTPUTBYTES 64
#define crypto_core_salsa2012_INPUTBYTES 16
#define crypto_core_salsa2012_KEYBYTES 32
@@ -1,6 +1,8 @@
#ifndef crypto_core_salsa208_H
#define crypto_core_salsa208_H
#include "export.h"
#define crypto_core_salsa208_OUTPUTBYTES 64
#define crypto_core_salsa208_INPUTBYTES 16
#define crypto_core_salsa208_KEYBYTES 32
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_generichash_blake2b.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -4,6 +4,8 @@
#include <stdint.h>
#include <stdlib.h>
#include "export.h"
#define crypto_generichash_blake2b_BYTES_MIN 1U
#define crypto_generichash_blake2b_BYTES_MAX 64U
#define crypto_generichash_blake2b_KEYBYTES_MIN 0U
@@ -2,6 +2,7 @@
#define crypto_hash_H
#include "crypto_hash_sha512.h"
#include "export.h"
#define crypto_hash_BYTES crypto_hash_sha512_BYTES
#define crypto_hash_BLOCKBYTES crypto_hash_sha512_BLOCKBYTES
@@ -1,6 +1,8 @@
#ifndef crypto_hash_sha256_H
#define crypto_hash_sha256_H
#include "export.h"
#define crypto_hash_sha256_BYTES 32
#define crypto_hash_sha256_BLOCKBYTES 64
@@ -1,6 +1,8 @@
#ifndef crypto_hash_sha512_H
#define crypto_hash_sha512_H
#include "export.h"
#define crypto_hash_sha512_BYTES 64
#define crypto_hash_sha512_BLOCKBYTES 128
@@ -1,6 +1,8 @@
#ifndef crypto_hashblocks_sha256_H
#define crypto_hashblocks_sha256_H
#include "export.h"
#define crypto_hashblocks_sha256_STATEBYTES 32
#define crypto_hashblocks_sha256_BLOCKBYTES 64
@@ -1,6 +1,8 @@
#ifndef crypto_hashblocks_sha512_H
#define crypto_hashblocks_sha512_H
#include "export.h"
#define crypto_hashblocks_sha512_STATEBYTES 64
#define crypto_hashblocks_sha512_BLOCKBYTES 128
@@ -2,6 +2,7 @@
#define crypto_onetimeauth_H
#include "crypto_onetimeauth_poly1305.h"
#include "export.h"
#define crypto_onetimeauth crypto_onetimeauth_poly1305
#define crypto_onetimeauth_verify crypto_onetimeauth_poly1305_verify
@@ -1,6 +1,8 @@
#ifndef crypto_onetimeauth_poly1305_H
#define crypto_onetimeauth_poly1305_H
#include "export.h"
#define crypto_onetimeauth_poly1305_BYTES 16
#define crypto_onetimeauth_poly1305_KEYBYTES 32
#ifdef __cplusplus
@@ -2,6 +2,7 @@
#define crypto_onetimeauth_poly1305_53_H
#include "crypto_onetimeauth_poly1305.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -2,6 +2,7 @@
#define crypto_onetimeauth_poly1305_ref_H
#include "crypto_onetimeauth_poly1305.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_scalarmult_curve25519.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_secretbox_xsalsa20poly1305.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_secretbox_xsalsa20poly1305_H
#define crypto_secretbox_xsalsa20poly1305_H
#include "export.h"
#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32
#define crypto_secretbox_xsalsa20poly1305_NONCEBYTES 24
#define crypto_secretbox_xsalsa20poly1305_ZEROBYTES 32
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_shorthash_siphash24.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_shorthash_siphash24_H
#define crypto_shorthash_siphash24_H
#include "export.h"
#define crypto_shorthash_siphash24_BYTES 8
#define crypto_shorthash_siphash24_KEYBYTES 16
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_sign_ed25519.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_sign_ed25519_H
#define crypto_sign_ed25519_H
#include "export.h"
#define crypto_sign_ed25519_SECRETKEYBYTES 64
#define crypto_sign_ed25519_PUBLICKEYBYTES 32
#define crypto_sign_ed25519_BYTES 64
@@ -1,6 +1,8 @@
#ifndef crypto_sign_edwards25519sha512batch_H
#define crypto_sign_edwards25519sha512batch_H
#include "export.h"
#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES 64
#define crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES 32
#define crypto_sign_edwards25519sha512batch_BYTES 64
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "crypto_stream_xsalsa20.h"
#include "export.h"
#ifdef __cplusplus
extern "C" {
@@ -1,6 +1,8 @@
#ifndef crypto_stream_aes128ctr_H
#define crypto_stream_aes128ctr_H
#include "export.h"
#define crypto_stream_aes128ctr_KEYBYTES 16
#define crypto_stream_aes128ctr_NONCEBYTES 16
#define crypto_stream_aes128ctr_BEFORENMBYTES 1408
@@ -1,6 +1,8 @@
#ifndef crypto_stream_salsa20_H
#define crypto_stream_salsa20_H
#include "export.h"
#define crypto_stream_salsa20_KEYBYTES 32
#define crypto_stream_salsa20_NONCEBYTES 8
@@ -1,6 +1,8 @@
#ifndef crypto_stream_salsa2012_H
#define crypto_stream_salsa2012_H
#include "export.h"
#define crypto_stream_salsa2012_KEYBYTES 32
#define crypto_stream_salsa2012_NONCEBYTES 8
@@ -1,6 +1,8 @@
#ifndef crypto_stream_salsa208_H
#define crypto_stream_salsa208_H
#include "export.h"
#define crypto_stream_salsa208_KEYBYTES 32
#define crypto_stream_salsa208_NONCEBYTES 8
@@ -1,6 +1,8 @@
#ifndef crypto_stream_xsalsa20_H
#define crypto_stream_xsalsa20_H
#include "export.h"
#define crypto_stream_xsalsa20_KEYBYTES 32
#define crypto_stream_xsalsa20_NONCEBYTES 24
@@ -1,6 +1,8 @@
#ifndef crypto_verify_16_H
#define crypto_verify_16_H
#include "export.h"
#define crypto_verify_16_BYTES 16
#ifdef __cplusplus
@@ -1,6 +1,8 @@
#ifndef crypto_verify_32_H
#define crypto_verify_32_H
#include "export.h"
#define crypto_verify_32_BYTES 32
#ifdef __cplusplus
@@ -7,6 +7,8 @@
#include <stdint.h>
#include <stdio.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -5,6 +5,8 @@
#include <stdint.h>
#include <stdlib.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
@@ -5,6 +5,8 @@
#include <stdint.h>
#include <stdlib.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif
+2
View File
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif