Why is an IllegalBlockSizeException thrown when testing FingerprintManager in a simulator?

275 Views Asked by At

I'm trying to test out the new Fingerprint authentication APIs in Android M, I can register fingerprints with the OS, use the registered fingerprints to receive AuthenticationCallback#onAuthenticationSucceeded(), but trying to validate access to the keystore (mCipher.doFinal(SECRET_MESSAGE.getBytes())) results in an IllegalBlockSizeException rather than the expected result of the encryption succeeding.

This is being tested in the simulator running M pre-release, I don't know of any in-market devices that have support for M with a physical fingerprint reader yet...

I tested using my own code as well as the sample produced by Google.

Any ideas if there's extra steps not listed (or that I skipped)? Is this just not supported in the simulator today or at all due to no TEE?

0

There are 0 best solutions below