advapi32: Remove unused function.

This commit is contained in:
Andrew Talbot 2008-12-31 12:17:01 +00:00 committed by Alexandre Julliard
parent 3b64f895b1
commit 5c8978c58b
2 changed files with 0 additions and 28 deletions

View File

@ -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,

View File

@ -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;