/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/include/everest/kremlin/ |
D | c_endianness.h | 21 # define htole64(x) OSSwapHostToLittleInt64(x) argument 22 # define le64toh(x) OSSwapLittleToHostInt64(x) argument 23 # define htobe64(x) OSSwapHostToBigInt64(x) argument 24 # define be64toh(x) OSSwapBigToHostInt64(x) argument 26 # define htole16(x) OSSwapHostToLittleInt16(x) argument 27 # define le16toh(x) OSSwapLittleToHostInt16(x) argument 28 # define htobe16(x) OSSwapHostToBigInt16(x) argument 29 # define be16toh(x) OSSwapBigToHostInt16(x) argument 31 # define htole32(x) OSSwapHostToLittleInt32(x) argument 32 # define le32toh(x) OSSwapLittleToHostInt32(x) argument [all …]
|
/openthread-2.7.6/tests/scripts/thread-cert/pktverify/ |
D | bytes.py | 90 return bytearray(int(x, 16) for x in s.split(':')) 101 return bytearray(int(x[i:i + 2], 16) for x in s.split(':') for i in (0, 2)) 112 x = super().__getitem__(item) 113 if isinstance(x, bytearray): 114 return Bytes(x) 116 return x 134 x = Bytes(b"\x01\x02\x03\x04") variable 135 … assert eval(repr(x)) == x, repr(x) # representation of Bytes should be able to be evaluated back 136 assert x == str(x), (x, str(x)) 138 assert x.format_compact() == "01020304", x.format_compact() [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/3rdparty/everest/library/kremlib/ |
D | FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.c | 15 uint64_t x = a ^ b; in FStar_UInt64_eq_mask() local 16 uint64_t minus_x = ~x + (uint64_t)1U; in FStar_UInt64_eq_mask() 17 uint64_t x_or_minus_x = x | minus_x; in FStar_UInt64_eq_mask() 24 uint64_t x = a; in FStar_UInt64_gte_mask() local 26 uint64_t x_xor_y = x ^ y; in FStar_UInt64_gte_mask() 27 uint64_t x_sub_y = x - y; in FStar_UInt64_gte_mask() 30 uint64_t x_xor_q = x ^ q; in FStar_UInt64_gte_mask() 37 uint32_t x = a ^ b; in FStar_UInt32_eq_mask() local 38 uint32_t minus_x = ~x + (uint32_t)1U; in FStar_UInt32_eq_mask() 39 uint32_t x_or_minus_x = x | minus_x; in FStar_UInt32_eq_mask() [all …]
|
/openthread-2.7.6/tests/scripts/thread-cert/ |
D | test_dnssd.py | 130 'srv_ttl': lambda x: x > 0, 131 'txt_ttl': lambda x: x > 0, 132 'aaaa_ttl': lambda x: x > 0, 142 'srv_ttl': lambda x: x > 0, 143 'txt_ttl': lambda x: x > 0, 144 'aaaa_ttl': lambda x: x > 0, 154 'srv_ttl': lambda x: x > 0, 155 'txt_ttl': lambda x: x > 0, 156 'aaaa_ttl': lambda x: x > 0, 166 'srv_ttl': lambda x: x > 0, [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_des.function | 13 TEST_ASSERT( mbedtls_des_key_check_weak( key->x ) == ret ); 27 mbedtls_des_setkey_enc( &ctx, key_str->x ); 28 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str->x, output ) == 0 ); 30 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 47 mbedtls_des_setkey_dec( &ctx, key_str->x ); 48 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str->x, output ) == 0 ); 50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 68 mbedtls_des_setkey_enc( &ctx, key_str->x ); 69 …edtls_des_crypt_cbc( &ctx, MBEDTLS_DES_ENCRYPT, src_str->len, iv_str->x, src_str->x, output ) == c… 73 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, [all …]
|
D | test_suite_xtea.function | 20 mbedtls_xtea_setup( &ctx, key_str->x ); 21 TEST_ASSERT( mbedtls_xtea_crypt_ecb( &ctx, MBEDTLS_XTEA_ENCRYPT, src_str->x, output ) == 0 ); 23 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 36 mbedtls_xtea_setup( &ctx, key_str->x ); 37 TEST_ASSERT( mbedtls_xtea_crypt_ecb( &ctx, MBEDTLS_XTEA_DECRYPT, src_str->x, output ) == 0 ); 39 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 53 mbedtls_xtea_setup( &ctx, key_str->x ); 54 TEST_ASSERT( mbedtls_xtea_crypt_cbc( &ctx, MBEDTLS_XTEA_ENCRYPT, src_str->len, iv_str->x, 55 src_str->x, output ) == 0 ); 57 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, [all …]
|
D | test_suite_poly1305.function | 22 TEST_ASSERT( mbedtls_poly1305_mac( key->x, src_str->x, 26 expected_mac->x, expected_mac->len ); 33 TEST_ASSERT( mbedtls_poly1305_starts( &ctx, key->x ) == 0 ); 35 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x, src_str->len ) == 0 ); 40 expected_mac->x, expected_mac->len ); 50 TEST_ASSERT( mbedtls_poly1305_starts( &ctx, key->x ) == 0 ); 52 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x, 1 ) == 0 ); 53 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x + 1, src_str->len - 1 ) == 0 ); 58 expected_mac->x, expected_mac->len ); 66 TEST_ASSERT( mbedtls_poly1305_starts( &ctx, key->x ) == 0 ); [all …]
|
D | test_suite_blowfish.function | 179 TEST_ASSERT( mbedtls_blowfish_setkey( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 182 …TEST_ASSERT( mbedtls_blowfish_crypt_ecb( &ctx, MBEDTLS_BLOWFISH_ENCRYPT, src_str->x, output ) == 0… 184 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 203 TEST_ASSERT( mbedtls_blowfish_setkey( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 206 …TEST_ASSERT( mbedtls_blowfish_crypt_ecb( &ctx, MBEDTLS_BLOWFISH_DECRYPT, src_str->x, output ) == 0… 208 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 8, dst->len ) == 0 ); 228 mbedtls_blowfish_setkey( &ctx, key_str->x, key_str->len * 8 ); 230 …ish_crypt_cbc( &ctx, MBEDTLS_BLOWFISH_ENCRYPT, src_str->len , iv_str->x, src_str->x, output ) == c… 234 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 255 mbedtls_blowfish_setkey( &ctx, key_str->x, key_str->len * 8 ); [all …]
|
D | test_suite_aria.function | 219 TEST_ASSERT( mbedtls_aria_setkey_enc( &ctx, key_str->x, key_str->len * 8 ) 225 TEST_ASSERT( mbedtls_aria_crypt_ecb( &ctx, src_str->x + i, 230 expected_output->x, expected_output->len ); 249 TEST_ASSERT( mbedtls_aria_setkey_dec( &ctx, key_str->x, key_str->len * 8 ) 255 TEST_ASSERT( mbedtls_aria_crypt_ecb( &ctx, src_str->x + i, 260 expected_output->x, expected_output->len ); 279 mbedtls_aria_setkey_enc( &ctx, key_str->x, key_str->len * 8 ); 281 src_str->len, iv_str->x, src_str->x, 286 expected_output->x, expected_output->len ); 305 mbedtls_aria_setkey_dec( &ctx, key_str->x, key_str->len * 8 ); [all …]
|
D | test_suite_camellia.function | 187 … TEST_ASSERT( mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 190 …TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->x, output ) == 0… 192 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 ); 211 … TEST_ASSERT( mbedtls_camellia_setkey_dec( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 214 …TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str->x, output ) == 0… 216 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 ); 235 mbedtls_camellia_setkey_enc( &ctx, key_str->x, key_str->len * 8 ); 236 …llia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->len, iv_str->x, src_str->x, output) == cb… 240 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, 261 mbedtls_camellia_setkey_dec( &ctx, key_str->x, key_str->len * 8 ); [all …]
|
D | test_suite_chacha20.function | 29 …TEST_ASSERT( mbedtls_chacha20_crypt( key_str->x, nonce_str->x, counter, src_str->len, src_str->x, … 32 expected_output_str->x, expected_output_str->len ); 39 TEST_ASSERT( mbedtls_chacha20_setkey( &ctx, key_str->x ) == 0 ); 41 TEST_ASSERT( mbedtls_chacha20_starts( &ctx, nonce_str->x, counter ) == 0 ); 44 TEST_ASSERT( mbedtls_chacha20_update( &ctx, src_str->len, src_str->x, output ) == 0 ); 47 expected_output_str->x, expected_output_str->len ); 55 TEST_ASSERT( mbedtls_chacha20_starts( &ctx, nonce_str->x, counter ) == 0 ); 58 TEST_ASSERT( mbedtls_chacha20_update( &ctx, 1, src_str->x, output ) == 0 ); 60 src_str->x + 1, output + 1 ) == 0 ); 63 expected_output_str->x, expected_output_str->len );
|
D | test_suite_psa_crypto_hash.function | 26 input->x, input->len ) ); 30 ASSERT_COMPARE( expected_hash->x, expected_hash->len, 49 input->x, 52 expected_hash->x, 79 input->x, len ) ); 82 input->x + len, input->len - len ) ); 84 input->x + len, input->len - len ) ); 89 ASSERT_COMPARE( expected_hash->x, expected_hash->len, 95 ASSERT_COMPARE( expected_hash->x, expected_hash->len,
|
D | test_suite_pkcs5.function | 24 … TEST_ASSERT( mbedtls_pkcs5_pbkdf2_hmac( &ctx, pw_str->x, pw_str->len, salt_str->x, salt_str->len, 27 TEST_ASSERT( mbedtls_test_hexcmp( key, result_key_string->x, 44 params.p = params_hex->x; 50 pw->x, pw->len, data->x, data->len, my_out ); 54 TEST_ASSERT( memcmp( my_out, ref_out->x, ref_out->len ) == 0 );
|
D | test_suite_aes.function | 21 TEST_ASSERT( mbedtls_aes_setkey_enc( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 24 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_ENCRYPT, src_str->x, output ) == 0 ); 26 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 ); 45 TEST_ASSERT( mbedtls_aes_setkey_dec( &ctx, key_str->x, key_str->len * 8 ) == setkey_result ); 48 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_DECRYPT, src_str->x, output ) == 0 ); 50 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 16, dst->len ) == 0 ); 70 mbedtls_aes_setkey_enc( &ctx, key_str->x, key_str->len * 8 ); 71 …edtls_aes_crypt_cbc( &ctx, MBEDTLS_AES_ENCRYPT, src_str->len, iv_str->x, src_str->x, output ) == c… 75 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 95 mbedtls_aes_setkey_dec( &ctx, key_str->x, key_str->len * 8 ); [all …]
|
D | test_suite_gcm.function | 26 TEST_ASSERT( mbedtls_gcm_setkey( &ctx, cipher_id, key_str->x, key_str->len * 8 ) == 0 ); 27 TEST_ASSERT( mbedtls_gcm_crypt_and_tag( &ctx, direction, src_str->len, iv_str->x, iv_str->len, 28 … add_str->x, add_str->len, src_str->x, output, tag_len, tag_output ) == gcm_result ); 53 … TEST_ASSERT( mbedtls_gcm_setkey( &ctx, cipher_id, key_str->x, key_str->len * 8 ) == init_result ); 56 … &ctx, MBEDTLS_GCM_ENCRYPT, src_str->len, iv_str->x, iv_str->len, add_str->x, add_str->len, src_st… 58 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, 60 TEST_ASSERT( mbedtls_test_hexcmp( tag_output, tag->x, 86 … TEST_ASSERT( mbedtls_gcm_setkey( &ctx, cipher_id, key_str->x, key_str->len * 8 ) == init_result ); 89 …th_decrypt( &ctx, src_str->len, iv_str->x, iv_str->len, add_str->x, add_str->len, tag_str->x, tag_… 99 TEST_ASSERT( mbedtls_test_hexcmp( output, pt_result->x,
|
D | test_suite_hmac_drbg.function | 190 p_entropy.p = entropy->x; 197 memcpy( data, entropy->x, p_entropy.len ); 198 memcpy( data + p_entropy.len, custom->x, custom->len ); 202 add1->x, add1->len ) == 0 ); 204 add2->x, add2->len ) == 0 ); 209 TEST_ASSERT( memcmp( my_output, output->x, output->len ) == 0 ); 213 custom->x, custom->len ) == 0 ); 215 add1->x, add1->len ) == 0 ); 217 add2->x, add2->len ) == 0 ); 218 TEST_ASSERT( memcmp( my_output, output->x, output->len ) == 0 ); [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/library/ |
D | arc4.c | 68 ctx->x = 0; in mbedtls_arc4_setup() 94 int x, y, a, b; in mbedtls_arc4_crypt() local 98 x = ctx->x; in mbedtls_arc4_crypt() 104 x = ( x + 1 ) & 0xFF; a = m[x]; in mbedtls_arc4_crypt() 107 m[x] = (unsigned char) b; in mbedtls_arc4_crypt() 114 ctx->x = x; in mbedtls_arc4_crypt()
|
D | sha512.c | 34 #define UL64(x) x##ui64 argument 36 #define UL64(x) x##ULL argument 244 #define SHR(x,n) ((x) >> (n)) in mbedtls_internal_sha512_process() argument 245 #define ROTR(x,n) (SHR((x),(n)) | ((x) << (64 - (n)))) in mbedtls_internal_sha512_process() argument 247 #define S0(x) (ROTR(x, 1) ^ ROTR(x, 8) ^ SHR(x, 7)) in mbedtls_internal_sha512_process() argument 248 #define S1(x) (ROTR(x,19) ^ ROTR(x,61) ^ SHR(x, 6)) in mbedtls_internal_sha512_process() argument 250 #define S2(x) (ROTR(x,28) ^ ROTR(x,34) ^ ROTR(x,39)) in mbedtls_internal_sha512_process() argument 251 #define S3(x) (ROTR(x,14) ^ ROTR(x,18) ^ ROTR(x,41)) in mbedtls_internal_sha512_process() argument 253 #define F0(x,y,z) (((x) & (y)) | ((z) & ((x) | (y)))) in mbedtls_internal_sha512_process() argument 254 #define F1(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) in mbedtls_internal_sha512_process() argument [all …]
|
D | base64.c | 142 uint32_t j, x; in mbedtls_base64_decode() local 149 x = 0; in mbedtls_base64_decode() 153 ++x; in mbedtls_base64_decode() 168 if( x != 0 ) in mbedtls_base64_decode() 202 for( j = 3, n = x = 0, p = dst; i > 0; i--, src++ ) in mbedtls_base64_decode() 208 x = ( x << 6 ) | ( base64_dec_map[*src] & 0x3F ); in mbedtls_base64_decode() 213 if( j > 0 ) *p++ = (unsigned char)( x >> 16 ); in mbedtls_base64_decode() 214 if( j > 1 ) *p++ = (unsigned char)( x >> 8 ); in mbedtls_base64_decode() 215 if( j > 2 ) *p++ = (unsigned char)( x ); in mbedtls_base64_decode()
|
D | sha256.c | 170 #define SHR(x,n) (((x) & 0xFFFFFFFF) >> (n)) argument 171 #define ROTR(x,n) (SHR(x,n) | ((x) << (32 - (n)))) argument 173 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) argument 174 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) argument 176 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) argument 177 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) argument 179 #define F0(x,y,z) (((x) & (y)) | ((z) & ((x) | (y)))) argument 180 #define F1(x,y,z) ((z) ^ ((x) & ((y) ^ (z)))) argument 188 #define P(a,b,c,d,e,f,g,h,x,K) \ argument 191 local.temp1 = (h) + S3(e) + F1((e),(f),(g)) + (K) + (x); \
|
D | aria.c | 95 static inline uint32_t aria_p1( uint32_t x ) in aria_p1() argument 98 __asm( "rev16 %0, %1" : "=l" (r) : "l" (x) ); in aria_p1() 104 static inline uint32_t aria_p1( uint32_t x ) in aria_p1() argument 116 #define ARIA_P1(x) ARIA_P2( ARIA_P3( x ) ) argument 120 #define ARIA_P1(x) ((((x) >> 8) & 0x00FF00FF) ^ (((x) & 0x00FF00FF) << 8)) argument 130 #define ARIA_P2(x) (((x) >> 16) ^ ((x) << 16)) argument 146 static inline uint32_t aria_p3( uint32_t x ) in aria_p3() argument 149 __asm( "rev %0, %1" : "=l" (r) : "l" (x) ); in aria_p3() 155 static inline uint32_t aria_p3( uint32_t x ) in aria_p3() argument 166 static inline uint32_t aria_p3( uint32_t x ) in aria_p3() argument [all …]
|
/openthread-2.7.6/third_party/mbedtls/repo/scripts/ |
D | find-mem-leak.cocci | 2 expression x, y; 5 x = mbedtls_calloc(...); 8 * if (x == NULL || y == NULL) 12 expression x, y; 16 * (x = mbedtls_calloc(...)) == NULL
|
/openthread-2.7.6/third_party/nlbuild-autotools/repo/third_party/autoconf/ |
D | test-driver | 77 test x"$test_name" = x && missing_opts="$missing_opts --test-name" 78 test x"$log_file" = x && missing_opts="$missing_opts --log-file" 79 test x"$trs_file" = x && missing_opts="$missing_opts --trs-file" 80 if test x"$missing_opts" != x; then
|
/openthread-2.7.6/third_party/jlink/SEGGER_RTT_V640/Syscalls/ |
D | SEGGER_RTT_Syscalls_SES.c | 147 static int _putchar(int x, __printf_tag_ptr ctx) { in _putchar() argument 149 SEGGER_RTT_Write(0, (char *)&x, 1); in _putchar() 150 return x; in _putchar() 239 int __putchar(int x, __printf_tag_ptr ctx) { in __putchar() argument 241 SEGGER_RTT_Write(0, (char *)&x, 1); in __putchar() 242 return x; in __putchar()
|
/openthread-2.7.6/third_party/mbedtls/repo/tests/include/test/ |
D | macros.h | 102 #define MIN( x, y ) ( ( x ) < ( y ) ? ( x ) : ( y ) ) 111 #define MAX( x, y ) ( ( x ) > ( y ) ? ( x ) : ( y ) )
|