Companion
object Companion
Functions
Link copied to clipboard
fun anonymous(privateKey: PrivateKey, algorithm: Algorithm = when (privateKey) {
is EcPrivateKey -> privateKey.curve.defaultSigningAlgorithmFullySpecified
is RsaPrivateKey -> Algorithm.RS256
is MlDsaPrivateKey -> privateKey.algorithm
is MlKemPrivateKey -> privateKey.algorithm
}): AsymmetricKey
Creates an anonymous AsymmetricKey wrapping a software PrivateKey.
suspend fun anonymous(secureArea: SecureArea, alias: String, unlockReason: Reason = Reason.Unspecified, algorithm: Algorithm? = null): AsymmetricKey
Creates an anonymous AsymmetricKey referencing a key residing in a SecureArea.
Link copied to clipboard
suspend fun ephemeral(algorithm: Algorithm = Algorithm.ESP256, keySizeBits: Int = 2048): AsymmetricKey
Generates an ephemeral software-based AsymmetricKey.
Link copied to clipboard
suspend fun parse(json: String, secureAreaRepository: SecureAreaRepository?, unlockReason: Reason = Reason.Unspecified): AsymmetricKey
Parses json string that describes the private key.
suspend fun parse(json: JsonElement, secureAreaRepository: SecureAreaRepository?, unlockReason: Reason = Reason.Unspecified): AsymmetricKey
Parses json object that describes the private key.
Link copied to clipboard
Parses json string that describes the private key for software-based private key.
Parses json object that describes the private key for software-based private key.