windows-nt/Source/XPSP1/NT/ds/win32/ntcrypto/dssinc/des_key.h

32 lines
852 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/* 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
);