www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: SSH2 host key length and hash compute

SSH2 host key length and hash compute

From: Kalpesh Parekh <kalpesh.ork2_at_gmail.com>
Date: Mon, 1 Jul 2013 12:55:17 -0700


The values returned by libssh2_host_key is returned as size_t. How can I
convert it to bits. I seem to be getting 23 additional bytes and therefore
have used (size returned - 23) *8.

Also when computing the hash I have used md5 for RSA and sha1 for DSS. Is
this the correct way?

libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2013-07-01

the libssh2 team