Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
613 B

//Prototype of crypto functions
//The limitation of these crypto functions is 128 characters, not include
//NULL terminator.
//You msut use the same keys to Encrypt and Decrypt.
//sizeof(lpszOutput) must be more than double of sizeof(lpszInput)
//Just alloc 256 bytes for it will be safe
//aKey must contain one key string more than 8 characters
int WINAPI EncryptString(LPSTR lpszInput, LPSTR lpszOutput,
unsigned char far *aKey, LPCSTR lpszKey2);
int WINAPI DecryptString(LPSTR lpszInput, LPSTR lpszOutput,
unsigned char far *aKey, LPCSTR lpszKey2);