diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-07-07 07:00:15 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-07-07 07:00:15 +0000 |
commit | 7be19ad10fc30fab199653facd11496170219e1b (patch) | |
tree | 2d4e14c153cc19e5bf893b47f28a4e8c4799277c /source3/lib/md4.c | |
parent | 1c3c9952210346aff1138a4417ff3ceff3ecd9c3 (diff) | |
download | samba-7be19ad10fc30fab199653facd11496170219e1b.tar.gz samba-7be19ad10fc30fab199653facd11496170219e1b.tar.xz samba-7be19ad10fc30fab199653facd11496170219e1b.zip |
Add backend encryption support for NTLMv2.
The leg-work for this was done by the folks at samba-tng.org, I'm just bringing
it accross to HEAD.
The MD5 implementation is seperatly derived, and does not have the copyright
problems that the one in TNG has.
Also add const to a few places where it makes sence.
Andrew Bartlett
(This used to be commit 8df8e841445dfe09fc7a06bb55d12adc3fecb345)
Diffstat (limited to 'source3/lib/md4.c')
-rw-r--r-- | source3/lib/md4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/md4.c b/source3/lib/md4.c index 30f2b6b8c6b..95fd90512cc 100644 --- a/source3/lib/md4.c +++ b/source3/lib/md4.c @@ -101,7 +101,7 @@ static void mdfour64(uint32 *M) X[j] = 0; } -static void copy64(uint32 *M, unsigned char *in) +static void copy64(uint32 *M, const unsigned char *in) { int i; @@ -110,7 +110,7 @@ static void copy64(uint32 *M, unsigned char *in) (in[i*4+1]<<8) | (in[i*4+0]<<0); } -static void copy4(unsigned char *out,uint32 x) +static void copy4(unsigned char *out, uint32 x) { out[0] = x&0xFF; out[1] = (x>>8)&0xFF; @@ -119,7 +119,7 @@ static void copy4(unsigned char *out,uint32 x) } /* produce a md4 message digest from data of length n bytes */ -void mdfour(unsigned char *out, unsigned char *in, int n) +void mdfour(unsigned char *out, const unsigned char *in, int n) { unsigned char buf[128]; uint32 M[16]; |