diff --git a/sshlib/src/main/kotlin/org/connectbot/sshlib/KeyboardInteractiveCallback.kt b/sshlib/src/main/kotlin/org/connectbot/sshlib/KeyboardInteractiveCallback.kt index 22a1816..b320b9c 100644 --- a/sshlib/src/main/kotlin/org/connectbot/sshlib/KeyboardInteractiveCallback.kt +++ b/sshlib/src/main/kotlin/org/connectbot/sshlib/KeyboardInteractiveCallback.kt @@ -1,6 +1,6 @@ /* * ConnectBot SSH Library - * Copyright 2025 Kenny Root + * Copyright 2025-2026 Kenny Root * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,8 @@ package org.connectbot.sshlib * Callback for keyboard-interactive authentication (RFC 4256). * * The server sends one or more info requests, each containing prompts - * that the user must answer. Call [respond] with the answers to send - * them back to the server. + * that the user must answer. [onInfoRequest] receives a `respond` + * callback; call it with the answers to send them back to the server. */ interface KeyboardInteractiveCallback { /** diff --git a/sshlib/src/main/kotlin/org/connectbot/sshlib/sk/SkSignatureBlob.kt b/sshlib/src/main/kotlin/org/connectbot/sshlib/sk/SkSignatureBlob.kt index d59ff3c..f92420e 100644 --- a/sshlib/src/main/kotlin/org/connectbot/sshlib/sk/SkSignatureBlob.kt +++ b/sshlib/src/main/kotlin/org/connectbot/sshlib/sk/SkSignatureBlob.kt @@ -49,11 +49,11 @@ import org.connectbot.sshlib.crypto.encodeSshString * For ECDSA-P256, [pack] accepts the DER `SEQUENCE { INTEGER r, INTEGER s }` * format that CTAP2 returns and converts it to `mpint r || mpint s` internally. * - * What [flags] and [counter] mean (from `PROTOCOL.u2f` §3.2): the FIDO2 device + * The `flags` and `counter` parameters of [pack] come from the CTAP2 + * GetAssertion response. Per OpenSSH `PROTOCOL.u2f` §3.2, the FIDO2 device * sets `flags = SK_USER_PRESENCE_REQUIRED (0x01)` if user presence was tested * and `| SK_USER_VERIFICATION_REQUIRED (0x04)` if user verification was also - * tested; `counter` is the device's monotonic signature counter. Both come - * from the CTAP2 GetAssertion response. + * tested; `counter` is the device's monotonic signature counter. */ public object SkSignatureBlob {