WithSecureLabs / android-keystore-audit

Other
385 stars 103 forks source link

Problems with Android 13 (API 33) #16

Open leandrocharlier opened 2 years ago

leandrocharlier commented 2 years ago

I was doing tests on android 13 (API 33) and it always fails with the following message:

`javax.crypto.IllegalBlockSizeException at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:613) at javax.crypto.Cipher.doFinal(Cipher.java:2056)

Caused by: android.security.KeyStoreException: Key user not authenticated (internal Keystore code: -26 message: In KeystoreOperation::update Caused by: 0: In update: KeyMint::update failed. 1: Error::Km(ErrorCode(-26))) (public error code: 2 internal Keystore code: -26) at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:369) at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78) at android.security.KeyStoreOperation.update(KeyStoreOperation.java:115) at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.update(KeyStoreCryptoOperationChunkedStreamer.java:222) at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.update(KeyStoreCryptoOperationChunkedStreamer.java:156) at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:179) at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:603)`

asclepix commented 8 months ago

Same here.