libcli/auth: Remove des_crypt64() from smbdes
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 May 2019 02:35:52 +0000 (14:35 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 22 May 2019 05:59:13 +0000 (05:59 +0000)
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>
libcli/auth/proto.h
libcli/auth/smbdes.c

index 82febe74440add3600e4797d8a7504b863136b74..47e8b96fb21372db9316c12b05f69faf14093fc8 100644 (file)
@@ -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);
index 7ee51ce722e8002330df7602ef2cec9b96558047..6d9a6dc2ce8a82176e1470db8c5708acddc4968f 100644 (file)
@@ -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)
 {