Page 1 of 1

Multithreading encrypt file - windows

Posted: Fri Oct 30, 2015 3:50 am
by rla
Hi,

I build a java multithreading program using JNI to load our native library built in C. In native library, the process encrypt file using AES v 3.09. After several thread execution, the program hang up during CryptAcquireContext, no return error, just stuck.
Is there any constraint/limitation for the usage of CryptAcquireContext, as our program revoke CryptAcquireContext on each thread execution?

Info :
OS : Windows 7 Professional 64 bit
Native library compiler : mingw
Java : JDK 7

Thanks