VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Cast.h
blob: 5c744494d79d8583b94409885cbfea8c4439d5a9 (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
/* Deprecated/legacy */


#ifndef HEADER_CAST_H
#define HEADER_CAST_H

#ifdef  __cplusplus
extern "C" {
#endif

typedef struct CAST_KEY_STRUCT
{
	unsigned __int32 K[32];
} CAST_KEY;

void Cast5Decrypt (const byte *inBlock, byte *outBlock, CAST_KEY *key);
void Cast5Encrypt (const byte *inBlock, byte *outBlock, CAST_KEY *key);
void Cast5SetKey (CAST_KEY *key, unsigned int keylength, const byte *userKey);

#ifdef  __cplusplus
}
#endif

#endif