-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaokex.h
29 lines (22 loc) · 789 Bytes
/
aokex.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
/*
* AOChat -- library for talking with the Anarchy Online chat servers
*
* Copyright (c) 2002-2005, Oskari Saarenmaa <[email protected]>
*
* This file is under the 2-clause BSD license.
* See the file `LICENSE` for details.
*
*/
#ifndef _AOKEX_H
#define _AOKEX_H
#include "php_aokex.h"
typedef unsigned int AoUInt32;
typedef struct aokex_math_s aokex_math_t;
char *aokex_login_key(char *serverseed, char *username, char *password);
aokex_math_t *aokex_math_init();
void aokex_math_uninit(aokex_math_t *ctx);
AoUInt32 aokex_math_random32(aokex_math_t *ctx);
void aokex_math_dh_init(aokex_math_t *ctx, const char *g, const char *p);
char *aokex_math_dh_x(aokex_math_t *ctx, AoUInt32 exponent);
char *aokex_math_dh_k(aokex_math_t *ctx, const char *y);
#endif /* _AOKEX_H */