Source code of Windows XP (NT5)
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.

31 lines
852 B

  1. /* des_key.h */
  2. /*********************************/
  3. /* Definitions */
  4. /*********************************/
  5. #define DES_MAGIC 0x44455331
  6. /*********************************/
  7. /* Function Definitions */
  8. /*********************************/
  9. DWORD initKeyDES (Key_t *des);
  10. DWORD getDESParams (Key_t *des, DWORD param, BYTE *data, DWORD *len);
  11. DWORD setDESParams (Key_t *des, DWORD param, CONST BYTE *data);
  12. // Get DES key length
  13. DWORD desGetKeyLength (
  14. IN ALG_ID Algid,
  15. IN DWORD dwFlags,
  16. OUT DWORD *pcbKey,
  17. OUT DWORD *pcbData
  18. );
  19. // Derive a des key
  20. DWORD desDeriveKey (
  21. IN OUT Key_t *pKey,
  22. IN CONST BYTE *pbData,
  23. IN DWORD dwFlags
  24. );