1
0
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:
Günther Deschner 2010-06-15 12:01:09 +02:00
parent 65ca3e4ee9
commit aa76e8263d
11 changed files with 15 additions and 10 deletions

View File

@ -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 */

View File

@ -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;

View File

@ -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[] = {

View File

@ -22,7 +22,7 @@
* for ntlmv2.
*/
#include "includes.h"
#include "replace.h"
#include "../lib/crypto/hmacmd5.h"
/***********************************************************************

View File

@ -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;

View File

@ -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"
/***********************************************************************

View File

@ -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!

View File

@ -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;

View File

@ -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"

View File

@ -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;

View File

@ -38,7 +38,7 @@
* SUCH DAMAGE.
*/
#include "includes.h"
#include "replace.h"
#include "sha256.h"
#define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z)))