createKeyForExistingAlias

suspend fun createKeyForExistingAlias(existingAlias: String)

Creates a key for an existing Android KeyStore key.

This doesn't actually create a key but creates the out-of-band data structures so an existing Android KeyStore key can be used with e.g. .getKeyInfo, .sign, .keyAgreement and other methods.

Parameters

existingAlias

the alias of the existing key.