I have a function in C as:
mySource.c:
int trapdoor(unsigned char keywords[][MAX_SIZE], unsigned int *s, int slen, unsigned char *out, int outlen);
and where keywords is a array of char arrays (with keywords of different sizes), s is an unsigned int of length slen(EDIT: actually 128-bit=>so value of slen would be 4) and out is the destination pointer where the result of the function is stored and of length outlen(EDIT: 256-bit=>so value of outlen is 32).
Note: Since this is a cryptographic function, I needed the datatypes to be of exact sizes that I mentioned.
And I have to call this function from java using JNI interface. Now what are the equivalent datatypes in java & JNI that I have to pass as parameters to call the trapdoor function in C?
mySource_jni.c:
JNIEXPORT ?? JNICALL Java_proj_trapdoor(JNIEnv *env, jobject obj, ??, ??, ??, ??, ??, ??);
myJavaSource.java:
private native ?? trapdoor_extraction(??, ??, ??, ??, ??);
I found it from other posts that there is no equivalent to unsigned datatypes in java (correct me if I am wrong).