Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 24 of 24) sorted by relevance

/net-tools-3.5.0/libcoap/include/coap/
Dbits.h32 bits_setb(uint8_t *vec, size_t size, uint8_t bit) { in bits_setb()
36 *(vec + (bit >> 3)) |= (uint8_t)(1 << (bit & 0x07)); in bits_setb()
52 bits_clrb(uint8_t *vec, size_t size, uint8_t bit) { in bits_clrb()
56 *(vec + (bit >> 3)) &= (uint8_t)(~(1 << (bit & 0x07))); in bits_clrb()
71 bits_getb(const uint8_t *vec, size_t size, uint8_t bit) { in bits_getb()
Duthash.h70 typedef unsigned char uint8_t; typedef
122 (tbl)->bloom_bv = (uint8_t*)uthash_malloc(HASH_BLOOM_BYTELEN); \
479 #define get16bits(d) ((((uint32_t)(((const uint8_t *)(d))[1])) << 8) \
480 +(uint32_t)(((const uint8_t *)(d))[0]) )
570 const uint8_t *_mur_data = (const uint8_t*)(key); \
576 const uint8_t *_mur_tail; \
589 _mur_tail = (const uint8_t*)(_mur_data + _mur_nblocks*4); \
946 uint8_t *bloom_bv;
Dnet.h104 uint8_t timer_configured; /**< Set to 1 when a retransmission is
/net-tools-3.5.0/tinydtls-0.8.2/sha2/
Dsha2.h100 uint8_t buffer[SHA256_BLOCK_LENGTH];
105 uint8_t buffer[SHA512_BLOCK_LENGTH];
132 void SHA256_Update(SHA256_CTX*, const uint8_t*, size_t);
133 void SHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*);
135 char* SHA256_Data(const uint8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]);
140 void SHA384_Update(SHA384_CTX*, const uint8_t*, size_t);
141 void SHA384_Final(uint8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*);
143 char* SHA384_Data(const uint8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]);
148 void SHA512_Update(SHA512_CTX*, const uint8_t*, size_t);
149 void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
[all …]
Dsha2.c134 typedef uint8_t sha2_byte; /* Exactly 1 byte */
/net-tools-3.5.0/tinydtls-0.8.2/ecc/
Decc.h67 uint32_t ecc_add( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length);
68 uint32_t ecc_sub( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length);
73 int ecc_fieldMult(const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length);
75 void ecc_fieldModO(const uint32_t *A, uint32_t *result, uint8_t length);
79 void ecc_copy(const uint32_t *from, uint32_t *to, uint8_t length);
80 int ecc_isSame(const uint32_t *A, const uint32_t *B, uint8_t length);
84 int ecc_isGreater(const uint32_t *A, const uint32_t *B, uint8_t length);
Decc.c43 static uint32_t add( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length){ in add()
57 static uint32_t sub( const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length){ in sub()
69 static void rshiftby(const uint32_t *in, uint8_t in_size, uint32_t *out, uint8_t out_size, uint8_t in rshiftby()
100 static const uint8_t ecc_order_k = 8;
115 static void copy(const uint32_t *from, uint32_t *to, uint8_t length){ in copy()
119 static int isSame(const uint32_t *A, const uint32_t *B, uint8_t length){ in isSame()
124 static int isGreater(const uint32_t *A, const uint32_t *B, uint8_t length){ in isGreater()
159 static int fieldMult(const uint32_t *x, const uint32_t *y, uint32_t *result, uint8_t length){ in fieldMult()
163 uint8_t k, n; in fieldMult()
184 uint8_t n; in fieldModP()
[all …]
/net-tools-3.5.0/libcoap/tests/
Dtest_pdu.c27 uint8_t teststr[] = { 0x40, 0x01, 0x93, 0x34 }; in t_parse_pdu1()
44 uint8_t teststr[] = { 0x55, 0x69, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_parse_pdu2()
62 uint8_t teststr[] = { 0x53, 0x69, 0x12, 0x34, 't', 'o', 'k', 'e', 'n' }; in t_parse_pdu3()
72 uint8_t teststr[] = { 0x59, 0x69, 0x12, 0x34, in t_parse_pdu4()
88 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu5()
111 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu6()
123 uint8_t teststr[] = { 0x55, 0x73, 0x12, 0x34, 't', 'o', 'k', 'e', in t_parse_pdu7()
149 uint8_t teststr[] = { 0x50, 0x73, 0x12, 0x34, in t_parse_pdu8()
174 uint8_t teststr[] = { 0x70, 0x00, 0x12, 0x34, 0xff }; in t_parse_pdu9()
184 uint8_t teststr[] = { 0x53, 0x73, 0x12, 0x34, 't', 'o', 'k', in t_parse_pdu10()
[all …]
Dtest_options.c249 uint8_t teststr[] = { 0x5d, 0xff }; in t_encode_option2()
261 uint8_t teststr[] = { 0xd1, 0x01 }; in t_encode_option3()
273 uint8_t teststr[] = { 0xdd, 0xff, 0xab }; in t_encode_option4()
285 uint8_t teststr[] = { 0xed, 0x13, 0x00, 0xff }; in t_encode_option5()
297 uint8_t teststr[] = { 0xee, 0xfe, 0xf2, 0xfe, 0xf2 }; in t_encode_option6()
309 uint8_t teststr[] = { 0x35, 'v', 'a', 'l', 'u', 'e' }; in t_encode_option7()
346 const uint8_t teststr[] = { 0x12, 'a', 'b' }; in t_access_option1()
356 const uint8_t teststr[] = { 0xe2, 0x18, 0xfd, 'a', 'b' }; in t_access_option2()
366 const uint8_t teststr[] = { 0xed, 0x18, 0x0a, 0x00, 'a', 'b', 'c', 'd', in t_access_option3()
379 const uint8_t teststr[] = { 0xde, 0xff, 0xfe, 0xf2, 'a', 'b', 'c' }; in t_access_option4()
[all …]
Dtest_error_response.c30 uint8_t teststr[] = { in t_error_response1()
58 uint8_t teststr[] = { in t_error_response2()
88 uint8_t teststr[] = { in t_error_response3()
125 uint8_t teststr[] = { in t_error_response4()
165 uint8_t teststr[] = { in t_error_response5()
206 uint8_t teststr[] = { in t_error_response6()
247 uint8_t teststr[] = { in t_error_response7()
284 uint8_t teststr[] = { in t_error_response8()
Dtest_uri.c321 uint8_t teststr[] __attribute__ ((aligned (8))) = { in t_parse_uri13()
/net-tools-3.5.0/tinydtls-0.8.2/
Dnumeric.h40 static inline int dtls_int_to_uint8(unsigned char *field, uint8_t value) in dtls_int_to_uint8()
94 static inline uint8_t dtls_uint8_to_int(const unsigned char *field) in dtls_uint8_to_int()
96 return (uint8_t)field[0]; in dtls_uint8_to_int()
Dsession.h57 uint8_t ifindex;
Dnetq.h46 uint8_t type;
Duthash.h101 (tbl)->bloom_bv = (uint8_t*)uthash_malloc(HASH_BLOOM_BYTELEN); \
436 #define get16bits(d) ((((uint32_t)(((const uint8_t *)(d))[1])) << 8) \
437 +(uint32_t)(((const uint8_t *)(d))[0]) )
955 uint8_t *bloom_bv;
Ddebug.c168 uint8_t i; in dsrv_print_addr()
Ddtls.c1487 uint8_t msg[] = { level, description }; in dtls_send_alert()
2312 uint8_t cipher_size; in dtls_send_client_hello()
2313 uint8_t extension_size; in dtls_send_client_hello()
/net-tools-3.5.0/
Dmonitor_15_4.c40 static uint8_t input1[128];
41 static uint8_t input1_len, input1_offset, input1_type;
43 static uint8_t input2[128];
44 static uint8_t input2_len, input2_offset, input2_type;
/net-tools-3.5.0/tinydtls-0.8.2/aes/
Drijndael.h41 typedef uint8_t aes_u8;
/net-tools-3.5.0/libcoap/src/
Ddebug.c208 uint8_t i; in coap_print_addr()
264 msg_type_string(uint8_t t) { in msg_type_string()
272 msg_code_string(uint8_t c) { in msg_code_string()
Doption.c419 uint8_t short_opts[COAP_OPT_FILTER_SHORT];
Dnet.c590 uint8_t err; in coap_send_impl()
1336 uint8_t val = 0; in no_response()
/net-tools-3.5.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c208 uint8_t state; in print_local_addresses()
Ddtls-client.c232 uint8_t state; in print_local_addresses()