diff options
author | Matthew Chapman <matty@samba.org> | 1999-03-19 15:09:25 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-03-19 15:09:25 +0000 |
commit | b5a5236f207867d52acb8573d69c92a7691b2d3f (patch) | |
tree | b13a8b9507e276b9ded132c54665b1ba6309ed3c /source3/libsmb/smbdes.c | |
parent | fda194255c156ce373d5f195e960bf8712fe4d67 (diff) | |
download | samba-b5a5236f207867d52acb8573d69c92a7691b2d3f.tar.gz samba-b5a5236f207867d52acb8573d69c92a7691b2d3f.tar.bz2 samba-b5a5236f207867d52acb8573d69c92a7691b2d3f.zip |
Implemented encryption algorithm used for a number of RPC buffers.
(actually, decryption only currently because I need to get some sleep).
Basically another Microsoft twist on DES; the "master key" is the user's
NT hash MD4'd and subsets of this are chosen as the 56-bit DES keys.
(This used to be commit f09388fa6f41a13ca035b5b2ff40be804608f619)
Diffstat (limited to 'source3/libsmb/smbdes.c')
-rw-r--r-- | source3/libsmb/smbdes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbdes.c b/source3/libsmb/smbdes.c index d0e1c6e85f..08bc929f01 100644 --- a/source3/libsmb/smbdes.c +++ b/source3/libsmb/smbdes.c @@ -277,7 +277,7 @@ static void str_to_key(unsigned char *str,unsigned char *key) } -static void smbhash(unsigned char *out, unsigned char *in, unsigned char *key, int forw) +void smbhash(unsigned char *out, unsigned char *in, unsigned char *key, int forw) { int i; char outb[64]; |