/net-tools-3.4.0/mbedtls-2.4.0/library/ |
D | base64.c | 78 const unsigned char *src, size_t slen ) in mbedtls_base64_encode() argument 110 C1 = *src++; in mbedtls_base64_encode() 111 C2 = *src++; in mbedtls_base64_encode() 112 C3 = *src++; in mbedtls_base64_encode() 122 C1 = *src++; in mbedtls_base64_encode() 123 C2 = ( ( i + 1 ) < slen ) ? *src++ : 0; in mbedtls_base64_encode() 145 const unsigned char *src, size_t slen ) in mbedtls_base64_decode() argument 156 while( i < slen && src[i] == ' ' ) in mbedtls_base64_decode() 167 src[i] == '\r' && src[i + 1] == '\n' ) in mbedtls_base64_decode() 170 if( src[i] == '\n' ) in mbedtls_base64_decode() [all …]
|
D | md_wrap.c | 106 static void md2_clone_wrap( void *dst, const void *src ) in md2_clone_wrap() argument 109 (const mbedtls_md2_context *) src ); in md2_clone_wrap() 170 static void md4_clone_wrap( void *dst, const void *src ) in md4_clone_wrap() argument 173 (const mbedtls_md4_context *) src ); in md4_clone_wrap() 232 static void md5_clone_wrap( void *dst, const void *src ) in md5_clone_wrap() argument 235 (const mbedtls_md5_context *) src ); in md5_clone_wrap() 294 static void ripemd160_clone_wrap( void *dst, const void *src ) in ripemd160_clone_wrap() argument 297 (const mbedtls_ripemd160_context *) src ); in ripemd160_clone_wrap() 350 static void sha1_clone_wrap( void *dst, const void *src ) in sha1_clone_wrap() argument 353 (const mbedtls_sha1_context *) src ); in sha1_clone_wrap() [all …]
|
D | ccm.c | 127 #define CTR_CRYPT( dst, src, len ) \ argument 132 dst[i] = src[i] ^ b[i]; 150 const unsigned char *src; in ccm_auth_crypt() local 208 src = add; in ccm_auth_crypt() 215 memcpy( b + 2, src, use_len ); in ccm_auth_crypt() 217 src += use_len; in ccm_auth_crypt() 226 memcpy( b, src, use_len ); in ccm_auth_crypt() 230 src += use_len; in ccm_auth_crypt() 256 src = input; in ccm_auth_crypt() 266 memcpy( b, src, use_len ); in ccm_auth_crypt() [all …]
|
D | rsa.c | 464 static void mgf_mask( unsigned char *dst, size_t dlen, unsigned char *src, in mgf_mask() argument 488 mbedtls_md_update( md_ctx, src, slen ); in mgf_mask() 1478 int mbedtls_rsa_copy( mbedtls_rsa_context *dst, const mbedtls_rsa_context *src ) in mbedtls_rsa_copy() argument 1482 dst->ver = src->ver; in mbedtls_rsa_copy() 1483 dst->len = src->len; in mbedtls_rsa_copy() 1485 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->N, &src->N ) ); in mbedtls_rsa_copy() 1486 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->E, &src->E ) ); in mbedtls_rsa_copy() 1488 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->D, &src->D ) ); in mbedtls_rsa_copy() 1489 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->P, &src->P ) ); in mbedtls_rsa_copy() 1490 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &dst->Q, &src->Q ) ); in mbedtls_rsa_copy() [all …]
|
D | camellia.c | 899 unsigned char src[16]; in mbedtls_camellia_self_test() local 927 memcpy( src, camellia_test_ecb_cipher[u][i], 16 ); in mbedtls_camellia_self_test() 931 memcpy( src, camellia_test_ecb_plain[i], 16 ); in mbedtls_camellia_self_test() 935 mbedtls_camellia_crypt_ecb( &ctx, v, src, buf ); in mbedtls_camellia_self_test() 966 memcpy( src, camellia_test_cbc_iv, 16 ); in mbedtls_camellia_self_test() 979 memcpy( iv , src, 16 ); in mbedtls_camellia_self_test() 980 memcpy( src, camellia_test_cbc_cipher[u][i], 16 ); in mbedtls_camellia_self_test() 984 memcpy( src, camellia_test_cbc_plain[i], 16 ); in mbedtls_camellia_self_test() 988 mbedtls_camellia_crypt_cbc( &ctx, v, 16, iv, src, buf ); in mbedtls_camellia_self_test()
|
D | md.c | 204 const mbedtls_md_context_t *src ) in mbedtls_md_clone() argument 207 src == NULL || src->md_info == NULL || in mbedtls_md_clone() 208 dst->md_info != src->md_info ) in mbedtls_md_clone() 213 dst->md_info->clone_func( dst->md_ctx, src->md_ctx ); in mbedtls_md_clone()
|
D | ecp_curves.c | 799 static inline void add64( mbedtls_mpi_uint *dst, mbedtls_mpi_uint *src, mbedtls_mpi_uint *carry ) in add64() argument 803 for( i = 0; i < 8 / sizeof( mbedtls_mpi_uint ); i++, dst++, src++ ) in add64() 806 *dst += *src; c += ( *dst < *src ); in add64() 903 static inline void add32( uint32_t *dst, uint32_t src, signed char *carry ) in add32() argument 905 *dst += src; in add32() 906 *carry += ( *dst < src ); in add32() 909 static inline void sub32( uint32_t *dst, uint32_t src, signed char *carry ) in sub32() argument 911 *carry -= ( *dst < src ); in sub32() 912 *dst -= src; in sub32()
|
D | md2.c | 100 const mbedtls_md2_context *src ) in mbedtls_md2_clone() argument 102 *dst = *src; in mbedtls_md2_clone()
|
/net-tools-3.4.0/libcoap/ |
D | Makefile.am | 51 src/address.c \ 52 src/async.c \ 53 src/block.c \ 54 src/coap_io.c \ 55 src/coap_time.c \ 56 src/debug.c \ 57 src/encode.c \ 58 src/hashkey.c \ 59 src/mem.c \ 60 src/net.c \ [all …]
|
D | .gitignore | 30 src/.deps/ 31 src/.dirstamp 32 src/.libs/ 33 src/*.o 34 src/*.lo
|
D | Makefile.libcoap | 4 vpath %c $(libcoap_dir)/src
|
/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_base64.function | 55 unsigned char *src = NULL, *res = NULL; 58 src = unhexify_alloc( src_hex, &src_len ); 61 TEST_ASSERT( mbedtls_base64_encode( res, dst_buf_size, &len, src, src_len ) == result ); 69 mbedtls_free( src ); 75 void base64_decode_hex( char *src, char *dst_hex, int dst_buf_size, 84 TEST_ASSERT( mbedtls_base64_decode( res, dst_buf_size, &len, (unsigned char *) src, 85 strlen( src ) ) == result ); 102 unsigned char *src; 105 src = unhexify_alloc( src_hex, &src_len ); 107 TEST_ASSERT( mbedtls_base64_decode( dst, sizeof( dst ), &len, src, src_len ) == result ); [all …]
|
/net-tools-3.4.0/virtual-hub/ |
D | CMakeLists.txt | 5 set(HEADER_FILES src/graphs.h) 10 add_executable(hub src/hub.c src/graphs.c ${HEADER_FILES})
|
/net-tools-3.4.0/libcoap/src/ |
D | coap_io.c | 43 coap_address_t src; /**< the packet's source address */ member 391 memcpy(target, &packet->src, sizeof(coap_address_t)); in coap_packet_copy_source() 432 coap_address_init(&(*packet)->src); /* the remote peer */ in coap_network_read() 440 mhdr.msg_name = &(*packet)->src.addr.st; in coap_network_read() 441 mhdr.msg_namelen = sizeof((*packet)->src.addr.st); in coap_network_read() 485 (*packet)->src.size = mhdr.msg_namelen; in coap_network_read() 486 assert((*packet)->src.size == sizeof(struct sockaddr_in6)); in coap_network_read() 488 (*packet)->src.addr.sin6.sin6_family = SIN6(mhdr.msg_name)->sin6_family; in coap_network_read() 489 (*packet)->src.addr.sin6.sin6_addr = SIN6(mhdr.msg_name)->sin6_addr; in coap_network_read() 490 (*packet)->src.addr.sin6.sin6_port = SIN6(mhdr.msg_name)->sin6_port; in coap_network_read() [all …]
|
/net-tools-3.4.0/ |
D | .gitignore | 44 libcoap/src/.deps/ 45 libcoap/src/.dirstamp 46 libcoap/src/.libs/ 47 libcoap/src/*.o 48 libcoap/src/*.lo
|
/net-tools-3.4.0/mbedtls-2.4.0/include/mbedtls/ |
D | base64.h | 55 const unsigned char *src, size_t slen ); 75 const unsigned char *src, size_t slen );
|
D | md2.h | 75 const mbedtls_md2_context *src );
|
D | ripemd160.h | 75 const mbedtls_ripemd160_context *src );
|
D | sha1.h | 75 const mbedtls_sha1_context *src );
|
D | md4.h | 75 const mbedtls_md4_context *src );
|
D | md5.h | 75 const mbedtls_md5_context *src );
|
D | sha256.h | 76 const mbedtls_sha256_context *src );
|
D | sha512.h | 76 const mbedtls_sha512_context *src );
|
D | md_internal.h | 80 void (*clone_func)( void *dst, const void *src );
|
/net-tools-3.4.0/tinydtls-0.8.2/ |
D | crypto.c | 283 dtls_ccm_encrypt(aes128_ccm_t *ccm_ctx, const unsigned char *src, size_t srclen, in dtls_ccm_encrypt() argument 300 dtls_ccm_decrypt(aes128_ccm_t *ccm_ctx, const unsigned char *src, in dtls_ccm_decrypt() argument 524 dtls_encrypt(const unsigned char *src, size_t length, in dtls_encrypt() argument 540 if (src != buf) in dtls_encrypt() 541 memmove(buf, src, length); in dtls_encrypt() 542 ret = dtls_ccm_encrypt(&ctx->data, src, length, buf, nounce, aad, la); in dtls_encrypt() 550 dtls_decrypt(const unsigned char *src, size_t length, in dtls_decrypt() argument 566 if (src != buf) in dtls_decrypt() 567 memmove(buf, src, length); in dtls_decrypt() 568 ret = dtls_ccm_decrypt(&ctx->data, src, length, buf, nounce, aad, la); in dtls_decrypt()
|