| /freebsd-12.1/crypto/openssh/ |
| H A D | ssh-rsa.c | 43 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 D | ssh-ecdsa.c | 55 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() 175 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_ecdsa_verify()
|
| H A D | kexecdh.c | 51 int hash_alg, in kex_ecdh_hash() argument 66 if (*hashlen < ssh_digest_bytes(hash_alg)) in kex_ecdh_hash() 89 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) { in kex_ecdh_hash() 94 *hashlen = ssh_digest_bytes(hash_alg); in kex_ecdh_hash()
|
| H A D | kexdh.c | 48 int hash_alg, in kex_dh_hash() argument 62 if (*hashlen < ssh_digest_bytes(hash_alg)) in kex_dh_hash() 85 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) { in kex_dh_hash() 90 *hashlen = ssh_digest_bytes(hash_alg); in kex_dh_hash()
|
| H A D | kexc25519.c | 86 int hash_alg, in kex_c25519_hash() argument 100 if (*hashlen < ssh_digest_bytes(hash_alg)) in kex_c25519_hash() 123 if (ssh_digest_buffer(hash_alg, b, hash, *hashlen) != 0) { in kex_c25519_hash() 128 *hashlen = ssh_digest_bytes(hash_alg); in kex_c25519_hash()
|
| H A D | kexgex.c | 48 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 D | kex.c | 78 int hash_alg; member 770 k->hash_alg = kexalg->hash_alg; in choose_kex() 939 if ((mdsz = ssh_digest_bytes(kex->hash_alg)) == 0) in derive_key() 947 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key() 966 if ((hashctx = ssh_digest_start(kex->hash_alg)) == NULL || in derive_key()
|
| H A D | hostfile.h | 49 int store_hash, int quiet, int hash_alg);
|
| H A D | kexc25519s.c | 112 kex->hash_alg, in input_kex_c25519_init()
|
| H A D | kexc25519c.c | 131 kex->hash_alg, in input_kex_c25519_reply()
|
| H A D | kexecdhs.c | 146 kex->hash_alg, in input_kex_ecdh_init()
|
| H A D | kexecdhc.c | 176 kex->hash_alg, in input_kex_ecdh_reply()
|
| /freebsd-12.1/lib/libsecureboot/openpgp/ |
| H A D | opgp_sig.c | 148 sig->hash_alg = *ptr++; 152 sig->hash_alg = *ptr++; 211 get_hname(int hash_alg) 216 if (hmp->halg == hash_alg) 327 } else if (!(hname = get_hname(sig->hash_alg))) { 328 warnx("unsupported hash algorithm: %d", sig->hash_alg); 337 switch (sig->hash_alg) { /* see hash_algs above */
|
| H A D | packet.h | 58 int hash_alg; member
|
| /freebsd-12.1/contrib/wpa/src/tls/ |
| H A D | tlsv1_record.c | 45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite() 48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite() 51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite() 207 hmac = crypto_hash_init(rl->hash_alg, rl->write_mac_secret, in tlsv1_record_send() 436 hmac = crypto_hash_init(rl->hash_alg, rl->read_mac_secret, in tlsv1_record_receive()
|
| H A D | pkcs1.c | 198 const struct asn1_oid *hash_alg, in pkcs1_v15_sig_ver() argument 273 if (!asn1_oid_equal(&oid, hash_alg)) { in pkcs1_v15_sig_ver() 276 asn1_oid_to_str(hash_alg, txt2, sizeof(txt2)); in pkcs1_v15_sig_ver()
|
| H A D | pkcs1.h | 26 const struct asn1_oid *hash_alg,
|
| H A D | tlsv1_record.h | 45 enum crypto_hash_alg hash_alg; member
|
| H A D | tlsv1_common.c | 338 int tlsv12_key_x_server_params_hash(u16 tls_version, u8 hash_alg, in tlsv12_key_x_server_params_hash() argument 348 switch (hash_alg) { in tlsv12_key_x_server_params_hash()
|
| /freebsd-12.1/crypto/openssl/crypto/ts/ |
| H A D | ts_rsp_sign.c | 38 static ESS_SIGNING_CERT_V2 *ess_signing_cert_v2_new_init(const EVP_MD *hash_alg, 42 static ESS_CERT_ID_V2 *ess_cert_id_v2_new_init(const EVP_MD *hash_alg, 861 static ESS_SIGNING_CERT_V2 *ess_signing_cert_v2_new_init(const EVP_MD *hash_alg, in ess_signing_cert_v2_new_init() argument 871 if ((cid = ess_cert_id_v2_new_init(hash_alg, signcert, 0)) == NULL) in ess_signing_cert_v2_new_init() 880 if ((cid = ess_cert_id_v2_new_init(hash_alg, cert, 1)) == NULL) in ess_signing_cert_v2_new_init() 895 static ESS_CERT_ID_V2 *ess_cert_id_v2_new_init(const EVP_MD *hash_alg, in ess_cert_id_v2_new_init() argument 909 if (hash_alg != EVP_sha256()) { in ess_cert_id_v2_new_init() 913 X509_ALGOR_set_md(alg, hash_alg); in ess_cert_id_v2_new_init() 916 cid->hash_alg = alg; in ess_cert_id_v2_new_init() 919 cid->hash_alg = NULL; in ess_cert_id_v2_new_init() [all …]
|
| H A D | ts_lcl.h | 144 X509_ALGOR *hash_alg; /* Default: SHA-256 */ member
|
| /freebsd-12.1/crypto/openssl/crypto/ct/ |
| H A D | ct_sct.c | 128 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 133 sct->hash_alg = TLSEXT_hash_sha256; in SCT_set_signature_nid() 219 if (sct->hash_alg == TLSEXT_hash_sha256) { in SCT_get_signature_nid()
|
| H A D | ct_oct.c | 48 sct->hash_alg = *p++; in o2i_SCT_signature() 188 *p++ = sct->hash_alg; in i2o_SCT_signature()
|
| H A D | ct_prn.c | 24 BIO_printf(out, "%02X%02X", sct->hash_alg, sct->sig_alg); in SCT_signature_algorithms_print()
|
| H A D | ct_locl.h | 73 unsigned char hash_alg; member
|