1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

lib:crypto: Include only the required header files

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Andreas Schneider 2019-02-26 18:30:22 +01:00 committed by Volker Lendecke
parent 0045a919b4
commit 0ee398e8b2
10 changed files with 19 additions and 12 deletions

View File

@ -18,7 +18,8 @@
*/
#include "replace.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_ccm_128.h"
#include "lib/util/byteorder.h"
#define M_ ((AES_CCM_128_M - 2) / 2)

View File

@ -18,8 +18,9 @@
*/
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "../lib/crypto/aes_test.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_ccm_128.h"
#include "lib/crypto/aes_test.h"
#ifndef AES_CCM_128_ONLY_TESTVECTORS
struct torture_context;

View File

@ -19,7 +19,8 @@
*/
#include "replace.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_cmac_128.h"
static const uint8_t const_Zero[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,

View File

@ -17,7 +17,8 @@
*/
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_cmac_128.h"
struct torture_context;
bool torture_local_crypto_aes_cmac_128(struct torture_context *torture);

View File

@ -18,7 +18,8 @@
*/
#include "replace.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_gcm_128.h"
#include "lib/util/byteorder.h"
static inline void aes_gcm_128_inc32(uint8_t inout[AES_BLOCK_SIZE])

View File

@ -18,8 +18,9 @@
*/
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "../lib/crypto/aes_test.h"
#include "lib/crypto/aes.h"
#include "lib/crypto/aes_gcm_128.h"
#include "lib/crypto/aes_test.h"
#ifndef AES_GCM_128_ONLY_TESTVECTORS
struct torture_context;

View File

@ -18,7 +18,7 @@
*/
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/hmacmd5.h"
struct torture_context;
bool torture_local_crypto_hmacmd5(struct torture_context *torture);

View File

@ -27,7 +27,8 @@
*/
#include "replace.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/sha256.h"
#include "lib/crypto/hmacsha256.h"
/***********************************************************************
the rfc 2104/2202 version of hmac_sha256 initialisation.

View File

@ -19,7 +19,7 @@
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/md4.h"
struct torture_context;
bool torture_local_crypto_md4(struct torture_context *torture);

View File

@ -19,7 +19,7 @@
#include "replace.h"
#include "../lib/util/samba_util.h"
#include "../lib/crypto/crypto.h"
#include "lib/crypto/md5.h"
struct torture_context;