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

/* des_key.h */
/*********************************/
/* Definitions */
/*********************************/
#define DES_MAGIC 0x44455331
/*********************************/
/* Function Definitions */
/*********************************/
DWORD initKeyDES (Key_t *des);
DWORD getDESParams (Key_t *des, DWORD param, BYTE *data, DWORD *len);
DWORD setDESParams (Key_t *des, DWORD param, CONST BYTE *data);
// Get DES key length
DWORD desGetKeyLength (
IN ALG_ID Algid,
IN DWORD dwFlags,
OUT DWORD *pcbKey,
OUT DWORD *pcbData
);
// Derive a des key
DWORD desDeriveKey (
IN OUT Key_t *pKey,
IN CONST BYTE *pbData,
IN DWORD dwFlags
);