ephemeral
suspend fun ephemeral(algorithm: Algorithm = Algorithm.ESP256, keySizeBits: Int = 2048): AsymmetricKey
Generates an ephemeral software-based AsymmetricKey.
Return
an ephemeral anonymous AsymmetricKey.
Parameters
algorithm
the signing algorithm to use.
keySizeBits
the RSA key size in bits (only used if algorithm is an RSA algorithm).
Throws
if the algorithm is not supported.