mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Relocate sodium/common.h
This commit is contained in:
@@ -51,7 +51,6 @@ libsodium_la_SOURCES = \
|
||||
crypto_onetimeauth/poly1305/donna/poly1305_donna32.h \
|
||||
crypto_onetimeauth/poly1305/donna/poly1305_donna64.h \
|
||||
crypto_onetimeauth/poly1305/donna/poly1305_donna.c \
|
||||
crypto_pwhash/crypto_pwhash.c \
|
||||
crypto_pwhash/argon2/argon2-core.c \
|
||||
crypto_pwhash/argon2/argon2-core.h \
|
||||
crypto_pwhash/argon2/argon2-encoding.c \
|
||||
@@ -64,6 +63,7 @@ libsodium_la_SOURCES = \
|
||||
crypto_pwhash/argon2/blake2b-long.h \
|
||||
crypto_pwhash/argon2/blamka-round-ref.h \
|
||||
crypto_pwhash/argon2/pwhash_argon2i.c \
|
||||
crypto_pwhash/crypto_pwhash.c \
|
||||
crypto_pwhash/scryptsalsa208sha256/crypto_scrypt-common.c \
|
||||
crypto_pwhash/scryptsalsa208sha256/crypto_scrypt.h \
|
||||
crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c \
|
||||
@@ -86,11 +86,11 @@ libsodium_la_SOURCES = \
|
||||
crypto_sign/ed25519/ref10/keypair.c \
|
||||
crypto_sign/ed25519/ref10/open.c \
|
||||
crypto_sign/ed25519/ref10/sign.c \
|
||||
crypto_stream/crypto_stream.c \
|
||||
crypto_stream/chacha20/stream_chacha20.c \
|
||||
crypto_stream/chacha20/stream_chacha20.h \
|
||||
crypto_stream/chacha20/ref/stream_chacha20_ref.h \
|
||||
crypto_stream/chacha20/ref/stream_chacha20_ref.c \
|
||||
crypto_stream/crypto_stream.c \
|
||||
crypto_stream/salsa20/stream_salsa20_api.c \
|
||||
crypto_stream/xsalsa20/stream_xsalsa20_api.c \
|
||||
crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
|
||||
@@ -101,8 +101,8 @@ libsodium_la_SOURCES = \
|
||||
crypto_verify/32/ref/verify_32.c \
|
||||
crypto_verify/64/verify_64_api.c \
|
||||
crypto_verify/64/ref/verify_64.c \
|
||||
include/sodium/private.h \
|
||||
randombytes/randombytes.c \
|
||||
sodium/common.h \
|
||||
sodium/core.c \
|
||||
sodium/runtime.c \
|
||||
sodium/utils.c \
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "crypto_verify_16.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
static const unsigned char _pad0[16] = { 0 };
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "core_hchacha20.h"
|
||||
#include "crypto_core_hchacha20.h"
|
||||
#include "../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
int
|
||||
crypto_core_hchacha20(unsigned char *out, const unsigned char *in,
|
||||
|
||||
@@ -8,7 +8,7 @@ Public domain.
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto_core_hsalsa20.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define ROUNDS 20
|
||||
#define U32C(v) (v##U)
|
||||
|
||||
@@ -8,7 +8,7 @@ Public domain.
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto_core_salsa20.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define ROUNDS 20
|
||||
#define U32C(v) (v##U)
|
||||
|
||||
@@ -8,7 +8,7 @@ Public domain.
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto_core_salsa2012.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define ROUNDS 12
|
||||
#define U32C(v) (v##U)
|
||||
|
||||
@@ -8,7 +8,7 @@ Public domain.
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "crypto_core_salsa208.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define ROUNDS 8
|
||||
#define U32C(v) (v##U)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "blake2.h"
|
||||
#include "blake2-impl.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
CRYPTO_ALIGN(64) static const uint64_t blake2b_IV[8] =
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "blake2.h"
|
||||
#include "blake2-impl.h"
|
||||
#include "runtime.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#ifdef HAVE_TI_MODE
|
||||
# if defined(__SIZEOF_INT128__)
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "crypto_hash_sha256.h"
|
||||
#include "utils.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "crypto_hash_sha512.h"
|
||||
#include "utils.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# define POLY1305_NOINLINE
|
||||
#endif
|
||||
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define poly1305_block_size 16
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ typedef unsigned uint128_t __attribute__ ((mode(TI)));
|
||||
# define POLY1305_NOINLINE
|
||||
#endif
|
||||
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#define poly1305_block_size 16
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include "crypto_generichash_blake2b.h"
|
||||
#include "runtime.h"
|
||||
#include "utils.h"
|
||||
#include "../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#include "argon2-core.h"
|
||||
#include "argon2-impl.h"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "crypto_generichash_blake2b.h"
|
||||
#include "utils.h"
|
||||
#include "../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#include "argon2-impl.h"
|
||||
#include "blake2b-long.h"
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "../pbkdf2-sha256.h"
|
||||
#include "../crypto_scrypt.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
static inline void
|
||||
blkcpy_64(escrypt_block_t *dest, const escrypt_block_t *src)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "crypto_auth_hmacsha256.h"
|
||||
#include "pbkdf2-sha256.h"
|
||||
#include "utils.h"
|
||||
#include "../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
/**
|
||||
* PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, c, buf, dkLen):
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@
|
||||
|
||||
#include "../pbkdf2-sha256.h"
|
||||
#include "../crypto_scrypt.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
#if defined(__XOP__) && defined(DISABLED)
|
||||
#define ARX(out, in1, in2, s) \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "crypto_shorthash_siphash24.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
typedef uint64_t u64;
|
||||
typedef uint32_t u32;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#define COMMON_H
|
||||
|
||||
#include "types.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
/* Macros required only for key expansion */
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "crypto_stream_chacha20.h"
|
||||
#include "stream_chacha20_ref.h"
|
||||
#include "../stream_chacha20.h"
|
||||
#include "../../../sodium/common.h"
|
||||
#include "private/common.h"
|
||||
|
||||
struct chacha_ctx {
|
||||
uint32_t input[16];
|
||||
|
||||
Reference in New Issue
Block a user