summaryrefslogtreecommitdiff
path: root/beecrypt/javaglue.h
blob: b7c43d328b8c2b76c7381785ffd6e0a780571504 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
/** \ingroup JAVA_m
 * \file javaglue.h
 */

/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class javax_crypto_Cipher */

#ifndef _Included_javax_crypto_Cipher
#define _Included_javax_crypto_Cipher
#ifdef __cplusplus
extern "C" {
#endif
#undef javax_crypto_Cipher_UNINITIALIZED
#define javax_crypto_Cipher_UNINITIALIZED 0L
#undef javax_crypto_Cipher_ENCRYPT_MODE
#define javax_crypto_Cipher_ENCRYPT_MODE 1L
#undef javax_crypto_Cipher_DECRYPT_MODE
#define javax_crypto_Cipher_DECRYPT_MODE 2L
#undef javax_crypto_Cipher_WRAP_MODE
#define javax_crypto_Cipher_WRAP_MODE 3L
#undef javax_crypto_Cipher_UNWRAP_MODE
#define javax_crypto_Cipher_UNWRAP_MODE 4L
#undef javax_crypto_Cipher_PUBLIC_KEY
#define javax_crypto_Cipher_PUBLIC_KEY 1L
#undef javax_crypto_Cipher_PRIVATE_KEY
#define javax_crypto_Cipher_PRIVATE_KEY 2L
#undef javax_crypto_Cipher_SECRET_KEY
#define javax_crypto_Cipher_SECRET_KEY 3L
#ifdef __cplusplus
}
#endif
#endif
/* Header for class beecrypt_security_NativeMessageDigest */

#ifndef _Included_beecrypt_security_NativeMessageDigest
#define _Included_beecrypt_security_NativeMessageDigest
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    find
 * Signature: (Ljava/lang/String;)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_find
  (JNIEnv *, jclass, jstring);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    allocParam
 * Signature: (J)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_allocParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    cloneParam
 * Signature: (JJ)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_cloneParam
  (JNIEnv *, jclass, jlong, jlong);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    freeParam
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_freeParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    reset
 * Signature: (JJ)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_reset
  (JNIEnv *, jclass, jlong, jlong);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    update
 * Signature: (JJB)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_update
  (JNIEnv *, jclass, jlong, jlong, jbyte);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    updateBlock
 * Signature: (JJ[BII)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_updateBlock
  (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jint);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    digest
 * Signature: (JJ)[B
 */
JNIEXPORT jbyteArray JNICALL Java_beecrypt_security_NativeMessageDigest_digest
  (JNIEnv *, jclass, jlong, jlong);

/*
 * Class:     beecrypt_security_NativeMessageDigest
 * Method:    digestLength
 * Signature: (J)I
 */
JNIEXPORT jint JNICALL Java_beecrypt_security_NativeMessageDigest_digestLength
  (JNIEnv *, jclass, jlong);

#ifdef __cplusplus
}
#endif
#endif
/* Header for class beecrypt_security_NativeSecureRandom */

#ifndef _Included_beecrypt_security_NativeSecureRandom
#define _Included_beecrypt_security_NativeSecureRandom
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    find
 * Signature: (Ljava/lang/String;)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_find
  (JNIEnv *, jclass, jstring);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    allocParam
 * Signature: (J)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_allocParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    cloneParam
 * Signature: (JJ)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_cloneParam
  (JNIEnv *, jclass, jlong, jlong);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    freeParam
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_freeParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    setup
 * Signature: (JJ)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_setup
  (JNIEnv *, jclass, jlong, jlong);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    setSeed
 * Signature: (JJ[B)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_setSeed
  (JNIEnv *, jclass, jlong, jlong, jbyteArray);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    nextBytes
 * Signature: (JJ[B)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_nextBytes
  (JNIEnv *, jclass, jlong, jlong, jbyteArray);

/*
 * Class:     beecrypt_security_NativeSecureRandom
 * Method:    generateSeed
 * Signature: ([B)V
 */
JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_generateSeed
  (JNIEnv *, jclass, jbyteArray);

#ifdef __cplusplus
}
#endif
#endif
/* Header for class beecrypt_crypto_NativeBlockCipher */

#ifndef _Included_beecrypt_crypto_NativeBlockCipher
#define _Included_beecrypt_crypto_NativeBlockCipher
#ifdef __cplusplus
extern "C" {
#endif
#undef beecrypt_crypto_NativeBlockCipher_MODE_ECB
#define beecrypt_crypto_NativeBlockCipher_MODE_ECB 0L
#undef beecrypt_crypto_NativeBlockCipher_MODE_CBC
#define beecrypt_crypto_NativeBlockCipher_MODE_CBC 1L
/* Inaccessible static: MODES */
#undef beecrypt_crypto_NativeBlockCipher_PADDING_NOPADDING
#define beecrypt_crypto_NativeBlockCipher_PADDING_NOPADDING 0L
#undef beecrypt_crypto_NativeBlockCipher_PADDING_PKCS5
#define beecrypt_crypto_NativeBlockCipher_PADDING_PKCS5 1L
/* Inaccessible static: PADDINGS */
/* Inaccessible static: class_00024javax_00024crypto_00024spec_00024PBEParameterSpec */
/* Inaccessible static: class_00024javax_00024crypto_00024spec_00024IvParameterSpec */
/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    find
 * Signature: (Ljava/lang/String;)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_crypto_NativeBlockCipher_find
  (JNIEnv *, jclass, jstring);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    allocParam
 * Signature: (J)J
 */
JNIEXPORT jlong JNICALL Java_beecrypt_crypto_NativeBlockCipher_allocParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    freeParam
 * Signature: (J)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_freeParam
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    getBlockSize
 * Signature: (J)I
 */
JNIEXPORT jint JNICALL Java_beecrypt_crypto_NativeBlockCipher_getBlockSize
  (JNIEnv *, jclass, jlong);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    setup
 * Signature: (JJI[B)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_setup
  (JNIEnv *, jclass, jlong, jlong, jint, jbyteArray);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    setIV
 * Signature: (JJ[B)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_setIV
  (JNIEnv *, jclass, jlong, jlong, jbyteArray);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    encryptECB
 * Signature: (JJ[BI[BII)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_encryptECB
  (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    decryptECB
 * Signature: (JJ[BI[BII)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_decryptECB
  (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    encryptCBC
 * Signature: (JJ[BI[BII)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_encryptCBC
  (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);

/*
 * Class:     beecrypt_crypto_NativeBlockCipher
 * Method:    decryptCBC
 * Signature: (JJ[BI[BII)V
 */
JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_decryptCBC
  (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);

#ifdef __cplusplus
}
#endif
#endif