Home
last modified time | relevance | path

Searched refs:context (Results 1 – 17 of 17) sorted by relevance

/net-tools-3.7.0/tinydtls-0.8.2/sha2/
Dsha2.c370 void SHA256_Init(SHA256_CTX* context) { in SHA256_Init() argument
371 if (context == (SHA256_CTX*)0) { in SHA256_Init()
374 MEMCPY_BCOPY(context->state, sha256_initial_hash_value, SHA256_DIGEST_LENGTH); in SHA256_Init()
375 MEMSET_BZERO(context->buffer, SHA256_BLOCK_LENGTH); in SHA256_Init()
376 context->bitcount = 0; in SHA256_Init()
416 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument
421 W256 = (sha2_word32*)context->buffer; in SHA256_Transform()
424 a = context->state[0]; in SHA256_Transform()
425 b = context->state[1]; in SHA256_Transform()
426 c = context->state[2]; in SHA256_Transform()
[all …]
/net-tools-3.7.0/libcoap/include/coap/
Dnet.h124 ssize_t (*network_send)(struct coap_context_t *context,
141 coap_register_response_handler(coap_context_t *context, in coap_register_response_handler() argument
143 context->response_handler = handler; in coap_register_response_handler()
167 coap_queue_t *coap_peek_next( coap_context_t *context );
172 coap_queue_t *coap_pop_next( coap_context_t *context );
189 coap_new_message_id(coap_context_t *context) { in coap_new_message_id() argument
190 context->message_id++; in coap_new_message_id()
192 return htons(context->message_id); in coap_new_message_id()
194 return uip_htons(context->message_id); in coap_new_message_id()
204 void coap_free_context(coap_context_t *context);
[all …]
Dasync.h85 coap_register_async(coap_context_t *context,
106 int coap_remove_async(coap_context_t *context,
132 coap_async_state_t *coap_find_async(coap_context_t *context, coap_tid_t id);
Dresource.h131 void coap_add_resource(coap_context_t *context, coap_resource_t *resource);
143 int coap_delete_resource(coap_context_t *context, coap_key_t key);
150 void coap_delete_all_resources(coap_context_t *context);
265 coap_resource_t *coap_get_resource_from_key(coap_context_t *context,
321 void coap_touch_observer(coap_context_t *context,
344 void coap_check_notify(coap_context_t *context);
Dcoap_io.h51 struct coap_context_t *context; member
79 ssize_t coap_network_send(struct coap_context_t *context,
/net-tools-3.7.0/libcoap/src/
Dnet.c290 coap_peek_next( coap_context_t *context ) { in coap_peek_next() argument
291 if ( !context || !context->sendqueue ) in coap_peek_next()
294 return context->sendqueue; in coap_peek_next()
298 coap_pop_next( coap_context_t *context ) { in coap_pop_next() argument
301 if ( !context || !context->sendqueue ) in coap_pop_next()
304 next = context->sendqueue; in coap_pop_next()
305 context->sendqueue = context->sendqueue->next; in coap_pop_next()
306 if (context->sendqueue) { in coap_pop_next()
307 context->sendqueue->t += next->t; in coap_pop_next()
384 c->endpoint->context = c; in coap_new_context()
[all …]
Dasync.c24 coap_register_async(coap_context_t *context, coap_address_t *peer, in coap_register_async() argument
30 LL_SEARCH_SCALAR(context->async_state,s,id,id); in coap_register_async()
67 LL_PREPEND(context->async_state, s); in coap_register_async()
73 coap_find_async(coap_context_t *context, coap_tid_t id) { in coap_find_async() argument
75 LL_SEARCH_SCALAR(context->async_state,tmp,id,id); in coap_find_async()
80 coap_remove_async(coap_context_t *context, coap_tid_t id, in coap_remove_async() argument
82 coap_async_state_t *tmp = coap_find_async(context, id); in coap_remove_async()
85 LL_DELETE(context->async_state,tmp); in coap_remove_async()
Dresource.c162 coap_print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen, argument
167 coap_print_wellknown(coap_context_t *context, unsigned char *buf, size_t *buflen,
233 RESOURCES_ITER(context->resources, r) {
399 coap_add_resource(coap_context_t *context, coap_resource_t *resource) { argument
400 RESOURCES_ADD(context->resources, resource);
428 coap_delete_resource(coap_context_t *context, coap_key_t key) { argument
431 if (!context)
434 resource = coap_get_resource_from_key(context, key);
440 RESOURCES_DELETE(context->resources, resource);
449 coap_delete_all_resources(coap_context_t *context) { argument
[all …]
Dcoap_io_lwip.c62 coap_handle_message(ep->context, packet); in coap_recv()
Dcoap_io.c238 coap_network_send(struct coap_context_t *context UNUSED_PARAM, in coap_network_send()
/net-tools-3.7.0/libcoap/examples/
DREADME.etsi_iot27 [?] TD_COAP_CORE_14 Interoperate in lossy context (CON mode, piggybacked response)
28 [?] TD_COAP_CORE_15 Interoperate in lossy context (CON mode, delayed response)
/net-tools-3.7.0/tinydtls-0.8.2/
Ddtls.h321 void dtls_check_retransmit(dtls_context_t *context, clock_time_t *next);
415 dtls_peer_t *dtls_get_peer(const dtls_context_t *context,
Ddtls.c146 free_context(dtls_context_t *context) { in free_context() argument
157 free_context(dtls_context_t *context) { in free_context() argument
158 free(context); in free_context()
209 static void dtls_stop_retransmission(dtls_context_t *context, dtls_peer_t *peer);
3890 dtls_retransmit(dtls_context_t *context, netq_t *node) { in dtls_retransmit() argument
3891 if (!context || !node) in dtls_retransmit()
3907 netq_insert_node(context->sendqueue, node); in dtls_retransmit()
3928 (void)CALL(context, write, &node->peer->session, sendbuf, len); in dtls_retransmit()
3941 dtls_stop_retransmission(dtls_context_t *context, dtls_peer_t *peer) { in dtls_stop_retransmission() argument
3943 node = list_head(context->sendqueue); in dtls_stop_retransmission()
[all …]
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_pk.function347 /* init pk-rsa context */
421 * An rsa_alt context can only do private operations (decrypt, sign).
423 * corresponding rsa context.
442 /* Initiliaze PK RSA context with random key */
447 /* Extract key to the raw rsa context */
450 /* Initialize PK RSA_ALT context */
Dtest_suite_cipher.function285 /* Initialise context */
331 /* Initialise context */
497 /* Prepare context */
571 /* Prepare context */
644 /* Prepare context */
701 /* build a fake context just for getting access to get_padding */
Dtest_suite_md.function24 * state of the underlying mbedtls_md/sha context.)
/net-tools-3.7.0/mbedtls-2.4.0/
DChangeLog220 Found by Guido Vranken, Intelworks. Not exploitable remotely in the context
275 handshake with the same context. (See RFC 6347 section 4.2.8.)
358 should generally be the first function called on this context after init:
380 * mbedtls_ssl_conf_session_cache() changed prototype (only one context
551 once on the same context.
1395 * Added p_hw_data to ssl_context for context specific hardware acceleration
1744 * Added reading of DHM context from memory and file
1815 * Added reset function for HMAC context as speed-up