import "v.io/x/ref/lib/security/signing/internal"
func DigestsForSSH(sshPK ssh.PublicKey, v23PK, purpose, message []byte) ([]byte, security.Hash, error)
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.
func HashedDigestsForSSH(sshPK ssh.PublicKey, v23PK, purpose, message []byte) ([]byte, security.Hash, error)
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.
Package internal imports 8 packages (graph) and is imported by 2 packages. Updated 2020-10-22. Refresh now. Tools for package owners.