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:
parent
0045a919b4
commit
0ee398e8b2
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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])
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user