Searched refs:id_length (Results 1 – 4 of 4) sorted by relevance
/net-tools-3.6.0/tinydtls-0.8.2/examples/contiki/ |
D | dtls-server.c | 127 size_t id_length; in get_psk_info() member 146 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
|
/net-tools-3.6.0/tinydtls-0.8.2/tests/ |
D | dtls-server.c | 61 size_t id_length; in get_psk_info() member 80 if (id_len == psk[i].id_length && memcmp(id, psk[i].id, id_len) == 0) { in get_psk_info()
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | dtls.c | 623 handshake->keyx.psk.id_length, in calculate_key_block() 1041 int id_length; in check_client_keyexchange() local 1049 id_length = dtls_uint16_to_int(data); in check_client_keyexchange() 1052 if (DTLS_HS_LENGTH + DTLS_CKXPSK_LENGTH_MIN + id_length != length) { in check_client_keyexchange() 1057 if (id_length > DTLS_PSK_MAX_CLIENT_IDENTITY_LEN) { in check_client_keyexchange() 1062 handshake->keyx.psk.id_length = id_length; in check_client_keyexchange() 1063 memcpy(handshake->keyx.psk.identity, data, id_length); in check_client_keyexchange() 2178 handshake->keyx.psk.identity, handshake->keyx.psk.id_length, in dtls_send_client_key_exchange() 2192 handshake->keyx.psk.id_length = (unsigned int)len; in dtls_send_client_key_exchange() 2195 dtls_int_to_uint16(p, handshake->keyx.psk.id_length); in dtls_send_client_key_exchange() [all …]
|
D | crypto.h | 95 uint16_t id_length; member
|