up with a different answer to the one above)
*/
#include <linux/slab.h>
+#include "cifsencrypt.h"
#define uchar unsigned char
static uchar perm1[56] = { 57, 49, 41, 33, 25, 17, 9,
smbhash(p24 + 16, c8, p21 + 14, 1);
}
-void
+#if 0 /* currently unsued */
+static void
D_P16(unsigned char *p14, unsigned char *in, unsigned char *out)
{
smbhash(out, in, p14, 0);
smbhash(out + 8, in + 8, p14 + 7, 0);
}
-void
+static void
E_old_pw_hash(unsigned char *p14, unsigned char *in, unsigned char *out)
{
smbhash(out, in, p14, 1);
smbhash(out + 8, in + 8, p14 + 7, 1);
}
-
+/* these routines are currently unneeded, but may be
+ needed later */
void
cred_hash1(unsigned char *out, unsigned char *in, unsigned char *key)
{
key2[0] = key[7];
smbhash(out + 8, in + 8, key2, forw);
}
+#endif /* unneeded routines */