Re: SHA1 diffs

2009-05-06 Thread Daniel Stenberg
On Thu, 7 May 2009, Daniel Stenberg wrote: > libssh2_sha1_init(&ctx); > libssh2_sha1_update(ctx, node->salt, node->salt_len); > libssh2_sha1_update(ctx, host, strlen(host)); > libssh2_sha1_final(ctx, hash); Oops, I find the flaw. My code should instead do:

SHA1 diffs

2009-05-06 Thread Daniel Stenberg
Hello, I'm currently running tests on my early implementation of known_hosts checks, but I've crashed into a problem I thought I'd ask you lot for advice about before I go to bed and try further tomorrow. It's about the sha1 hash checks. My code fails to get the same hash output as the openssh