BadPaddingException when trying to decrypt Fingerprint API cypher
Never mind, apparently I overlooked the fact that the SecretKey
should only be generated in the enrollment stage. Because createKey
was called when trying to decrypt the data, it was overwritten with a newly generated key before doFinal
was called. The code works perfectly now.