Searched refs:hash_alg (Results 1 - 19 of 19) sorted by relevance

/openbsd-current/usr.bin/ssh/
H A Dkexgex.c42 int hash_alg,
87 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) {
92 *hashlen = ssh_digest_bytes(hash_alg);
41 kexgex_hash( int hash_alg, const struct sshbuf *client_version, const struct sshbuf *server_version, const struct sshbuf *client_kexinit, const struct sshbuf *server_kexinit, const struct sshbuf *server_host_key_blob, int min, int wantbits, int max, const BIGNUM *prime, const BIGNUM *gen, const BIGNUM *client_dh_pub, const BIGNUM *server_dh_pub, const u_char *shared_secret, size_t secretlen, u_char *hash, size_t *hashlen) argument
H A Dssh-rsa.c263 rsa_hash_alg_ident(int hash_alg) argument
265 switch (hash_alg) {
393 int nid, hash_alg, ret = SSH_ERR_INTERNAL_ERROR; local
402 hash_alg = SSH_DIGEST_SHA1;
404 hash_alg = rsa_hash_id_from_keyname(alg);
405 if (key == NULL || key->rsa == NULL || hash_alg == -1 ||
416 nid = rsa_hash_alg_nid(hash_alg);
417 if ((hlen = ssh_digest_bytes(hash_alg)) == 0)
419 if ((ret = ssh_digest_memory(hash_alg, data, datalen,
445 if ((ret = sshbuf_put_cstring(b, rsa_hash_alg_ident(hash_alg))) !
474 int hash_alg, want_alg, ret = SSH_ERR_INTERNAL_ERROR; local
604 rsa_hash_alg_oid(int hash_alg, const u_char **oidp, size_t *oidlenp) argument
626 openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, u_char *sigbuf, size_t siglen, RSA *rsa) argument
[all...]
H A Dssh-ecdsa.c225 int hash_alg; local
240 if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 ||
241 (hlen = ssh_digest_bytes(hash_alg)) == 0)
243 if ((ret = ssh_digest_memory(hash_alg, data, dlen,
290 int hash_alg; local
302 if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 ||
303 (hlen = ssh_digest_bytes(hash_alg)) == 0)
343 if ((ret = ssh_digest_memory(hash_alg, data, dlen,
H A Dkexgen.c46 int hash_alg,
60 if (*hashlen < ssh_digest_bytes(hash_alg))
83 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) {
88 *hashlen = ssh_digest_bytes(hash_alg);
202 kex->hash_alg,
326 kex->hash_alg,
45 kex_gen_hash( int hash_alg, const struct sshbuf *client_version, const struct sshbuf *server_version, const struct sshbuf *client_kexinit, const struct sshbuf *server_kexinit, const struct sshbuf *server_host_key_blob, const struct sshbuf *client_pub, const struct sshbuf *server_pub, const struct sshbuf *shared_secret, u_char *hash, size_t *hashlen) argument
H A Dkexsntrup761x25519.c125 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0)
138 ssh_digest_bytes(kex->hash_alg))) != 0)
193 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0)
202 ssh_digest_bytes(kex->hash_alg))) != 0)
H A Dhostfile.h57 int store_hash, int quiet, int hash_alg);
H A Dkex-names.c51 int hash_alg; member in struct:kexalg
133 return k->hash_alg;
H A Dkexgexc.c184 kex->hash_alg,
H A Dkex.h158 int hash_alg; member in struct:kex
H A Dkexgexs.c162 kex->hash_alg,
H A Dkex.c866 k->hash_alg = kex_hash_from_name(k->name);
1065 if ((mdsz = ssh_digest_bytes(kex->hash_alg)) == 0)
1073 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL ||
1092 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL ||
H A Dhostfile.c589 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg)
649 if ((fp = sshkey_fingerprint(keys[i], hash_alg,
588 hostfile_replace_entries(const char *filename, const char *host, const char *ip, struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) argument
/openbsd-current/lib/libcrypto/ct/
H A Dct_oct.c78 uint8_t hash_alg, sig_alg; local
90 if (!CBS_get_u8(cbs, &hash_alg))
106 sct->hash_alg = hash_alg;
249 *p++ = sct->hash_alg;
H A Dct_sct.c200 sct->hash_alg = 4; /* XXX */
205 sct->hash_alg = 4; /* XXX */
312 if (sct->hash_alg == 4) {
H A Dct_local.h111 unsigned char hash_alg; member in struct:sct_st
H A Dct_prn.c105 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg);
/openbsd-current/lib/libcrypto/ts/
H A Dts_local.h220 X509_ALGOR *hash_alg; /* Default SHA-256. */ member in struct:ESS_cert_id_v2
H A Dts_rsp_verify.c420 if (cid->hash_alg != NULL)
421 md = EVP_get_digestbyobj(cid->hash_alg->algorithm);
H A Dts_asn1.c916 .offset = offsetof(ESS_CERT_ID_V2, hash_alg),
917 .field_name = "hash_alg",

Completed in 285 milliseconds