search for: dump_digest

Displaying 1 result from an estimated 1 matches for "dump_digest".

2013 Sep 24
9
[PATCH] curve25519-sha256@libssh.org key exchange proposal
...KEY_SIZE); + buffer_put_bignum2(&b, shared_secret); + +#ifdef DEBUG_KEX + buffer_dump(&b); +#endif + EVP_DigestInit(&md, evp_md); + EVP_DigestUpdate(&md, buffer_ptr(&b), buffer_len(&b)); + EVP_DigestFinal(&md, digest, NULL); + + buffer_free(&b); + +#ifdef DEBUG_KEX + dump_digest("hash", digest, EVP_MD_size(evp_md)); +#endif + *hash = digest; + *hashlen = EVP_MD_size(evp_md); +} diff --git a/kexc25519c.c b/kexc25519c.c new file mode 100644 index 0000000..b2000f0 --- /dev/null +++ b/kexc25519c.c @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2001 Markus Friedl. All right...