Lines Matching refs:DTLS_EC_KEY_SIZE
80 #define DTLS_CE_LENGTH (3 + 3 + 27 + DTLS_EC_KEY_SIZE + DTLS_EC_KEY_SIZE)
81 #define DTLS_SKEXEC_LENGTH (1 + 2 + 1 + 1 + DTLS_EC_KEY_SIZE + DTLS_EC_KEY_SIZE + 1 + 1 + 2 + 70)
85 #define DTLS_CKXEC_LENGTH (1 + 1 + DTLS_EC_KEY_SIZE + DTLS_EC_KEY_SIZE)
86 #define DTLS_CV_LENGTH (1 + 1 + 2 + 1 + 1 + 1 + 1 + DTLS_EC_KEY_SIZE + 1 + 1 + DTLS_EC_KEY_SIZE)
1018 if (dtls_uint8_to_int(data) != 1 + 2 * DTLS_EC_KEY_SIZE) { in check_client_keyexchange()
1665 *result_r = data + i - DTLS_EC_KEY_SIZE; in dtls_check_ecdsa_signature_elem()
1682 *result_s = data + i - DTLS_EC_KEY_SIZE; in dtls_check_ecdsa_signature_elem()
1854 memcpy(p, key->pub_key_x, DTLS_EC_KEY_SIZE); in dtls_send_certificate_ecdsa()
1855 p += DTLS_EC_KEY_SIZE; in dtls_send_certificate_ecdsa()
1857 memcpy(p, key->pub_key_y, DTLS_EC_KEY_SIZE); in dtls_send_certificate_ecdsa()
1858 p += DTLS_EC_KEY_SIZE; in dtls_send_certificate_ecdsa()
1875 len_r = dtls_ec_key_from_uint32_asn1(point_r, DTLS_EC_KEY_SIZE, p + R_KEY_OFFSET); in dtls_add_ecdsa_signature_elem()
1876 len_s = dtls_ec_key_from_uint32_asn1(point_s, DTLS_EC_KEY_SIZE, p + S_KEY_OFFSET(len_r)); in dtls_add_ecdsa_signature_elem()
1952 dtls_int_to_uint8(p, 1 + 2 * DTLS_EC_KEY_SIZE); in dtls_send_server_key_exchange_ecdh()
1961 p += DTLS_EC_KEY_SIZE; in dtls_send_server_key_exchange_ecdh()
1965 p += DTLS_EC_KEY_SIZE; in dtls_send_server_key_exchange_ecdh()
1969 DTLS_EC_KEY_SIZE); in dtls_send_server_key_exchange_ecdh()
1972 dtls_ecdsa_create_sig(key->priv_key, DTLS_EC_KEY_SIZE, in dtls_send_server_key_exchange_ecdh()
2209 dtls_int_to_uint8(p, 1 + 2 * DTLS_EC_KEY_SIZE); in dtls_send_client_key_exchange()
2217 p += DTLS_EC_KEY_SIZE; in dtls_send_client_key_exchange()
2219 p += DTLS_EC_KEY_SIZE; in dtls_send_client_key_exchange()
2223 DTLS_EC_KEY_SIZE); in dtls_send_client_key_exchange()
2263 dtls_ecdsa_create_sig_hash(key->priv_key, DTLS_EC_KEY_SIZE, in dtls_send_certificate_verify_ecdh()
2640 if (dtls_uint8_to_int(data) != 1 + 2 * DTLS_EC_KEY_SIZE) { in check_server_key_exchange_ecdsa()
2674 1 + 2 + 1 + 1 + (2 * DTLS_EC_KEY_SIZE), in check_server_key_exchange_ecdsa()