SshSigner.sign

SshSignResult sign(scope const(ubyte)[] requestData, string signatureAlgorithm)

Signs the given request data with the requested signature algorithm, continuing a pending operation when called again.

Parameters

requestDataExact bytes to be signed; the caller must not modify them while an operation is pending.
signatureAlgorithmRequested signature algorithm (for example rsa-sha2-256); implementations verify they can produce it and report a SshError.CAPABILITY error otherwise.

Returns

The current signing state; poll again after WAIT.