I'm researching on using Argon2 on a JavaEE server-side application.
I'm a bit reluctant to set the parallelism parameter larger than 1 on a JavaEE environment where threads are supposed to be managed by the application server etc, etc.
One idea is to use the low-level API and set lanes to -lets say- 4 and threads to 1.
In the future, I could set threads to 4 to speed things up or revert back to 1 thread if things don't work out well.
I've done some basic examples with the reference implementation and I've seen setting lanes/threads independently to be working as expected.
Is there any scenario where this would produce incorrect results?
Is there something conceptually "wrong" or "insecure" on setting a high value on lanes but not utilising it with multiple threads? Like giving some advantage to an attacker?
Thanks in advance.