Closed fcduarte closed 2 years ago
For KeyStoreKeyGenerator, maybe we can do something like this below :
boolean isHardwareSecured;
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
isHardwareSecured = KeyChain.isBoundKeyAlgorithm(algorithm);
} else {
isHardwareSecured = keyInfo.isInsideSecureHardware();
}
More info
and something similar with KeyGenParameterSpec
cc @vashisthg @fcduarte
@vashisthg https://developer.android.com/reference/android/security/keystore/KeyGenParameterSpec.html
This might help us.
Hi guys,
any plans to fix those deprecated methods?
KeyStoreKeyGenerator
SecretKeyWrapper
I'm just wondering what would be the best way to fix it.
Best,