diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-05-21 14:35:52 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-05-22 05:59:13 +0000 |
commit | abe7b673941d932d65839fb616f95a717c57d445 (patch) | |
tree | bc61e625e7171ac5eb80598ce85f4019111181d8 /libcli | |
parent | e421c13bbc73e654c4683339f1a14c262e43f7eb (diff) | |
download | samba-abe7b673941d932d65839fb616f95a717c57d445.tar.gz |
libcli/auth: Remove des_crypt64() from smbdes
This has been unused since it was introduced by
ad8b47a2ba4e81420bc2272e8438a727cc2223ee in 2006
Found by callcatcher
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/proto.h | 1 | ||||
-rw-r--r-- | libcli/auth/smbdes.c | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index 82febe74440..47e8b96fb21 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -214,7 +214,6 @@ void E_P24(const uint8_t *p21, const uint8_t *c8, uint8_t *p24); void D_P16(const uint8_t *p14, const uint8_t *in, uint8_t *out); void E_old_pw_hash( uint8_t *p14, const uint8_t *in, uint8_t *out); void des_crypt128(uint8_t out[8], const uint8_t in[8], const uint8_t key[16]); -void des_crypt64(uint8_t out[8], const uint8_t in[8], const uint8_t key[8], int forw); void des_crypt112(uint8_t out[8], const uint8_t in[8], const uint8_t key[14], int forw); void des_crypt112_16(uint8_t out[16], const uint8_t in[16], const uint8_t key[14], int forw); void sam_rid_crypt(unsigned int rid, const uint8_t *in, uint8_t *out, int forw); diff --git a/libcli/auth/smbdes.c b/libcli/auth/smbdes.c index 7ee51ce722e..6d9a6dc2ce8 100644 --- a/libcli/auth/smbdes.c +++ b/libcli/auth/smbdes.c @@ -338,17 +338,6 @@ void des_crypt128(uint8_t out[8], const uint8_t in[8], const uint8_t key[16]) des_crypt56(out, buf, key+9, 1); } -/* des encryption with a 64 bit key */ -void des_crypt64(uint8_t out[8], const uint8_t in[8], const uint8_t key[8], int forw) -{ - uint8_t buf[8]; - uint8_t key2[8]; - ZERO_STRUCT(key2); - des_crypt56(buf, in, key, forw); - key2[0] = key[7]; - des_crypt56(out, buf, key2, forw); -} - /* des encryption with a 112 bit (14 byte) key */ void des_crypt112(uint8_t out[8], const uint8_t in[8], const uint8_t key[14], int forw) { |