summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-12 04:17:54 +0000
committerJeremy Allison <jra@samba.org>1998-11-12 04:17:54 +0000
commit10a9addc222b29acdcfe6afed0597dd17551fa5c (patch)
tree7ed44a2af6b2b8a96490ed901ba79b5c9791d18c /source3/libsmb
parentf08caf67e43c48a2cde58a22233906972136494a (diff)
downloadsamba-10a9addc222b29acdcfe6afed0597dd17551fa5c.tar.gz
samba-10a9addc222b29acdcfe6afed0597dd17551fa5c.tar.bz2
samba-10a9addc222b29acdcfe6afed0597dd17551fa5c.zip
Moved some code (NTLMSSPcalc) out of smbdes and inline for paranioa
resons and my own piece of mind... Jeremy. (This used to be commit 45131501f23ce1eec2f23fe2c1060cd5a2736ec9)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smbdes.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c
index 5bff1742af..d0e1c6e85f 100644
--- a/source3/libsmb/smbdes.c
+++ b/source3/libsmb/smbdes.c
@@ -358,32 +358,6 @@ void cred_hash3(unsigned char *out,unsigned char *in,unsigned char *key, int for
smbhash(out + 8, in + 8, key2, forw);
}
-void NTLMSSPcalc( unsigned char hash[258], unsigned char *data, int len)
-{
- unsigned char index_i = hash[256];
- unsigned char index_j = hash[257];
- int ind;
-
- for( ind = 0; ind < len; ind++)
- {
- unsigned char tc;
- unsigned char t;
-
- index_i++;
- index_j += hash[index_i];
-
- tc = hash[index_i];
- hash[index_i] = hash[index_j];
- hash[index_j] = tc;
-
- t = hash[index_i] + hash[index_j];
- data[ind] = data[ind] ^ hash[t];
- }
-
- hash[256] = index_i;
- hash[257] = index_j;
-}
-
void SamOEMhash( unsigned char *data, unsigned char *key, int val)
{
unsigned char s_box[256];