Home
last modified time | relevance | path

Searched refs:hash_alg (Results 1 – 11 of 11) sorted by relevance

/openssh-portable/
H A Dssh-rsa.c43 rsa_hash_alg_ident(int hash_alg) in rsa_hash_alg_ident() argument
45 switch (hash_alg) { in rsa_hash_alg_ident()
171 int nid, hash_alg, ret = SSH_ERR_INTERNAL_ERROR; in ssh_rsa_sign() local
180 hash_alg = SSH_DIGEST_SHA1; in ssh_rsa_sign()
182 hash_alg = rsa_hash_id_from_keyname(alg_ident); in ssh_rsa_sign()
194 nid = rsa_hash_alg_nid(hash_alg); in ssh_rsa_sign()
195 if ((dlen = ssh_digest_bytes(hash_alg)) == 0) in ssh_rsa_sign()
283 if (hash_alg != want_alg) { in ssh_rsa_verify()
313 if ((dlen = ssh_digest_bytes(hash_alg)) == 0) { in ssh_rsa_verify()
383 switch (hash_alg) { in rsa_hash_alg_oid()
[all …]
H A Dssh-ecdsa.c55 int hash_alg; in ssh_ecdsa_sign() local
70 if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 || in ssh_ecdsa_sign()
71 (dlen = ssh_digest_bytes(hash_alg)) == 0) in ssh_ecdsa_sign()
73 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_ecdsa_sign()
120 int hash_alg; in ssh_ecdsa_verify() local
132 if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 || in ssh_ecdsa_verify()
133 (dlen = ssh_digest_bytes(hash_alg)) == 0) in ssh_ecdsa_verify()
173 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_ecdsa_verify()
H A Dkexgex.c48 int hash_alg, in kexgex_hash() argument
93 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) { in kexgex_hash()
98 *hashlen = ssh_digest_bytes(hash_alg); in kexgex_hash()
H A Dkexgen.c49 int hash_alg, in kex_gen_hash() argument
63 if (*hashlen < ssh_digest_bytes(hash_alg)) in kex_gen_hash()
86 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) { in kex_gen_hash()
91 *hashlen = ssh_digest_bytes(hash_alg); in kex_gen_hash()
202 kex->hash_alg, in input_kex_gen_reply()
305 kex->hash_alg, in input_kex_gen_init()
H A Dkexsntrup4591761x25519.c127 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0) in kex_kem_sntrup4591761x25519_enc()
140 ssh_digest_bytes(kex->hash_alg))) != 0) in kex_kem_sntrup4591761x25519_enc()
195 if ((r = ssh_digest_buffer(kex->hash_alg, buf, hash, sizeof(hash))) != 0) in kex_kem_sntrup4591761x25519_dec()
204 ssh_digest_bytes(kex->hash_alg))) != 0) in kex_kem_sntrup4591761x25519_dec()
H A Dhostfile.h49 int store_hash, int quiet, int hash_alg);
H A Dkex.c84 int hash_alg; member
829 k->hash_alg = kexalg->hash_alg; in choose_kex()
1001 if ((mdsz = ssh_digest_bytes(kex->hash_alg)) == 0) in derive_key()
1009 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key()
1029 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key()
H A Dkexgexs.c165 kex->hash_alg, in input_kex_dh_gex_init()
H A Dkexgexc.c187 kex->hash_alg, in input_kex_dh_gex_reply()
H A Dkex.h163 int hash_alg; member
H A Dhostfile.c524 struct sshkey **keys, size_t nkeys, int store_hash, int quiet, int hash_alg) in hostfile_replace_entries() argument
578 if ((fp = sshkey_fingerprint(keys[i], hash_alg, in hostfile_replace_entries()

Completed in 31 milliseconds