Serious-Engine/Sources/Engine/Base/Protection.h

20 lines
455 B
C
Raw Normal View History

2016-03-11 14:57:17 +01:00
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
#ifndef SE_INCL_PROTECTION_H
#define SE_INCL_PROTECTION_H
#ifdef PRAGMA_ONCE
#pragma once
#endif
typedef struct {
unsigned long P[16 + 2];
unsigned long S[4][256];
} BLOWFISH_CTX;
extern void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen);
extern void Blowfish_Decrypt(BLOWFISH_CTX *ctx, unsigned long *xl, unsigned long *xr);
#endif /* include-once check. */