Then, you need to look at that class. Can it really handle encrypting a 96 character string? Are the arrays you pass to it really the proper size?
It seems bizarre that the encrypt() function expects two copies of the string to encrypt. I suspect that it really wants one copy of the string to encrypt and an array to put the encrypted string into, and that use one array for both purposes IS the cause of your problem.
PaulS:
Then, you need to look at that class. Can it really handle encrypting a 96 character string? Are the arrays you pass to it really the proper size?
It seems bizarre that the encrypt() function expects two copies of the string to encrypt. I suspect that it really wants one copy of the string to encrypt and an array to put the encrypted string into, and that use one array for both purposes IS the cause of your problem.
I can use same array as input and output because it was mentioned in the library website. I tried with using different library also but same problem exists so i used one array to save global memory.