pack Web Authn
fun packWebAuthn(signature: ByteArray, authenticatorData: ByteArray, clientDataJson: ByteArray, origin: String): ByteArray(source)
Packs an ES256 WebAuthn assertion for OpenSSH. Signed client JSON and extension bytes are preserved verbatim. The caller supplies the origin from clientDataJSON. Use the original SSH signing bytes as the WebAuthn challenge, without hashing.
Throws
for malformed authenticator data, origin or DER signature.