Caused by: java.lang.ClassCastException: android.security.keystore.AndroidKeyStoreRSAPrivateKey cannot be cast to javax.crypto.SecretKey
at com.mtramin.rxfingerprint.AesCipherProvider.getKey(AesCipherProvider.java:60)
at com.mtramin.rxfingerprint.AesCipherProvider.findOrCreateKey(AesCipherProvider.java:54)
at com.mtramin.rxfingerprint.AesCipherProvider.cipherForEncryption(AesCipherProvider.java:75)
at com.mtramin.rxfingerprint.CipherProvider.getCipherForEncryption(CipherProvider.java:84)
at com.mtramin.rxfingerprint.AesEncryptionObservable.initCryptoObject(AesEncryptionObservable.java:83)
I am not able to use AES encryption. (Device: Samsung S8, OS version: 8.0, library version: 2.2.1)
Usage:
Crash:
Am I missing something or it's really issue?