VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Des.h
blob: 5fc2633a73768cee1328ea2b2e4206a082e6038f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Deprecated/legacy */


#ifndef HEADER_Crypto_DES
#define HEADER_Crypto_DES

#ifdef  __cplusplus
extern "C" {
#endif

typedef struct TRIPLE_DES_KEY_STRUCT
{
	unsigned __int32 k1[32];
	unsigned __int32 k2[32];
	unsigned __int32 k3[32];
	unsigned __int32 k1d[32];
	unsigned __int32 k2d[32];
	unsigned __int32 k3d[32];
} TDES_KEY;

void TripleDesEncrypt (byte *inBlock, byte *outBlock, TDES_KEY *key, int encrypt);
void TripleDesSetKey (const byte *userKey, unsigned int length, TDES_KEY *ks);

#ifdef  __cplusplus
}
#endif

#endif // HEADER_Crypto_DES