00001
00005
00006 #include <jni.h>
00007
00008
00009 #ifndef _Included_javax_crypto_Cipher
00010 #define _Included_javax_crypto_Cipher
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014 #undef javax_crypto_Cipher_UNINITIALIZED
00015 #define javax_crypto_Cipher_UNINITIALIZED 0L
00016 #undef javax_crypto_Cipher_ENCRYPT_MODE
00017 #define javax_crypto_Cipher_ENCRYPT_MODE 1L
00018 #undef javax_crypto_Cipher_DECRYPT_MODE
00019 #define javax_crypto_Cipher_DECRYPT_MODE 2L
00020 #undef javax_crypto_Cipher_WRAP_MODE
00021 #define javax_crypto_Cipher_WRAP_MODE 3L
00022 #undef javax_crypto_Cipher_UNWRAP_MODE
00023 #define javax_crypto_Cipher_UNWRAP_MODE 4L
00024 #undef javax_crypto_Cipher_PUBLIC_KEY
00025 #define javax_crypto_Cipher_PUBLIC_KEY 1L
00026 #undef javax_crypto_Cipher_PRIVATE_KEY
00027 #define javax_crypto_Cipher_PRIVATE_KEY 2L
00028 #undef javax_crypto_Cipher_SECRET_KEY
00029 #define javax_crypto_Cipher_SECRET_KEY 3L
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033 #endif
00034
00035
00036 #ifndef _Included_beecrypt_security_NativeMessageDigest
00037 #define _Included_beecrypt_security_NativeMessageDigest
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041
00042
00043
00044
00045
00046 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_find
00047 (JNIEnv *, jclass, jstring);
00048
00049
00050
00051
00052
00053
00054 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_allocParam
00055 (JNIEnv *, jclass, jlong);
00056
00057
00058
00059
00060
00061
00062 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeMessageDigest_cloneParam
00063 (JNIEnv *, jclass, jlong, jlong);
00064
00065
00066
00067
00068
00069
00070 JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_freeParam
00071 (JNIEnv *, jclass, jlong);
00072
00073
00074
00075
00076
00077
00078 JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_reset
00079 (JNIEnv *, jclass, jlong, jlong);
00080
00081
00082
00083
00084
00085
00086 JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_update
00087 (JNIEnv *, jclass, jlong, jlong, jbyte);
00088
00089
00090
00091
00092
00093
00094 JNIEXPORT void JNICALL Java_beecrypt_security_NativeMessageDigest_updateBlock
00095 (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jint);
00096
00097
00098
00099
00100
00101
00102 JNIEXPORT jbyteArray JNICALL Java_beecrypt_security_NativeMessageDigest_digest
00103 (JNIEnv *, jclass, jlong, jlong);
00104
00105
00106
00107
00108
00109
00110 JNIEXPORT jint JNICALL Java_beecrypt_security_NativeMessageDigest_digestLength
00111 (JNIEnv *, jclass, jlong);
00112
00113 #ifdef __cplusplus
00114 }
00115 #endif
00116 #endif
00117
00118
00119 #ifndef _Included_beecrypt_security_NativeSecureRandom
00120 #define _Included_beecrypt_security_NativeSecureRandom
00121 #ifdef __cplusplus
00122 extern "C" {
00123 #endif
00124
00125
00126
00127
00128
00129 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_find
00130 (JNIEnv *, jclass, jstring);
00131
00132
00133
00134
00135
00136
00137 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_allocParam
00138 (JNIEnv *, jclass, jlong);
00139
00140
00141
00142
00143
00144
00145 JNIEXPORT jlong JNICALL Java_beecrypt_security_NativeSecureRandom_cloneParam
00146 (JNIEnv *, jclass, jlong, jlong);
00147
00148
00149
00150
00151
00152
00153 JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_freeParam
00154 (JNIEnv *, jclass, jlong);
00155
00156
00157
00158
00159
00160
00161 JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_setup
00162 (JNIEnv *, jclass, jlong, jlong);
00163
00164
00165
00166
00167
00168
00169 JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_setSeed
00170 (JNIEnv *, jclass, jlong, jlong, jbyteArray);
00171
00172
00173
00174
00175
00176
00177 JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_nextBytes
00178 (JNIEnv *, jclass, jlong, jlong, jbyteArray);
00179
00180
00181
00182
00183
00184
00185 JNIEXPORT void JNICALL Java_beecrypt_security_NativeSecureRandom_generateSeed
00186 (JNIEnv *, jclass, jbyteArray);
00187
00188 #ifdef __cplusplus
00189 }
00190 #endif
00191 #endif
00192
00193
00194 #ifndef _Included_beecrypt_crypto_NativeBlockCipher
00195 #define _Included_beecrypt_crypto_NativeBlockCipher
00196 #ifdef __cplusplus
00197 extern "C" {
00198 #endif
00199 #undef beecrypt_crypto_NativeBlockCipher_MODE_ECB
00200 #define beecrypt_crypto_NativeBlockCipher_MODE_ECB 0L
00201 #undef beecrypt_crypto_NativeBlockCipher_MODE_CBC
00202 #define beecrypt_crypto_NativeBlockCipher_MODE_CBC 1L
00203
00204 #undef beecrypt_crypto_NativeBlockCipher_PADDING_NOPADDING
00205 #define beecrypt_crypto_NativeBlockCipher_PADDING_NOPADDING 0L
00206 #undef beecrypt_crypto_NativeBlockCipher_PADDING_PKCS5
00207 #define beecrypt_crypto_NativeBlockCipher_PADDING_PKCS5 1L
00208
00209
00210
00211
00212
00213
00214
00215
00216 JNIEXPORT jlong JNICALL Java_beecrypt_crypto_NativeBlockCipher_find
00217 (JNIEnv *, jclass, jstring);
00218
00219
00220
00221
00222
00223
00224 JNIEXPORT jlong JNICALL Java_beecrypt_crypto_NativeBlockCipher_allocParam
00225 (JNIEnv *, jclass, jlong);
00226
00227
00228
00229
00230
00231
00232 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_freeParam
00233 (JNIEnv *, jclass, jlong);
00234
00235
00236
00237
00238
00239
00240 JNIEXPORT jint JNICALL Java_beecrypt_crypto_NativeBlockCipher_getBlockSize
00241 (JNIEnv *, jclass, jlong);
00242
00243
00244
00245
00246
00247
00248 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_setup
00249 (JNIEnv *, jclass, jlong, jlong, jint, jbyteArray);
00250
00251
00252
00253
00254
00255
00256 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_setIV
00257 (JNIEnv *, jclass, jlong, jlong, jbyteArray);
00258
00259
00260
00261
00262
00263
00264 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_encryptECB
00265 (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);
00266
00267
00268
00269
00270
00271
00272 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_decryptECB
00273 (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);
00274
00275
00276
00277
00278
00279
00280 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_encryptCBC
00281 (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);
00282
00283
00284
00285
00286
00287
00288 JNIEXPORT void JNICALL Java_beecrypt_crypto_NativeBlockCipher_decryptCBC
00289 (JNIEnv *, jclass, jlong, jlong, jbyteArray, jint, jbyteArray, jint, jint);
00290
00291 #ifdef __cplusplus
00292 }
00293 #endif
00294 #endif