Lines Matching refs:hashctx
998 struct ssh_digest_ctx *hashctx = NULL; in derive_key() local
1013 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key()
1014 ssh_digest_update_buffer(hashctx, shared_secret) != 0 || in derive_key()
1015 ssh_digest_update(hashctx, hash, hashlen) != 0 || in derive_key()
1016 ssh_digest_update(hashctx, &c, 1) != 0 || in derive_key()
1017 ssh_digest_update(hashctx, kex->session_id, in derive_key()
1019 ssh_digest_final(hashctx, digest, mdsz) != 0) { in derive_key()
1024 ssh_digest_free(hashctx); in derive_key()
1025 hashctx = NULL; in derive_key()
1033 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key()
1034 ssh_digest_update_buffer(hashctx, shared_secret) != 0 || in derive_key()
1035 ssh_digest_update(hashctx, hash, hashlen) != 0 || in derive_key()
1036 ssh_digest_update(hashctx, digest, have) != 0 || in derive_key()
1037 ssh_digest_final(hashctx, digest + have, mdsz) != 0) { in derive_key()
1042 ssh_digest_free(hashctx); in derive_key()
1043 hashctx = NULL; in derive_key()
1054 ssh_digest_free(hashctx); in derive_key()