mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 20:25:54 +01:00
24cb244d43
This was a _ton_ of changes, made 15 years ago, so there are probably some problems to work out still. Among others: Engine/Base/Stream.* was mostly abandoned and will need to be re-ported. Still, this is a pretty good start, and probably holds a world record for lines of changes or something. :)
21 lines
481 B
C
21 lines
481 B
C
/* 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
|
|
#define COPY_PROTECTION 1
|
|
|
|
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. */
|
|
|