/third_party/mbedtls/tests/suites/ |
D | test_suite_mdx.function | 10 unsigned char src_str[100]; 13 memset( src_str, 0x00, sizeof src_str ); 16 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 ); 18 ret = mbedtls_md5( src_str, strlen( (char *) src_str ), output ); 30 unsigned char src_str[100]; 33 memset(src_str, 0x00, sizeof src_str); 36 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 ); 38 ret = mbedtls_ripemd160( src_str, strlen( (char *) src_str ), output );
|
D | test_suite_md.function | 133 unsigned char src_str[1000]; 138 memset( src_str, 0x00, 1000 ); 141 strncpy( (char *) src_str, text_src_string, sizeof( src_str ) - 1 ); 146 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str, strlen( (char *) src_str ), output ) ); 155 void md_hex( char * text_md_name, data_t * src_str, data_t * hash ) 168 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str->x, src_str->len, output ) ); 182 unsigned char src_str[1000]; 193 memset( src_str, 0x00, 1000 ); 196 strncpy( (char *) src_str, text_src_string, sizeof(src_str) - 1 ); 198 len = strlen( (char *) src_str ); [all …]
|
D | test_suite_des.function | 18 void des_encrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst ) 28 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str->x, output ) == 0 ); 38 void des_decrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst ) 48 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str->x, output ) == 0 ); 59 data_t * src_str, data_t * dst, int cbc_result ) 69 …TEST_ASSERT( mbedtls_des_crypt_cbc( &ctx, MBEDTLS_DES_ENCRYPT, src_str->len, iv_str->x, src_str->x… 73 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, 84 data_t * src_str, data_t * dst, 95 …TEST_ASSERT( mbedtls_des_crypt_cbc( &ctx, MBEDTLS_DES_DECRYPT, src_str->len, iv_str->x, src_str->x… 99 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, [all …]
|
D | test_suite_poly1305.function | 12 void mbedtls_poly1305( data_t *key, data_t *expected_mac, data_t *src_str ) 22 TEST_ASSERT( mbedtls_poly1305_mac( key->x, src_str->x, 23 src_str->len, mac ) == 0 ); 35 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x, src_str->len ) == 0 ); 48 if( src_str->len >= 1 ) 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 ); 64 if( src_str->len >= 2 ) 68 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x, 1 ) == 0 ); 69 TEST_ASSERT( mbedtls_poly1305_update( &ctx, src_str->x + 1, 1 ) == 0 ); [all …]
|
D | test_suite_shax.function | 8 void mbedtls_sha1( data_t * src_str, data_t * hash ) 15 TEST_ASSERT( mbedtls_sha1( src_str->x, src_str->len, output ) == 0 ); 43 void sha224( data_t * src_str, data_t * hash ) 50 TEST_ASSERT( mbedtls_sha256( src_str->x, src_str->len, output, 1 ) == 0 ); 57 void mbedtls_sha256( data_t * src_str, data_t * hash ) 64 TEST_ASSERT( mbedtls_sha256( src_str->x, src_str->len, output, 0 ) == 0 ); 92 void sha384( data_t * src_str, data_t * hash ) 99 TEST_ASSERT( mbedtls_sha512( src_str->x, src_str->len, output, 1 ) == 0 ); 106 void mbedtls_sha512( data_t * src_str, data_t * hash ) 113 TEST_ASSERT( mbedtls_sha512( src_str->x, src_str->len, output, 0 ) == 0 );
|
D | test_suite_aria.function | 62 void aria_encrypt_ecb( data_t *key_str, data_t *src_str, 76 for( i = 0; i < src_str->len; i += MBEDTLS_ARIA_BLOCKSIZE ) 78 TEST_ASSERT( mbedtls_aria_crypt_ecb( &ctx, src_str->x + i, 92 void aria_decrypt_ecb( data_t *key_str, data_t *src_str, 106 for( i = 0; i < src_str->len; i += MBEDTLS_ARIA_BLOCKSIZE ) 108 TEST_ASSERT( mbedtls_aria_crypt_ecb( &ctx, src_str->x + i, 123 data_t *src_str, data_t *expected_output, 134 src_str->len, iv_str->x, src_str->x, 149 data_t *src_str, data_t *expected_output, 160 src_str->len, iv_str->x, src_str->x, [all …]
|
D | test_suite_camellia.function | 47 void camellia_encrypt_ecb( data_t * key_str, data_t * src_str, 60 …TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->x, output ) == 0… 71 void camellia_decrypt_ecb( data_t * key_str, data_t * src_str, 84 …TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str->x, output ) == 0… 96 data_t * src_str, data_t * dst, int cbc_result ) 106 …mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str->len, iv_str->x, src_str->x, o… 110 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, 121 data_t * src_str, data_t * dst, 132 …mbedtls_camellia_crypt_cbc( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str->len, iv_str->x, src_str->x, o… 136 TEST_ASSERT( mbedtls_test_hexcmp( output, dst->x, src_str->len, [all …]
|
D | test_suite_aes.function | 11 void aes_encrypt_ecb( data_t * key_str, data_t * src_str, 24 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_ENCRYPT, src_str->x, output ) == 0 ); 35 void aes_decrypt_ecb( data_t * key_str, data_t * src_str, 48 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_DECRYPT, src_str->x, output ) == 0 ); 60 data_t * src_str, data_t * dst, 71 …TEST_ASSERT( mbedtls_aes_crypt_cbc( &ctx, MBEDTLS_AES_ENCRYPT, src_str->len, iv_str->x, src_str->x… 76 src_str->len, dst->len ) == 0 ); 86 data_t * src_str, data_t * dst, 96 …TEST_ASSERT( mbedtls_aes_crypt_cbc( &ctx, MBEDTLS_AES_DECRYPT, src_str->len, iv_str->x, src_str->x… 101 src_str->len, dst->len ) == 0 ); [all …]
|
D | test_suite_base64.function | 82 unsigned char src_str[1000]; 86 memset(src_str, 0x00, 1000); 89 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 ); 90 src_len = strlen( (char *) src_str ); 92 TEST_CF_SECRET( src_str, sizeof( src_str ) ); 93 TEST_ASSERT( mbedtls_base64_encode( dst_str, dst_buf_size, &len, src_str, src_len) == result ); 94 TEST_CF_PUBLIC( src_str, sizeof( src_str ) ); 110 unsigned char src_str[1000]; 115 memset(src_str, 0x00, 1000); 118 strncpy( (char *) src_str, src_string, sizeof(src_str) - 1 ); [all …]
|
D | test_suite_chacha20.function | 14 data_t *src_str, 22 TEST_ASSERT( src_str->len == expected_output_str->len ); 29 …TEST_ASSERT( mbedtls_chacha20_crypt( key_str->x, nonce_str->x, counter, src_str->len, src_str->x, … 44 TEST_ASSERT( mbedtls_chacha20_update( &ctx, src_str->len, src_str->x, output ) == 0 ); 58 TEST_ASSERT( mbedtls_chacha20_update( &ctx, 1, src_str->x, output ) == 0 ); 59 TEST_ASSERT( mbedtls_chacha20_update( &ctx, src_str->len - 1, 60 src_str->x + 1, output + 1 ) == 0 );
|
D | test_suite_gcm.function | 167 data_t *key_str, data_t *src_str, 182 TEST_ASSERT( mbedtls_gcm_crypt_and_tag( &ctx, direction, src_str->len, iv_str->x, iv_str->len, 183 … add_str->x, add_str->len, src_str->x, output, tag_len, tag_output ) == gcm_result ); 192 data_t * src_str, data_t * iv_str, 213 …rypt_and_tag( &ctx, MBEDTLS_GCM_ENCRYPT, src_str->len, iv_str->x, iv_str->len, add_str->x, add_str… 215 ASSERT_COMPARE( output, src_str->len, dst->x, dst->len ); 218 for( n1 = 0; n1 <= src_str->len; n1 += 1 ) 224 iv_str, add_str, src_str, 239 data_t * src_str, data_t * iv_str, 259 …edtls_gcm_auth_decrypt( &ctx, src_str->len, iv_str->x, iv_str->len, add_str->x, add_str->len, tag_… [all …]
|
/third_party/gn/src/base/strings/ |
D | utf_string_conversions.cc | 130 bool UTFConversion(const InputString& src_str, DestString* dest_str) { in UTFConversion() argument 131 if (IsStringASCII(src_str)) { in UTFConversion() 132 dest_str->assign(src_str.begin(), src_str.end()); in UTFConversion() 136 dest_str->resize(src_str.length() * in UTFConversion() 144 int32_t src_len32 = static_cast<int32_t>(src_str.length()); in UTFConversion() 147 bool res = DoUTFConversion(src_str.data(), src_len32, dest, &dest_len32); in UTFConversion()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 138 const char * src_str) in init_rc_normal_src() argument 147 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { in init_rc_normal_src() 153 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src() 155 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src() 157 tokens.File.String = src_str + matches[3].rm_so; in init_rc_normal_src() 159 tokens.Index.String = src_str + matches[4].rm_so; in init_rc_normal_src() 161 tokens.Swizzle.String = src_str + matches[5].rm_so; in init_rc_normal_src() 418 char * src_str; in parse_rc_normal_instruction() local 424 src_str = malloc(sizeof(char) * in parse_rc_normal_instruction() 426 strncpy(src_str, tokens.Srcs[j].String, in parse_rc_normal_instruction() [all …]
|
D | rc_test_helpers.h | 42 const char * src_str);
|
/third_party/selinux/libsepol/cil/src/ |
D | cil_internal.h | 570 char *src_str; member 584 char *src_str; member 612 char *src_str; member 641 char *src_str; member 652 char *src_str; member 663 char *src_str; member
|
D | cil_copy_ast.c | 585 new->src_str = orig->src_str; in cil_copy_roleallow() 708 new->src_str = orig->src_str; in cil_copy_roletransition() 725 new->src_str = orig->src_str; in cil_copy_nametypetransition() 744 new->src_str = orig->src_str; in cil_copy_rangetransition() 816 new->src_str = orig->src_str; in cil_copy_avrule() 865 new->src_str = orig->src_str; in cil_copy_type_rule()
|
D | cil_write_ast.c | 1091 fprintf(out, "%s ", datum_or_str(DATUM(roleallow->src), roleallow->src_str)); in cil_write_ast_node() 1099 fprintf(out, "%s ", datum_or_str(DATUM(roletrans->src), roletrans->src_str)); in cil_write_ast_node() 1119 fprintf(out, "%s ", datum_or_str(DATUM(rule->src), rule->src_str)); in cil_write_ast_node() 1137 fprintf(out, "%s ", datum_or_str(DATUM(rule->src), rule->src_str)); in cil_write_ast_node() 1157 fprintf(out, "%s ", datum_or_str(DATUM(rule->src), rule->src_str)); in cil_write_ast_node() 1167 fprintf(out, "%s ", datum_or_str(DATUM(rule->src), rule->src_str)); in cil_write_ast_node() 1178 fprintf(out, "%s ", datum_or_str(DATUM(rule->src), rule->src_str)); in cil_write_ast_node()
|
D | cil.c | 2382 (*nametypetrans)->src_str = NULL; in cil_nametypetransition_init() 2398 (*rangetrans)->src_str = NULL; in cil_rangetransition_init() 2454 (*avrule)->src_str = NULL; in cil_avrule_init() 2478 (*type_rule)->src_str = NULL; in cil_type_rule_init() 2492 (*role_trans)->src_str = NULL; in cil_roletransition_init() 2506 (*roleallow)->src_str = NULL; in cil_roleallow_init()
|
D | cil_resolve_ast.c | 328 rc = cil_resolve_name(current, rule->src_str, CIL_SYM_TYPES, args, &src_datum); in cil_resolve_avrule() 385 rc = cil_resolve_name(current, rule->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_type_rule() 640 rc = cil_resolve_name(current, nametypetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_nametypetransition() 700 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition() 1085 rc = cil_resolve_name(current, roletrans->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roletransition() 1128 rc = cil_resolve_name(current, roleallow->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roleallow()
|
D | cil_build_ast.c | 1894 roletrans->src_str = parse_current->next->data; in cil_gen_roletransition() 1942 roleallow->src_str = parse_current->next->data; in cil_gen_roleallow() 2108 rule->src_str = parse_current->next->data; in cil_gen_avrule() 2267 rule->src_str = parse_current->next->data; in cil_gen_avrulex() 2318 rule->src_str = parse_current->next->data; in cil_gen_type_rule() 3370 nametypetrans->src_str = s1; in cil_gen_typetransition() 3384 rule->src_str = s1; in cil_gen_typetransition() 3444 rangetrans->src_str = parse_current->next->data; in cil_gen_rangetransition()
|
/third_party/spirv-tools/test/diff/ |
D | lcs_test.cpp | 224 const std::string src_str = in TEST() local 314 src.reserve(src_str.length()); in TEST() 317 for (char c : src_str) { in TEST()
|
/third_party/python/Lib/test/support/ |
D | interpreters.py | 92 def run(self, src_str, /, *, channels=None): argument 97 _interpreters.run_string(self._id, src_str, channels)
|
/third_party/vk-gl-cts/external/amber/src/src/ |
D | clspv_helper.cc | 256 const auto& src_str = shader_info->GetShader()->GetData(); in Compile() local 262 if (clspv::CompileFromSourceString(src_str, /* sampler map */ "", options, in Compile()
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | structurally_valid.cc | 585 char* UTF8CoerceToStructurallyValid(StringPiece src_str, char* idst, in UTF8CoerceToStructurallyValid() argument 587 const char* isrc = src_str.data(); in UTF8CoerceToStructurallyValid() 588 const int len = src_str.length(); in UTF8CoerceToStructurallyValid() 589 int n = UTF8SpnStructurallyValid(src_str); in UTF8CoerceToStructurallyValid()
|
/third_party/selinux/libsepol/cil/test/unit/ |
D | test_cil_copy_ast.c | 579 CuAssertStrEquals(tc, ((struct cil_type_rule *)test_ast_node->data)->src_str, test_copy->src_str); in test_cil_copy_type_rule() 613 CuAssertStrEquals(tc, ((struct cil_avrule *)test_ast_node->data)->src_str, test_copy->src_str); in test_cil_copy_avrule()
|