I am exporting a public key from the Android Keystore with:
final byte[] publicKey =((KeyStore.PrivateKeyEntry)entry).getCertificate().getPublicKey().getEncoded();
It works but I cannot figure out what format this exported key is in, Android docs only say that getEncoded()
returns the public key in its encoded format, which does not mean anything to me. How can I check which format this key is encoded in? Is there a standard?