sign With Key Pair
fun signWithKeyPair(algorithmName: String, keyPair: KeyPair, dataToSign: ByteArray): ByteArray(source)
Sign authentication data using a JCA KeyPair.
Return
SSH-encoded signature blob
Parameters
algorithm Name
SSH signature algorithm (e.g., "ssh-ed25519", "rsa-sha2-256")
key Pair
JCA key pair containing the private key
data To Sign
The data to sign (as provided by AuthHandler.onSignatureRequest)