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

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