VeraCrypt PIM sets iterations permanently
The iterations of the key derivation functions are set permanently in TCRYPT_init_hdr when a VeraCrypt PIM is used. When trying to unlock another TCRYPT volume afterwards (with a new context initialized via
crypt_init), but without using a PIM, the iterations are not reset to the default values and the unlocking fails.
This issue affects the support for VeraCrypt/TrueCrypt I implemented for udisks (see https://github.com/storaged-project/udisks/pull/495).