/third_party/openssl/test/ |
D | destest.c | 321 if (!TEST_mem_eq(out, 8, cipher_data[i], 8)) { in test_des_ecb() 326 if (!TEST_mem_eq(in, 8, outin, 8)) { in test_des_ecb() 349 if (!TEST_mem_eq(out, 8, cipher_ecb2[i], 8)) { in test_des_ede_ecb() 354 if (!TEST_mem_eq(in, 8, outin, 8)) { in test_des_ede_ecb() 377 if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32)) in test_des_cbc() 383 return TEST_mem_eq(cbc_in, cbc_data_len, cbc_data, cbc_data_len); in test_des_cbc() 401 if (!TEST_mem_eq(cbc_out, sizeof(xcbc_ok), xcbc_ok, sizeof(xcbc_ok))) in test_des_ede_cbc() 406 return TEST_mem_eq(cbc_data, n, cbc_data, n); in test_des_ede_cbc() 432 if (!TEST_mem_eq(cbc_out, n, cbc3_ok, n)) in test_ede_cbc() 438 return TEST_mem_eq(cbc_in, i, cbc_data, i); in test_ede_cbc() [all …]
|
D | wpackettest.c | 57 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_init() 65 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_init() 73 || !TEST_mem_eq(buf->data, written, simple3, sizeof(simple3))) in test_WPACKET_init() 98 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init() 107 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init() 154 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_max_size() 177 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_start_sub_packet() 187 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_start_sub_packet() 204 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub))) in test_WPACKET_start_sub_packet() 217 || !TEST_mem_eq(buf->data, written, seqsub, sizeof(seqsub))) in test_WPACKET_start_sub_packet() [all …]
|
D | bio_memleak_test.c | 34 if (!TEST_mem_eq(buf, sizeof(str), str, sizeof(str))) in test_bio_memleak() 61 if (!TEST_mem_eq(bufmem->data, bufmem->length, "Hello World\n", 12)) in test_bio_get_mem() 83 if (!TEST_mem_eq(data, 5, "Hello", 5)) in test_bio_new_mem_buf() 91 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_new_mem_buf() 97 if (!TEST_mem_eq(data, 12, "Hello World\n", 12)) in test_bio_new_mem_buf() 118 if (!TEST_mem_eq(data, 5, "Hello", 5)) in test_bio_rdonly_mem_buf() 132 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_rdonly_mem_buf() 138 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_rdonly_mem_buf() 163 if (!TEST_mem_eq(data, 12, "Hello World\n", 12)) in test_bio_rdwr_rdonly() 174 if (!TEST_mem_eq(data, 16, "Hello World\nHi!\n", 16)) in test_bio_rdwr_rdonly() [all …]
|
D | bftest.c | 304 if (!TEST_mem_eq(&(bf_cipher[n][0]), BF_BLOCK, &(data[0]), BF_BLOCK)) in test_bf_ecb_raw() 308 if (!TEST_mem_eq(&(bf_plain[n][0]), BF_BLOCK, &(data[0]), BF_BLOCK)) in test_bf_ecb_raw() 323 if (!TEST_mem_eq(&(cipher_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb() 327 if (!TEST_mem_eq(&(plain_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb() 342 if (!TEST_mem_eq(out, 8, &(key_out[n][0]), 8)) in test_bf_set_key() 363 if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32)) in test_bf_cbc() 368 if (!TEST_mem_eq(cbc_in, len, cbc_data, strlen(cbc_data) + 1)) in test_bf_cbc() 392 if (!TEST_mem_eq(cbc_out, (int)len, cfb64_ok, (int)len)) in test_bf_cfb64() 400 if (!TEST_mem_eq(cbc_in, (int)len, cbc_data, (int)len)) in test_bf_cfb64() 424 if (!TEST_mem_eq(cbc_out, (int)len, ofb64_ok, (int)len)) in test_bf_ofb64() [all …]
|
D | params_api_test.c | 103 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 108 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 113 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra() 163 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int() 169 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int() 190 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_long() 196 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_long() 216 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_uint() 222 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_uint() 243 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_ulong() [all …]
|
D | ideatest.c | 67 if (!TEST_mem_eq(out, IDEA_BLOCK, c, sizeof(c))) in test_idea_ecb() 72 return TEST_mem_eq(out, IDEA_BLOCK, in, sizeof(in)); in test_idea_ecb() 88 return TEST_mem_eq(text, text_len, out, text_len); in test_idea_cbc() 105 if (!TEST_mem_eq(cfb_cipher64, CFB_TEST_SIZE, cfb_buf1, CFB_TEST_SIZE)) in test_idea_cfb64() 114 return TEST_mem_eq(plain, CFB_TEST_SIZE, cfb_buf2, CFB_TEST_SIZE); in test_idea_cfb64()
|
D | test_test.c | 285 if (!TEST(1, TEST_mem_eq(NULL, 0, NULL, 0)) in test_memory() 286 || !TEST(1, TEST_mem_eq(NULL, 1, NULL, 2)) in test_memory() 287 || !TEST(0, TEST_mem_eq(NULL, 0, "xyz", 3)) in test_memory() 288 || !TEST(0, TEST_mem_eq(NULL, 7, "abc", 3)) in test_memory() 290 || !TEST(0, TEST_mem_eq(NULL, 0, "", 0)) in test_memory() 291 || !TEST(0, TEST_mem_eq("", 0, NULL, 0)) in test_memory() 293 || !TEST(0, TEST_mem_eq("xyz", 3, NULL, 0)) in test_memory() 294 || !TEST(0, TEST_mem_eq("xyz", 3, buf, sizeof(buf))) in test_memory() 295 || !TEST(1, TEST_mem_eq("xyz", 4, buf, sizeof(buf)))) in test_memory() 309 return TEST(0, TEST_mem_eq(p, strlen(p), q, strlen(q))); in test_memory_overflow() [all …]
|
D | modes_internal_test.c | 206 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128() 207 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128() 216 || !TEST_mem_eq(cleartext, len, test_input, len) in execute_cts128() 217 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128() 226 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128() 227 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128() 236 || !TEST_mem_eq(cleartext, len, test_input, len) in execute_cts128() 237 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128() 876 && !TEST_mem_eq(out, P.size, C.data, P.size))) in test_gcm128() 887 && !TEST_mem_eq(out, P.size, P.data, P.size))) in test_gcm128()
|
D | rc5test.c | 194 if (!TEST_mem_eq(&RC5cipher[n][0], sizeof(RC5cipher[0]), buf, sizeof(buf))) in test_rc5_ecb() 198 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb() 221 if (!TEST_mem_eq(&rc5_cbc_cipher[n][0], sizeof(rc5_cbc_cipher[0]), in test_rc5_cbc() 227 if (!TEST_mem_eq(&rc5_cbc_plain[n][0], sizeof(rc5_cbc_plain[0]), in test_rc5_cbc()
|
D | casttest.c | 71 if (!TEST_mem_eq(out, sizeof(c[z]), c[z], sizeof(c[z]))) { in cast_test_vector() 77 if (!TEST_mem_eq(out, sizeof(in), in, sizeof(in))) { in cast_test_vector() 103 if (!TEST_mem_eq(out_a, sizeof(c_a), c_a, sizeof(c_a)) in cast_test_iterations() 104 || !TEST_mem_eq(out_b, sizeof(c_b), c_b, sizeof(c_b))) in cast_test_iterations()
|
D | rc4test.c | 72 return TEST_mem_eq(obuf, data_len[i] + 1, output[i], data_len[i] + 1); in test_rc4_encrypt() 83 if (!TEST_mem_eq(obuf, i, output[3], i)) in test_rc4_end_processing() 97 return TEST_mem_eq(obuf, data_len[3] + 1, output[3], data_len[3] + 1); in test_rc4_multi_call() 121 return TEST_mem_eq(md, sizeof(md), expected, sizeof(expected)); in test_rc_bulk()
|
D | tls13secretstest.c | 252 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret() 260 if (!TEST_mem_eq(key, KEYLEN, ref_key, KEYLEN)) in test_secret() 268 if (!TEST_mem_eq(iv, IVLEN, ref_iv, IVLEN)) in test_secret() 301 if (!TEST_mem_eq(s->early_secret, sizeof(early_secret), in test_handshake_secrets() 313 if (!TEST_mem_eq(s->handshake_secret, sizeof(handshake_secret), in test_handshake_secrets() 361 if (!TEST_mem_eq(out_master_secret, master_secret_length, in test_handshake_secrets()
|
D | poly1305_internal_test.c | 1524 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305() 1535 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305() 1549 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305() 1560 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
|
D | sm4_internal_test.c | 61 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE)) in test_sm4_ecb() 67 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected_iter, SM4_BLOCK_SIZE)) in test_sm4_ecb() 73 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, input, SM4_BLOCK_SIZE)) in test_sm4_ecb()
|
D | rand_test.c | 31 || !TEST_mem_eq(outbuf, sizeof(outbuf), entropy1, sizeof(outbuf)) in test_rand() 34 || !TEST_mem_eq(outbuf, sizeof(outbuf), in test_rand() 42 || !TEST_mem_eq(outbuf, sizeof(outbuf), entropy2, sizeof(outbuf))) in test_rand()
|
D | bio_enc_test.c | 89 if (!TEST_mem_eq(out, len, ref, lref)) { in do_bio_cipher() 116 if (!TEST_mem_eq(out, len, ref, lref)) { in do_bio_cipher() 140 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) in do_bio_cipher() 167 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) { in do_bio_cipher() 194 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) { in do_bio_cipher()
|
D | siphash_internal_test.c | 203 || !TEST_mem_eq(out, expectedlen, expected, expectedlen)) in test_siphash() 215 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash() 232 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash() 246 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
|
D | igetest.c | 167 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors() 180 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors() 212 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_bi_ige_vectors() 238 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_dec() 260 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_chaining() 286 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_dec_chaining() 345 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_bi_ige_enc_dec()
|
D | evp_kdf_test.c | 75 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_tls1_prf() 235 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_hkdf() 534 || !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) in test_kdf_pbkdf1() 591 || !TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) in test_kdf_pbkdf2() 845 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_scrypt() 884 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_ss_hash() 937 && TEST_mem_eq(out, sizeof(out), expected, sizeof(expected)); in test_kdf_x963() 993 && TEST_mem_eq(result, sizeof(result), outputs[i], in test_kdf_kbkdf_6803_128() 1059 && TEST_mem_eq(result, sizeof(result), outputs[i], in test_kdf_kbkdf_6803_256() 1246 && TEST_mem_eq(result, sizeof(result), output, sizeof(output)); in test_kdf_kbkdf_8009_prf1() [all …]
|
D | hexstr_test.c | 72 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_sep_to_from() 94 || !TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_to_from() 122 && TEST_mem_eq(buf, len, test->expected, test->expected_len) in test_hexstr_ex_to_from()
|
D | pkey_meth_kdf_test.c | 58 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_tls1_prf() 111 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_hkdf() 185 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_scrypt()
|
D | aesgcmtest.c | 87 && TEST_mem_eq(gcm_pt, sizeof(gcm_pt), pt, ptlen); in do_decrypt() 100 && TEST_mem_eq(gcm_ct, sizeof(gcm_ct), ct, ctlen) in kat_test() 101 && TEST_mem_eq(gcm_tag, sizeof(gcm_tag), tag, taglen) in kat_test()
|
D | dsatest.c | 98 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_q, i)) in dsa_test() 103 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_p, i)) in dsa_test() 108 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_g, i)) in dsa_test() 276 || !TEST_mem_eq(seed_out, len, seed_data, sizeof(seed_data)) in dsa_keygen_test()
|
D | rc2test.c | 56 if (!TEST_mem_eq(&RC2cipher[n][0], 8, buf, 8)) in test_rc2() 60 if (!TEST_mem_eq(&RC2plain[n][0], 8, buf2, 8)) in test_rc2()
|
D | params_conversion_test.c | 205 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 225 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 245 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 265 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 305 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test()
|