Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 26) sorted by relevance

12

/uoscore-uedhoc-3.6.0/test/edhoc_integration_tests/
Dtxrx_wrapper.c25 enum err rx(void *sock, uint8_t *data, uint32_t *data_len) in rx() argument
32 TRY(_memcpy_s(data, *data_len, m.m2, m.m2_len)); in rx()
37 TRY(_memcpy_s(data, *data_len, m.m4, m.m4_len)); in rx()
47 TRY(_memcpy_s(data, *data_len, m.m1, m.m1_len)); in rx()
52 TRY(_memcpy_s(data, *data_len, m.m3, m.m3_len)); in rx()
60 enum err tx(void *sock, uint8_t *data, uint32_t data_len) in tx() argument
Dinitiator_responder_interaction.c79 enum err semaphore_take(struct k_sem *sem, uint8_t *data, uint32_t *data_len) in semaphore_take() argument
87 memcpy(data, msg_exchange_buf, *data_len); in semaphore_take()
94 enum err copy_message(uint8_t *data, uint32_t data_len) in copy_message() argument
100 memcpy(msg_exchange_buf, data, data_len); in copy_message()
106 enum err tx_initiator(void *sock, struct byte_array *data) in tx_initiator() argument
108 enum err r = copy_message(data->ptr, data->len); in tx_initiator()
116 enum err tx_responder(void *sock, struct byte_array *data) in tx_responder() argument
119 enum err r = copy_message(data->ptr, data->len); in tx_responder()
128 enum err rx_initiator(void *sock, struct byte_array *data) in rx_initiator() argument
131 return semaphore_take(&tx_responder_completed, data->ptr, &data->len); in rx_initiator()
[all …]
Dtxrx_wrapper.h17 enum err rx(void *sock, uint8_t *data, uint32_t *data_len);
18 enum err tx(void *sock, uint8_t *data, uint32_t data_len);
/uoscore-uedhoc-3.6.0/inc/
Dedhoc.h114 enum err (*tx)(void *sock, struct byte_array *data),
115 enum err (*rx)(void *sock, struct byte_array *data),
136 enum err (*tx)(void *sock, struct byte_array *data),
137 enum err (*rx)(void *sock, struct byte_array *data),
155 enum err (*tx)(void *sock, struct byte_array *data),
156 enum err (*rx)(void *sock, struct byte_array *data),
178 enum err (*tx)(void *sock, struct byte_array *data),
179 enum err (*rx)(void *sock, struct byte_array *data),
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/src/
Dmain.c53 enum err tx(void *sock, struct byte_array *data) in tx() argument
74 TRY_EXPECT(coap_packet_append_payload(&request, data->ptr, data->len), in tx()
77 PRINT_ARRAY("CoAP packet", request.data, request.offset); in tx()
78 ssize_t n = send(*((int *)sock), request.data, request.offset, 0); in tx()
93 enum err rx(void *sock, struct byte_array *data) in rx() argument
115 if (data->len >= edhoc_data_len) { in rx()
116 memcpy(data->ptr, edhoc_data_p, edhoc_data_len); in rx()
117 data->len = edhoc_data_len; in rx()
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/src/
Dmain.c57 enum err tx(void *sock, struct byte_array *data) in tx() argument
77 r = coap_packet_append_payload(&cp_ack, data->ptr, data->len); in tx()
96 enum err rx(void *sock, struct byte_array *data) in rx() argument
125 if (data->len >= edhoc_data_len) { in rx()
126 memcpy(data->ptr, edhoc_data_p, edhoc_data_len); in rx()
127 data->len = edhoc_data_len; in rx()
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
/uoscore-uedhoc-3.6.0/inc/edhoc/
Dtxrx_wrapper.h24 extern enum err tx(uint8_t *data, uint32_t data_len);
39 extern enum err rx(uint8_t *data, uint32_t *data_len);
/uoscore-uedhoc-3.6.0/samples/linux_oscore/client/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
/uoscore-uedhoc-3.6.0/samples/linux_oscore/server/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/initiator_client/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
Dmain.cpp80 enum err tx(void *sock, struct byte_array *data) in tx() argument
93 pdu->setPayload(data->ptr, data->len); in tx()
106 enum err rx(void *sock, struct byte_array *data) in rx() argument
124 printf("data_len: %d\n", data->len); in rx()
127 if (data->len >= payload_len) { in rx()
128 memcpy(data->ptr, recvPDU->getPayloadPointer(), payload_len); in rx()
129 data->len = payload_len; in rx()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/responder_server/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
Dmain.cpp138 enum err tx(void *sock, struct byte_array *data) in tx() argument
141 txPDU->setPayload(data->ptr, data->len); in tx()
146 enum err rx(void *sock, struct byte_array *data) in rx() argument
170 if (data->len >= payload_len) { in rx()
171 memcpy(data->ptr, rxPDU->getPayloadPointer(), payload_len); in rx()
172 data->len = payload_len; in rx()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/initiator/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
Dmain.cpp79 enum err tx(void *sock, struct byte_array *data) in tx() argument
92 pdu->setPayload(data->ptr, data->len); in tx()
105 enum err rx(void *sock, struct byte_array *data) in rx() argument
126 if (data->len >= payload_len) { in rx()
127 memcpy(data->ptr, recvPDU->getPayloadPointer(), payload_len); in rx()
128 data->len = payload_len; in rx()
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/responder/src/
D_entropy.c4 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
7 (void)data; in mbedtls_hardware_poll()
Dmain.cpp116 enum err tx(void *sock, struct byte_array *data) in tx() argument
119 txPDU->setPayload(data->ptr, data->len); in tx()
124 enum err rx(void *sock, struct byte_array *data) in rx() argument
148 if (data->len >= payload_len) { in rx()
149 memcpy(data->ptr, rxPDU->getPayloadPointer(), payload_len); in rx()
150 data->len = payload_len; in rx()
/uoscore-uedhoc-3.6.0/test/
Dentropy.c7 int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, in mbedtls_hardware_poll() argument
13 (void)data; in mbedtls_hardware_poll()
/uoscore-uedhoc-3.6.0/
Dbenchmarks.md13 3) The (D)TLS data is obtained with [mbedTLS](https://github.com/Mbed-TLS/mbedtls) and published in…
23 1. uOSCORE-uEDHOC uses only stack memory. The (D)TLS data includes stack and heap memory as given i…
43 ### Latency for encrypting/decrypting payload data with uOSCORE
53 1. All latency numbers are pure latency caused by computations. No data was send or received. The s…
DREADME.MD74 …r and responder side respectively. They return the External Authorization data `EAD_x`, the deriv…
85 * @param data data to be send
87 enum err tx(void *sock, struct byte_array *data);
91 * function. The user should copy the received data in \p data.
95 * THAN \p data->len.
97 * After copying, the length of the received data should be written
98 * in \p data->len.
103 * @param data the received message must be copied here
105 enum err rx(void *sock, struct byte_array *data);
/uoscore-uedhoc-3.6.0/src/edhoc/
Dinitiator.c295 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_initiator_run_extended() argument
296 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_initiator_run_extended()
331 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_initiator_run() argument
332 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_initiator_run()
Dresponder.c359 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_responder_run_extended() argument
360 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_responder_run_extended()
393 enum err (*tx)(void *sock, struct byte_array *data), in edhoc_responder_run() argument
394 enum err (*rx)(void *sock, struct byte_array *data), in edhoc_responder_run()
/uoscore-uedhoc-3.6.0/scripts/
Djson2c.py641 def get_len_str(i, data): argument
642 if type(data["test_vector_1"][i]) is str:
643 return str(len(data["test_vector_1"][i]) >> 1)
683 data = json.load(in_fp)
688 test_vector_labels = list(data.keys())
694 test_vector_elements = data[vec_num]

12