-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvmpc.h
39 lines (30 loc) · 936 Bytes
/
vmpc.h
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
29
30
31
32
33
34
35
36
37
38
39
#ifndef _STANDARD_VMPC_H_
#define _STANDARD_VMPC_H_
/* Implementation of the VMPC
* Author of the algorithms: Bartosz Zoltak (www.vmpcfunction.com)
*
* Implementation by Ilja Kartaschoff <ik@lowenware.com>
* */
/* VMPC Context ------------------------------------------------------------- */
struct vmpc_context
{
unsigned char P[256];
unsigned char S[256];
unsigned char A;
unsigned char B;
unsigned char C;
unsigned char D;
unsigned char E;
unsigned char F;
unsigned char G;
};
typedef struct vmpc_context _vmpc_context_t;
typedef struct vmpc_context * vmpc_context_t;
void
vmpc_init_context( vmpc_context_t ctx, unsigned char *key,
unsigned char *vec,
int k_len,
int v_len );
void
vmpc_xcrypt(vmpc_context_t ctx, unsigned char *data, unsigned int d_len);
#endif