Typically the flow is: attempt to open the database, if it fails, attempt to migrate, if that fails then the key material is incorrect.
My colleague @sjlombardo gave further details in his response here: Upgrading to SQLCipher 4
Typically the flow is: attempt to open the database, if it fails, attempt to migrate, if that fails then the key material is incorrect.
My colleague @sjlombardo gave further details in his response here: Upgrading to SQLCipher 4