DigestsForSSH returns a concatenation of the hashes of the public key, the message and the purpose. The openSSH and openSSL ECDSA code will hash this message again internally and hence these hashes must not be themselves hashed here to ensure compatibility with the Vanadium signature verification which uses the go crypto code so that a messages signed by the SSH agent/ssl code can be verified by the Vanadium code.
FromECDSAKey creates a security.PublicKey from an ssh ECDSA key.
FromECDSAKey creates a security.PublicKey from an ssh ED25519 key.
HashedDigestsForSSH hashes the digests returned by DigestsForSSH using an appropriate hash function for the ssh key. The ED25519 implementation in openSSH does not rehash internally and consequently this is needed for compatibility with the Vanadium code.
IsSupported returns true if the suplied ssh key type is supported.
UnmarshalSSHECDSASignature unmarshals the R and S signature components from the returned signature.