Lines Matching refs:ecdsa

524   int ecdsa;  in known_cipher()  local
527 ecdsa = is_ecdsa_supported(ctx, is_client); in known_cipher()
529 (ecdsa && is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(code)); in known_cipher()
647 pre_master_len = dtls_ecdh_pre_master_secret(handshake->keyx.ecdsa.own_eph_priv, in calculate_key_block()
648 handshake->keyx.ecdsa.other_eph_pub_x, in calculate_key_block()
649 handshake->keyx.ecdsa.other_eph_pub_y, in calculate_key_block()
650 sizeof(handshake->keyx.ecdsa.own_eph_priv), in calculate_key_block()
1030 memcpy(handshake->keyx.ecdsa.other_eph_pub_x, data, in check_client_keyexchange()
1031 sizeof(handshake->keyx.ecdsa.other_eph_pub_x)); in check_client_keyexchange()
1032 data += sizeof(handshake->keyx.ecdsa.other_eph_pub_x); in check_client_keyexchange()
1034 memcpy(handshake->keyx.ecdsa.other_eph_pub_y, data, in check_client_keyexchange()
1035 sizeof(handshake->keyx.ecdsa.other_eph_pub_y)); in check_client_keyexchange()
1036 data += sizeof(handshake->keyx.ecdsa.other_eph_pub_y); in check_client_keyexchange()
1722 ret = dtls_ecdsa_verify_sig_hash(config->keyx.ecdsa.other_pub_x, config->keyx.ecdsa.other_pub_y, in check_client_certificate_verify()
1723 sizeof(config->keyx.ecdsa.other_pub_x), in check_client_certificate_verify()
1743 int ecdsa; in dtls_send_server_hello() local
1748 ecdsa = is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(handshake->cipher); in dtls_send_server_hello()
1750 extension_size = (ecdsa) ? 2 + 5 + 5 + 6 : 0; in dtls_send_server_hello()
1785 if (ecdsa) { in dtls_send_server_hello()
1967 dtls_ecdsa_generate_key(config->keyx.ecdsa.own_eph_priv, in dtls_send_server_key_exchange_ecdh()
2221 dtls_ecdsa_generate_key(peer->handshake_params->keyx.ecdsa.own_eph_priv, in dtls_send_client_key_exchange()
2315 int ecdsa; in dtls_send_client_hello() local
2320 ecdsa = is_ecdsa_supported(ctx, 1); in dtls_send_client_hello()
2322 cipher_size = 2 + ((ecdsa) ? 2 : 0) + ((psk) ? 2 : 0); in dtls_send_client_hello()
2323 extension_size = (ecdsa) ? 2 + 6 + 6 + 8 + 6: 0; in dtls_send_client_hello()
2365 if (ecdsa) { in dtls_send_client_hello()
2387 if (ecdsa) { in dtls_send_client_hello()
2583 memcpy(config->keyx.ecdsa.other_pub_x, data, in check_server_certificate()
2584 sizeof(config->keyx.ecdsa.other_pub_x)); in check_server_certificate()
2585 data += sizeof(config->keyx.ecdsa.other_pub_x); in check_server_certificate()
2587 memcpy(config->keyx.ecdsa.other_pub_y, data, in check_server_certificate()
2588 sizeof(config->keyx.ecdsa.other_pub_y)); in check_server_certificate()
2589 data += sizeof(config->keyx.ecdsa.other_pub_y); in check_server_certificate()
2592 config->keyx.ecdsa.other_pub_x, in check_server_certificate()
2593 config->keyx.ecdsa.other_pub_y, in check_server_certificate()
2594 sizeof(config->keyx.ecdsa.other_pub_x)); in check_server_certificate()
2654 memcpy(config->keyx.ecdsa.other_eph_pub_x, data, sizeof(config->keyx.ecdsa.other_eph_pub_y)); in check_server_key_exchange_ecdsa()
2655 data += sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2656 data_length -= sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2658 memcpy(config->keyx.ecdsa.other_eph_pub_y, data, sizeof(config->keyx.ecdsa.other_eph_pub_y)); in check_server_key_exchange_ecdsa()
2659 data += sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2660 data_length -= sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2669 ret = dtls_ecdsa_verify_sig(config->keyx.ecdsa.other_pub_x, config->keyx.ecdsa.other_pub_y, in check_server_key_exchange_ecdsa()
2670 sizeof(config->keyx.ecdsa.other_pub_x), in check_server_key_exchange_ecdsa()