signRsa

suspend fun signRsa(message: ByteArray): RsaSignature

Convenience method to sign message when this is an RSA key.

Return

the signature.

Parameters

message

the data to sign.

Throws

if the key is not an RSA key.

if the signature algorithm isn't compatible with the key.

if the key needs unlocking.

if the key is no longer usable.