I have some questions.
I'm using the Android Keystore to store an asymetricasymmetric cryptographic (to decrypt a file containing an asymetricasymmetric key). I did that because I want to encrypt a large set of data and an asymetricasymmetric isn't enough ans they keystore has symetricsymmetric keys since SDK 23.
So my questions are :
- In classic HSM you can't access to the cryptographic keys, you only send your data and the HSM does the cryptographic operations. But in Android you retrieve from the Keystore the key to do manually the operations (With Cipher etc..). Is it safe?
- If it's not safe, is it possible to wipe the keys from the memory after using them? (At the end of my functions for example)
- If it's safe, what are the risks? Having the RAM corrupted by a virus?
Thank you for your answers.