mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
lib/crypto: only include what is needed.
Guenther
This commit is contained in:
parent
65ca3e4ee9
commit
aa76e8263d
@ -19,7 +19,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/crypto/arcfour.h"
|
||||
|
||||
/* initialise the arcfour sbox with key */
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef ARCFOUR_HEADER_H
|
||||
#define ARCFOUR_HEADER_H
|
||||
|
||||
#include "../lib/util/data_blob.h"
|
||||
|
||||
struct arcfour_state {
|
||||
uint8_t sbox[256];
|
||||
uint8_t index_i;
|
||||
|
@ -40,7 +40,7 @@
|
||||
* CRC32 code derived from work by Gary S. Brown.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/crypto/crc32.h"
|
||||
|
||||
static const uint32_t crc32_tab[] = {
|
||||
|
@ -22,7 +22,7 @@
|
||||
* for ntlmv2.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/crypto/hmacmd5.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -16,7 +16,8 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/util/util.h"
|
||||
#include "../lib/crypto/crypto.h"
|
||||
|
||||
struct torture_context;
|
||||
|
@ -26,7 +26,7 @@
|
||||
taken direct from rfc2202 implementation and modified for suitable use
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/crypto/crypto.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -17,7 +17,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/crypto/md4.h"
|
||||
|
||||
/* NOTE: This code makes no attempt to be fast!
|
||||
|
@ -17,7 +17,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/util/util.h"
|
||||
#include "../lib/crypto/crypto.h"
|
||||
|
||||
struct torture_context;
|
||||
|
@ -18,7 +18,7 @@
|
||||
/* This code slightly modified to fit into Samba by
|
||||
abartlet@samba.org Jun 2001 */
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
|
||||
#include "md5.h"
|
||||
|
||||
|
@ -17,7 +17,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "../lib/util/util.h"
|
||||
#include "../lib/crypto/crypto.h"
|
||||
|
||||
struct torture_context;
|
||||
|
@ -38,7 +38,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "replace.h"
|
||||
#include "sha256.h"
|
||||
|
||||
#define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user