/third_party/mbedtls/programs/hash/ |
D | md_hmac_demo.c | 84 #define CHK(expr) \ macro 115 CHK(mbedtls_md_setup(&ctx, info, 1)); in hmac_demo() 116 CHK(mbedtls_md_hmac_starts(&ctx, key_bytes, sizeof(key_bytes))); in hmac_demo() 119 CHK(mbedtls_md_hmac_update(&ctx, msg1_part1, sizeof(msg1_part1))); in hmac_demo() 120 CHK(mbedtls_md_hmac_update(&ctx, msg1_part2, sizeof(msg1_part2))); in hmac_demo() 121 CHK(mbedtls_md_hmac_finish(&ctx, out)); in hmac_demo() 125 CHK(mbedtls_md_hmac_reset(&ctx)); // prepare for new operation in hmac_demo() 126 CHK(mbedtls_md_hmac_update(&ctx, msg2_part1, sizeof(msg2_part1))); in hmac_demo() 127 CHK(mbedtls_md_hmac_update(&ctx, msg2_part2, sizeof(msg2_part2))); in hmac_demo() 128 CHK(mbedtls_md_hmac_finish(&ctx, out)); in hmac_demo() [all …]
|
/third_party/mbedtls/programs/cipher/ |
D | cipher_aead_demo.c | 106 #define CHK(expr) \ macro 152 CHK(mbedtls_cipher_setup(ctx, in aead_prepare() 157 CHK(mbedtls_cipher_setkey(ctx, key_bytes, key_len, MBEDTLS_ENCRYPT)); in aead_prepare() 200 CHK(mbedtls_cipher_set_iv(ctx, iv, iv_len)); in aead_encrypt() 201 CHK(mbedtls_cipher_reset(ctx)); in aead_encrypt() 202 CHK(mbedtls_cipher_update_ad(ctx, ad, ad_len)); in aead_encrypt() 203 CHK(mbedtls_cipher_update(ctx, part1, part1_len, p, &olen)); in aead_encrypt() 205 CHK(mbedtls_cipher_update(ctx, part2, part2_len, p, &olen)); in aead_encrypt() 207 CHK(mbedtls_cipher_finish(ctx, p, &olen)); in aead_encrypt() 209 CHK(mbedtls_cipher_write_tag(ctx, p, tag_len)); in aead_encrypt() [all …]
|
/third_party/mbedtls/library/ |
D | hmac_drbg.c | 570 #define CHK(c) if ((c) != 0) \ macro 596 CHK(mbedtls_hmac_drbg_seed(&ctx, md_info, in mbedtls_hmac_drbg_self_test() 600 CHK(mbedtls_hmac_drbg_random(&ctx, buf, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test() 601 CHK(mbedtls_hmac_drbg_random(&ctx, buf, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test() 602 CHK(memcmp(buf, result_pr, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test() 621 CHK(mbedtls_hmac_drbg_seed(&ctx, md_info, in mbedtls_hmac_drbg_self_test() 624 CHK(mbedtls_hmac_drbg_reseed(&ctx, NULL, 0)); in mbedtls_hmac_drbg_self_test() 625 CHK(mbedtls_hmac_drbg_random(&ctx, buf, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test() 626 CHK(mbedtls_hmac_drbg_random(&ctx, buf, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test() 627 CHK(memcmp(buf, result_nopr, OUTPUT_LEN)); in mbedtls_hmac_drbg_self_test()
|
D | ctr_drbg.c | 814 #define CHK(c) if ((c) != 0) \ macro 843 CHK(mbedtls_ctr_drbg_seed(&ctx, in mbedtls_ctr_drbg_self_test() 848 CHK(mbedtls_ctr_drbg_random(&ctx, buf, SELF_TEST_OUTPUT_DISCARD_LENGTH)); in mbedtls_ctr_drbg_self_test() 849 CHK(mbedtls_ctr_drbg_random(&ctx, buf, sizeof(result_pr))); in mbedtls_ctr_drbg_self_test() 850 CHK(memcmp(buf, result_pr, sizeof(result_pr))); in mbedtls_ctr_drbg_self_test() 870 CHK(mbedtls_ctr_drbg_seed(&ctx, in mbedtls_ctr_drbg_self_test() 874 CHK(mbedtls_ctr_drbg_reseed(&ctx, NULL, 0)); in mbedtls_ctr_drbg_self_test() 875 CHK(mbedtls_ctr_drbg_random(&ctx, buf, SELF_TEST_OUTPUT_DISCARD_LENGTH)); in mbedtls_ctr_drbg_self_test() 876 CHK(mbedtls_ctr_drbg_random(&ctx, buf, sizeof(result_nopr))); in mbedtls_ctr_drbg_self_test() 877 CHK(memcmp(buf, result_nopr, sizeof(result_nopr))); in mbedtls_ctr_drbg_self_test()
|
/third_party/mbedtls/tests/src/test_helpers/ |
D | ssl_helpers.c | 1120 CHK(cipher_info != NULL); in mbedtls_test_ssl_build_transforms() 1121 CHK(cipher_info->iv_size <= 16); in mbedtls_test_ssl_build_transforms() 1122 CHK(cipher_info->key_bitlen % 8 == 0); in mbedtls_test_ssl_build_transforms() 1129 CHK((key0 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms() 1130 CHK((key1 = mbedtls_calloc(1, keylen + 1)) != NULL); in mbedtls_test_ssl_build_transforms() 1136 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms() 1137 CHK(mbedtls_cipher_setup(&t_in->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms() 1138 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_enc, cipher_info) == 0); in mbedtls_test_ssl_build_transforms() 1139 CHK(mbedtls_cipher_setup(&t_out->cipher_ctx_dec, cipher_info) == 0); in mbedtls_test_ssl_build_transforms() 1143 CHK(mbedtls_cipher_set_padding_mode(&t_in->cipher_ctx_enc, in mbedtls_test_ssl_build_transforms() [all …]
|
/third_party/ltp/include/ |
D | tst_fuzzy_sync.h | 196 #define CHK(param, low, hi, def) do { \ macro 215 CHK(avg_alpha, 0, 1, 0.25); in tst_fzsync_pair_init() 216 CHK(min_samples, 20, INT_MAX, 1024); in tst_fzsync_pair_init() 217 CHK(max_dev_ratio, 0, 1, 0.1); in tst_fzsync_pair_init() 218 CHK(exec_time_p, 0, 1, 0.5); in tst_fzsync_pair_init() 219 CHK(exec_loops, 20, INT_MAX, 3000000); in tst_fzsync_pair_init() 224 #undef CHK
|
/third_party/icu/icu4c/source/data/translit/ |
D | blt_blt_FONIPA.txt | 54 $CHK = [ꪜ ꪝ ꪞ ꪟ ꪔ ꪕ ꪖ ꪗ ꪀ ꪁ ꪂ ꪃ ꪮ ꪯ]; 61 $LO $W? $V12 {($CHK)} → $1 ˧˥; # Tone class 2: High-rising tone 62 $LO $W? {($V3 $CHK)} → $1 ˧˥; # Tone class 2: High-rising tone 63 $HI $W? $V12 {($CHK)} → $1 ˦; # Tone class 5: High-mid tone 64 $HI $W? {($V3 $CHK)} → $1 ˦; # Tone class 5: High-mid tone
|
/third_party/skia/third_party/externals/icu/source/data/translit/ |
D | blt_blt_FONIPA.txt | 54 $CHK = [ꪜ ꪝ ꪞ ꪟ ꪔ ꪕ ꪖ ꪗ ꪀ ꪁ ꪂ ꪃ ꪮ ꪯ]; 61 $LO $W? $V12 {($CHK)} → $1 ˧˥; # Tone class 2: High-rising tone 62 $LO $W? {($V3 $CHK)} → $1 ˧˥; # Tone class 2: High-rising tone 63 $HI $W? $V12 {($CHK)} → $1 ˦; # Tone class 5: High-mid tone 64 $HI $W? {($V3 $CHK)} → $1 ˦; # Tone class 5: High-mid tone
|
/third_party/ltp/scripts/ |
D | checkpatch.pl | 2422 sub CHK { subroutine 3288 CHK("INVALID_UTF8", 3342 $msg_level = \&CHK if ($file); 3445 $msg_level = \&CHK if ($file); 3623 $msg_level = \&CHK if ($file); 3710 $msg_level = \&CHK if ($file); 3764 if (CHK("ASSIGNMENT_CONTINUATIONS", 3776 if (CHK("LOGICAL_CONTINUATIONS", 3820 if (CHK("PARENTHESIS_ALIGNMENT", 3839 if (CHK("SPACING", [all …]
|
/third_party/protobuf/php/ext/google/protobuf/ |
D | php-upb.c | 801 #define CHK(x) do { if (!(x)) { return false; } } while(0) macro 836 CHK(new_buf); in upb_encode_growbuffer() 852 CHK(UPB_LIKELY((size_t)(e->ptr - e->buf) >= bytes) || in upb_encode_reserve() 862 CHK(upb_encode_reserve(e, len)); in upb_put_bytes() 880 CHK(upb_encode_reserve(e, UPB_PB_VARINT_MAX_LEN)); in upb_put_varint() 913 CHK(upb_put_bytes(e, ptr, elem_size) && upb_put_varint(e, tag)); in upb_put_fixedarray() 1020 CHK(upb_put_varint(e, encode)); \ in upb_encode_array() 1021 if (tag) CHK(upb_put_varint(e, tag)); \ in upb_encode_array() 1023 if (!tag) CHK(upb_put_varint(e, e->limit - e->ptr - pre_len)); \ in upb_encode_array() 1034 CHK(upb_put_fixedarray(e, arr, sizeof(double), TAG(UPB_WIRE_TYPE_64BIT))); in upb_encode_array() [all …]
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | upb.c | 744 #define CHK(x) do { if (!(x)) { return false; } } while(0) macro 779 CHK(new_buf); in upb_encode_growbuffer() 795 CHK(UPB_LIKELY((size_t)(e->ptr - e->buf) >= bytes) || in upb_encode_reserve() 805 CHK(upb_encode_reserve(e, len)); in upb_put_bytes() 823 CHK(upb_encode_reserve(e, UPB_PB_VARINT_MAX_LEN)); in upb_put_varint() 868 CHK(upb_put_bytes(e, ptr, elem_size) && upb_put_varint(e, tag)); in upb_put_fixedarray() 975 CHK(upb_put_varint(e, encode)); \ in upb_encode_array() 976 if (tag) CHK(upb_put_varint(e, tag)); \ in upb_encode_array() 978 if (!tag) CHK(upb_put_varint(e, e->limit - e->ptr - pre_len)); \ in upb_encode_array() 989 CHK(upb_put_fixedarray(e, arr, sizeof(double), TAG(UPB_WIRE_TYPE_64BIT))); in upb_encode_array() [all …]
|
/third_party/python/Lib/test/ |
D | test_coroutines.py | 854 CHK = 0 858 nonlocal CHK 863 CHK += 1 873 self.assertEqual(CHK, 0) 875 self.assertEqual(CHK, 1) 881 self.assertEqual(CHK, 1)
|
/third_party/mbedtls/tests/include/test/ |
D | ssl_helpers.h | 452 #define CHK(x) \ macro
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/opentype/ |
D | LanguageTag.java | 68 CHK("Chukchi", "ckt"), enumConstant
|