2

I am trying to encrypt something with a key generated in the TEE environment.

The key has the following properties:

enter image description here

I set the mUserAuthenticationRequired to true.

However, when I do:

        cipher.init(Cipher.ENCRYPT_MODE, secretKey)
        return cipher.doFinal(secretToBeEncrypted)

It works just fine and does not throw any exceptions for not displaying the authentication dialog. Why is that ?

Community
  • 1
  • 1
Lena Bru
  • 13,521
  • 11
  • 61
  • 126

0 Answers0