hwsecurity-ssh / de.cotech.hw.ssh / SecurityKeySshAuthenticator / authenticateSshChallenge /

authenticateSshChallenge

open fun authenticateSshChallenge(challenge: Array< Byte>): Array< Byte>

Authenticate a challenge with the Security Key’s authentication key.

The input is expected to be the SSH encoded data to sign for a SSH_MSG_USERAUTH_REQUEST request as specified in RFC 4252, Section 7. The “public key algorithm name"of this request should be obtained from getSshPublicKeyAlgorithmName. The data should not be hashed, ashashing will be performed internally.

The format of the returned output conforms to the OpenSSH “signature” format, see RFC 4253, Section 6.6. It can be used directlyas the “signature” String value in the SSH_MSG_USERAUTH_REQUEST message, see RFC 4252, Section 7.

Parameters

Name Summary
challenge the challenge to sign