Home
last modified time | relevance | path

Searched refs:ecdsa_nid (Results 1 – 15 of 15) sorted by relevance

/netbsd/crypto/external/bsd/openssh/dist/
H A Dssh-ecdsa.c48 switch (key->ecdsa_nid) { in ssh_ecdsa_size()
98 sshkey_curve_nid_to_name(key->ecdsa_nid))) != 0 || in ssh_ecdsa_serialize_public()
126 if ((k->ecdsa_nid = sshkey_ecdsa_bits_to_nid(bits)) == -1) in ssh_ecdsa_generate()
128 if ((private = EC_KEY_new_by_curve_name(k->ecdsa_nid)) == NULL) in ssh_ecdsa_generate()
142 to->ecdsa_nid = from->ecdsa_nid; in ssh_ecdsa_copy_public()
143 if ((to->ecdsa = EC_KEY_new_by_curve_name(from->ecdsa_nid)) == NULL) in ssh_ecdsa_copy_public()
158 if ((key->ecdsa_nid = sshkey_ecdsa_nid_from_name(ktype)) == -1) in ssh_ecdsa_deserialize_public()
162 if (key->ecdsa_nid != sshkey_curve_name_to_nid(curve)) { in ssh_ecdsa_deserialize_public()
168 if ((key->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid)) == NULL) { in ssh_ecdsa_deserialize_public()
243 if ((hash_alg = sshkey_ec_nid_to_hash_alg(key->ecdsa_nid)) == -1 || in ssh_ecdsa_sign()
[all …]
H A Dsshkey.c182 return sshkey_impl_from_type_nid(k->type, k->ecdsa_nid); in sshkey_impl_from_key()
218 return sshkey_ssh_name_from_type_nid(k->type, k->ecdsa_nid); in sshkey_ssh_name()
225 k->ecdsa_nid); in sshkey_ssh_name_plain()
588 k->ecdsa_nid = -1; in sshkey_new()
733 typename = sshkey_ssh_name_from_type_nid(type, key->ecdsa_nid); in to_blob_buf()
1199 if (key_type_is_ecdsa_variant(type) && curve_nid != k->ecdsa_nid) { in sshkey_read()
2501 k->ecdsa_nid != sshkey_ecdsa_nid_from_name(tname)) { in sshkey_private_deserialize()
3451 prv->ecdsa_nid = sshkey_ecdsa_key_to_nid(prv->ecdsa); in sshkey_parse_private_pem_fileblob()
3452 if (prv->ecdsa_nid == -1 || in sshkey_parse_private_pem_fileblob()
3453 sshkey_curve_nid_to_name(prv->ecdsa_nid) == NULL || in sshkey_parse_private_pem_fileblob()
H A Dssh_api.c474 (type != KEY_ECDSA || k->key->ecdsa_nid == nid)) in _ssh_host_public_key()
489 (type != KEY_ECDSA || k->key->ecdsa_nid == nid)) in _ssh_host_private_key()
H A Dsshkey.h129 int ecdsa_nid; /* NID of curve */ member
H A Dssh-pkcs11-client.c186 key->ecdsa_nid = nid; in ecdsa_do_sign()
H A Dssh-sk.c201 key->ecdsa_nid = NID_X9_62_prime256v1; in sshsk_ecdsa_assemble()
202 if ((key->ecdsa = EC_KEY_new_by_curve_name(key->ecdsa_nid)) == NULL || in sshsk_ecdsa_assemble()
H A Dssh-ecdsa-sk.c245 if (key->ecdsa_nid != NID_X9_62_prime256v1) in ssh_ecdsa_sk_verify()
H A Dssh-pkcs11.c796 key->ecdsa_nid = nid; in pkcs11_fetch_ecdsa_pubkey()
1031 key->ecdsa_nid = nid; in pkcs11_fetch_x509_pubkey()
H A Dhostfile.c370 hostkeys->entries[i].key->ecdsa_nid != nid) in check_hostkeys_by_key_or_type()
H A Dkex.c1249 server_host_key->ecdsa_nid != kex->hostkey_nid)) in kex_verify_host_key()
H A Dsshd.c673 if (key->ecdsa_nid != nid) in get_hostkey_by_type()
H A Dssh-keygen.c706 (*k)->ecdsa_nid = sshkey_ecdsa_key_to_nid((*k)->ecdsa); in do_convert_from_pkcs8()
/netbsd/crypto/external/bsd/netpgp/dist/src/lib/
H A Dnetpgpsdk.h78 int ecdsa_nid(const pgp_ecdsa_pubkey_t *);
H A Dmisc.c1381 ecdsa_nid(const pgp_ecdsa_pubkey_t * pub) in ecdsa_nid() function
1433 nid = ecdsa_nid(pub); in ecdsa_hashalg()
H A Dopenssl_crypto.c264 nid = ecdsa_nid(ecdsa); in makeECDSA()