VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/chacha_u1.h
AgeCommit message (Expand)AuthorFilesLines
2019-02-08Windows: Add implementation of ChaCha20 based random generator. Use it for dr...Mounir IDRASSI1-0/+102
ef='#n20'>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