Lines Matching refs:dtls_int_to_uint16

54 #define dtls_set_version(H,V) dtls_int_to_uint16((H)->version, (V))
396 dtls_int_to_uint16(buf, DTLS_VERSION); in dtls_set_record_header()
400 dtls_int_to_uint16(buf, security->epoch); in dtls_set_record_header()
437 dtls_int_to_uint16(buf, peer->handshake_params->hs_state.mseq_s); in dtls_set_handshake_header()
1301 dtls_int_to_uint16(A_DATA + 11, res - 8); /* length */ in dtls_prepare_record()
1316 dtls_int_to_uint16(sendbuf + 11, res); in dtls_prepare_record()
1586 dtls_int_to_uint16(p, DTLS_VERSION); in dtls_verify_peer()
1756 dtls_int_to_uint16(p, DTLS_VERSION); in dtls_send_server_hello()
1772 dtls_int_to_uint16(p, handshake->cipher); in dtls_send_server_hello()
1781 dtls_int_to_uint16(p, extension_size - 2); in dtls_send_server_hello()
1787 dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERTIFICATE_TYPE); in dtls_send_server_hello()
1791 dtls_int_to_uint16(p, 1); in dtls_send_server_hello()
1798 dtls_int_to_uint16(p, TLS_EXT_SERVER_CERTIFICATE_TYPE); in dtls_send_server_hello()
1802 dtls_int_to_uint16(p, 1); in dtls_send_server_hello()
1809 dtls_int_to_uint16(p, TLS_EXT_EC_POINT_FORMATS); in dtls_send_server_hello()
1813 dtls_int_to_uint16(p, 2); in dtls_send_server_hello()
1890 dtls_int_to_uint16(p, len_r + len_s + 2 + 2 + 2); in dtls_add_ecdsa_signature_elem()
1949 dtls_int_to_uint16(p, TLS_EXT_ELLIPTIC_CURVES_SECP256R1); in dtls_send_server_key_exchange_ecdh()
2004 dtls_int_to_uint16(p, len); in dtls_send_server_key_exchange_psk()
2038 dtls_int_to_uint16(p, 2); in dtls_send_server_certificate_request()
2050 dtls_int_to_uint16(p, 0); in dtls_send_server_certificate_request()
2195 dtls_int_to_uint16(p, handshake->keyx.psk.id_length); in dtls_send_client_key_exchange()
2329 dtls_int_to_uint16(p, DTLS_VERSION); in dtls_send_client_hello()
2362 dtls_int_to_uint16(p, cipher_size - 2); in dtls_send_client_hello()
2366 dtls_int_to_uint16(p, TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8); in dtls_send_client_hello()
2370 dtls_int_to_uint16(p, TLS_PSK_WITH_AES_128_CCM_8); in dtls_send_client_hello()
2383 dtls_int_to_uint16(p, extension_size - 2); in dtls_send_client_hello()
2389 dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERTIFICATE_TYPE); in dtls_send_client_hello()
2393 dtls_int_to_uint16(p, 2); in dtls_send_client_hello()
2404 dtls_int_to_uint16(p, TLS_EXT_SERVER_CERTIFICATE_TYPE); in dtls_send_client_hello()
2408 dtls_int_to_uint16(p, 2); in dtls_send_client_hello()
2419 dtls_int_to_uint16(p, TLS_EXT_ELLIPTIC_CURVES); in dtls_send_client_hello()
2423 dtls_int_to_uint16(p, 4); in dtls_send_client_hello()
2427 dtls_int_to_uint16(p, 2); in dtls_send_client_hello()
2430 dtls_int_to_uint16(p, TLS_EXT_ELLIPTIC_CURVES_SECP256R1); in dtls_send_client_hello()
2434 dtls_int_to_uint16(p, TLS_EXT_EC_POINT_FORMATS); in dtls_send_client_hello()
2438 dtls_int_to_uint16(p, 2); in dtls_send_client_hello()
2928 dtls_int_to_uint16(A_DATA + 11, clen - 8); /* length without nonce_explicit */ in decrypt_verify()