Commit 5c8978c5 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

advapi32: Remove unused function.

parent 3b64f895
...@@ -82,7 +82,6 @@ typedef struct tagCRYPTHASH ...@@ -82,7 +82,6 @@ typedef struct tagCRYPTHASH
#define MAXPROVTYPES 999 #define MAXPROVTYPES 999
extern unsigned char *CRYPT_DESkey8to7( unsigned char *dst, const unsigned char *key );
extern unsigned char *CRYPT_DEShash( unsigned char *dst, const unsigned char *key, extern unsigned char *CRYPT_DEShash( unsigned char *dst, const unsigned char *key,
const unsigned char *src ); const unsigned char *src );
extern unsigned char *CRYPT_DESunhash( unsigned char *dst, const unsigned char *key, extern unsigned char *CRYPT_DESunhash( unsigned char *dst, const unsigned char *key,
......
...@@ -252,33 +252,6 @@ static void xor( unsigned char *dst, const unsigned char *a, const unsigned char ...@@ -252,33 +252,6 @@ static void xor( unsigned char *dst, const unsigned char *a, const unsigned char
dst[i] = a[i] ^ b[i]; dst[i] = a[i] ^ b[i];
} }
unsigned char *CRYPT_DESkey8to7( unsigned char *dst, const unsigned char *key )
{
int i;
unsigned char tmp[7];
static const unsigned char map8to7[56] =
{
0, 1, 2, 3, 4, 5, 6,
8, 9, 10, 11, 12, 13, 14,
16, 17, 18, 19, 20, 21, 22,
24, 25, 26, 27, 28, 29, 30,
32, 33, 34, 35, 36, 37, 38,
40, 41, 42, 43, 44, 45, 46,
48, 49, 50, 51, 52, 53, 54,
56, 57, 58, 59, 60, 61, 62
};
if ((dst == NULL) || (key == NULL))
return NULL;
Permute( tmp, key, map8to7, 7 );
for (i = 0; i < 7; i++)
dst[i] = tmp[i];
return dst;
}
unsigned char *CRYPT_DEShash( unsigned char *dst, const unsigned char *key, const unsigned char *src ) unsigned char *CRYPT_DEShash( unsigned char *dst, const unsigned char *key, const unsigned char *src )
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment