Searched refs:ecdsa_nid (Results 1 – 15 of 15) sorted by relevance
48 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 …]
182 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()
474 (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()
129 int ecdsa_nid; /* NID of curve */ member
186 key->ecdsa_nid = nid; in ecdsa_do_sign()
201 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()
245 if (key->ecdsa_nid != NID_X9_62_prime256v1) in ssh_ecdsa_sk_verify()
796 key->ecdsa_nid = nid; in pkcs11_fetch_ecdsa_pubkey()1031 key->ecdsa_nid = nid; in pkcs11_fetch_x509_pubkey()
370 hostkeys->entries[i].key->ecdsa_nid != nid) in check_hostkeys_by_key_or_type()
1249 server_host_key->ecdsa_nid != kex->hostkey_nid)) in kex_verify_host_key()
673 if (key->ecdsa_nid != nid) in get_hostkey_by_type()
706 (*k)->ecdsa_nid = sshkey_ecdsa_key_to_nid((*k)->ecdsa); in do_convert_from_pkcs8()
78 int ecdsa_nid(const pgp_ecdsa_pubkey_t *);
1381 ecdsa_nid(const pgp_ecdsa_pubkey_t * pub) in ecdsa_nid() function1433 nid = ecdsa_nid(pub); in ecdsa_hashalg()
264 nid = ecdsa_nid(ecdsa); in makeECDSA()