Home
last modified time | relevance | path

Searched refs:TEST_mem_eq (Results 1 – 25 of 46) sorted by relevance

12

/third_party/openssl/test/
Ddestest.c314 if (!TEST_mem_eq(out, 8, cipher_data[i], 8)) { in test_des_ecb()
319 if (!TEST_mem_eq(in, 8, outin, 8)) { in test_des_ecb()
342 if (!TEST_mem_eq(out, 8, cipher_ecb2[i], 8)) { in test_des_ede_ecb()
347 if (!TEST_mem_eq(in, 8, outin, 8)) { in test_des_ede_ecb()
370 if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32)) in test_des_cbc()
376 return TEST_mem_eq(cbc_in, cbc_data_len, cbc_data, cbc_data_len); in test_des_cbc()
394 if (!TEST_mem_eq(cbc_out, sizeof(xcbc_ok), xcbc_ok, sizeof(xcbc_ok))) in test_des_ede_cbc()
399 return TEST_mem_eq(cbc_data, n, cbc_data, n); in test_des_ede_cbc()
425 if (!TEST_mem_eq(cbc_out, n, cbc3_ok, n)) in test_ede_cbc()
431 return TEST_mem_eq(cbc_in, i, cbc_data, i); in test_ede_cbc()
[all …]
Dwpackettest.c64 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_init()
72 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_init()
80 || !TEST_mem_eq(buf->data, written, simple3, sizeof(simple3))) in test_WPACKET_init()
105 || !TEST_mem_eq(sbuf, written, fixed, sizeof(sbuf)) in test_WPACKET_init()
114 || !TEST_mem_eq(sbuf, written, alloc, sizeof(alloc))) in test_WPACKET_init()
161 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_set_max_size()
184 || !TEST_mem_eq(buf->data, written, simple1, sizeof(simple1))) in test_WPACKET_start_sub_packet()
194 || !TEST_mem_eq(buf->data, written, simple2, sizeof(simple2))) in test_WPACKET_start_sub_packet()
211 || !TEST_mem_eq(buf->data, written, nestedsub, sizeof(nestedsub))) in test_WPACKET_start_sub_packet()
224 || !TEST_mem_eq(buf->data, written, seqsub, sizeof(seqsub))) in test_WPACKET_start_sub_packet()
[all …]
Dbio_memleak_test.c36 if (!TEST_mem_eq(buf, sizeof(str), str, sizeof(str))) in test_bio_memleak()
63 if (!TEST_mem_eq(bufmem->data, bufmem->length, "Hello World\n", 12)) in test_bio_get_mem()
85 if (!TEST_mem_eq(data, 5, "Hello", 5)) in test_bio_new_mem_buf()
93 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_new_mem_buf()
99 if (!TEST_mem_eq(data, 12, "Hello World\n", 12)) in test_bio_new_mem_buf()
120 if (!TEST_mem_eq(data, 5, "Hello", 5)) in test_bio_rdonly_mem_buf()
134 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_rdonly_mem_buf()
140 if (!TEST_mem_eq(data, 7, " World\n", 7)) in test_bio_rdonly_mem_buf()
165 if (!TEST_mem_eq(data, 12, "Hello World\n", 12)) in test_bio_rdwr_rdonly()
176 if (!TEST_mem_eq(data, 16, "Hello World\nHi!\n", 16)) in test_bio_rdwr_rdonly()
[all …]
Dbftest.c303 if (!TEST_mem_eq(&(bf_cipher[n][0]), BF_BLOCK, &(data[0]), BF_BLOCK)) in test_bf_ecb_raw()
307 if (!TEST_mem_eq(&(bf_plain[n][0]), BF_BLOCK, &(data[0]), BF_BLOCK)) in test_bf_ecb_raw()
322 if (!TEST_mem_eq(&(cipher_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb()
326 if (!TEST_mem_eq(&(plain_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb()
341 if (!TEST_mem_eq(out, 8, &(key_out[n][0]), 8)) in test_bf_set_key()
362 if (!TEST_mem_eq(cbc_out, 32, cbc_ok, 32)) in test_bf_cbc()
367 if (!TEST_mem_eq(cbc_in, len, cbc_data, strlen(cbc_data) + 1)) in test_bf_cbc()
391 if (!TEST_mem_eq(cbc_out, (int)len, cfb64_ok, (int)len)) in test_bf_cfb64()
399 if (!TEST_mem_eq(cbc_in, (int)len, cbc_data, (int)len)) in test_bf_cfb64()
423 if (!TEST_mem_eq(cbc_out, (int)len, ofb64_ok, (int)len)) in test_bf_ofb64()
[all …]
Dideatest.c60 if (!TEST_mem_eq(out, IDEA_BLOCK, c, sizeof(c))) in test_idea_ecb()
65 return TEST_mem_eq(out, IDEA_BLOCK, in, sizeof(in)); in test_idea_ecb()
81 return TEST_mem_eq(text, text_len, out, text_len); in test_idea_cbc()
98 if (!TEST_mem_eq(cfb_cipher64, CFB_TEST_SIZE, cfb_buf1, CFB_TEST_SIZE)) in test_idea_cfb64()
107 return TEST_mem_eq(plain, CFB_TEST_SIZE, cfb_buf2, CFB_TEST_SIZE); in test_idea_cfb64()
Dcasttest.c65 if (!TEST_mem_eq(out, sizeof(c[z]), c[z], sizeof(c[z]))) { in cast_test_vector()
71 if (!TEST_mem_eq(out, sizeof(in), in, sizeof(in))) { in cast_test_vector()
97 if (!TEST_mem_eq(out_a, sizeof(c_a), c_a, sizeof(c_a)) in cast_test_iterations()
98 || !TEST_mem_eq(out_b, sizeof(c_b), c_b, sizeof(c_b))) in cast_test_iterations()
Drc5test.c187 if (!TEST_mem_eq(&RC5cipher[n][0], sizeof(RC5cipher[0]), buf, sizeof(buf))) in test_rc5_ecb()
191 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb()
212 if (!TEST_mem_eq(&rc5_cbc_cipher[n][0], sizeof(rc5_cbc_cipher[0]), in test_rc5_cbc()
218 if (!TEST_mem_eq(&rc5_cbc_plain[n][0], sizeof(rc5_cbc_plain[0]), in test_rc5_cbc()
Dtest_test.c285 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 …]
Drc4test.c66 return TEST_mem_eq(obuf, data_len[i] + 1, output[i], data_len[i] + 1); in test_rc4_encrypt()
77 if (!TEST_mem_eq(obuf, i, output[3], i)) in test_rc4_end_processing()
91 return TEST_mem_eq(obuf, data_len[3] + 1, output[3], data_len[3] + 1); in test_rc4_multi_call()
115 return TEST_mem_eq(md, sizeof(md), expected, sizeof(expected)); in test_rc_bulk()
Dpoly1305_internal_test.c1525 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1536 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1550 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
1561 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_poly1305()
Dmodes_internal_test.c200 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
201 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128()
210 || !TEST_mem_eq(cleartext, len, test_input, len) in execute_cts128()
211 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128()
220 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
221 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128()
230 || !TEST_mem_eq(cleartext, len, test_input, len) in execute_cts128()
231 || !TEST_mem_eq(iv, sizeof(iv), vector + len - tail, sizeof(iv))) in execute_cts128()
869 && !TEST_mem_eq(out, P.size, C.data, P.size))) in test_gcm128()
880 && !TEST_mem_eq(out, P.size, P.data, P.size))) in test_gcm128()
Dsm4_internal_test.c61 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()
Dtls13secretstest.c244 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret()
252 if (!TEST_mem_eq(key, KEYLEN, ref_key, KEYLEN)) in test_secret()
260 if (!TEST_mem_eq(iv, IVLEN, ref_iv, IVLEN)) in test_secret()
293 if (!TEST_mem_eq(s->early_secret, sizeof(early_secret), in test_handshake_secrets()
305 if (!TEST_mem_eq(s->handshake_secret, sizeof(handshake_secret), in test_handshake_secrets()
353 if (!TEST_mem_eq(out_master_secret, master_secret_length, in test_handshake_secrets()
Dbio_enc_test.c79 if (!TEST_mem_eq(out, len, ref, lref)) { in do_bio_cipher()
101 if (!TEST_mem_eq(out, len, ref, lref)) { in do_bio_cipher()
120 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) in do_bio_cipher()
142 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) { in do_bio_cipher()
164 if (!TEST_mem_eq(inp, DATA_SIZE, out, len)) { in do_bio_cipher()
Dsiphash_internal_test.c204 || !TEST_mem_eq(out, expectedlen, expected, expectedlen)) in test_siphash()
216 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
233 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
247 if (!TEST_mem_eq(out, expectedlen, expected, expectedlen)) { in test_siphash()
Dpkey_meth_kdf_test.c52 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_tls1_prf()
96 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_hkdf()
164 if (!TEST_mem_eq(out, sizeof(out), expected, sizeof(expected))) { in test_kdf_scrypt()
Ddsatest.c94 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_q, i)) in dsa_test()
99 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_p, i)) in dsa_test()
104 if (!TEST_int_eq(i, j) || !TEST_mem_eq(buf, i, out_g, i)) in dsa_test()
Digetest.c162 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors()
175 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors()
207 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_bi_ige_vectors()
233 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_dec()
255 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_enc_chaining()
281 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_ige_dec_chaining()
340 return TEST_mem_eq(checktext, TEST_SIZE, plaintext, TEST_SIZE); in test_bi_ige_enc_dec()
Drc2test.c50 if (!TEST_mem_eq(&RC2cipher[n][0], 8, buf, 8)) in test_rc2()
54 if (!TEST_mem_eq(&RC2plain[n][0], 8, buf2, 8)) in test_rc2()
Dmdc2test.c54 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad1, MDC2_DIGEST_LENGTH) in test_mdc2()
62 || !TEST_mem_eq(md, MDC2_DIGEST_LENGTH, pad2, MDC2_DIGEST_LENGTH)) in test_mdc2()
Dafalgtest.c76 if (!TEST_mem_eq(enc_result, BUFFER_SIZE, ebuf, BUFFER_SIZE)) in test_afalg_aes_cbc()
87 || !TEST_mem_eq(dbuf, BUFFER_SIZE, in, BUFFER_SIZE)) in test_afalg_aes_cbc()
Ddhtest.c207 || !TEST_mem_eq(abuf, aout, bbuf, bout) in dh_test()
208 || !TEST_mem_eq(abuf, aout, cbuf, cout)) in dh_test()
574 if (!TEST_mem_eq(Z1, td->Z_len, td->Z, td->Z_len) in rfc5114_test()
575 || !TEST_mem_eq(Z2, td->Z_len, td->Z, td->Z_len)) in rfc5114_test()
681 || !TEST_mem_eq(abuf, aout, bbuf, bout)) in rfc7919_test()
Devp_extra_test.c569 if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) { in test_evp_init_seq()
578 if (!TEST_mem_eq(t->tag, t->taglen, tag, taglen)) { in test_evp_init_seq()
648 if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) { in test_evp_reset()
664 if (!TEST_mem_eq(t->expected, t->expectedlen, outbuf, outlen1 + outlen2)) { in test_evp_reset()
748 if (!TEST_mem_eq(t->expected1, t->expectedlen1, outbuf, outlen1 + outlen2)) { in test_gcm_reinit()
756 if (!TEST_mem_eq(t->tag1, taglen, tag, taglen)) { in test_gcm_reinit()
782 if (!TEST_mem_eq(t->expected2, t->expectedlen2, outbuf, outlen1 + outlen2)) { in test_gcm_reinit()
790 if (!TEST_mem_eq(t->tag2, taglen, tag, taglen)) { in test_gcm_reinit()
989 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len)) in test_EVP_Enveloped()
1470 || !TEST_mem_eq(in, inlen, buf, len)) in test_set_get_raw_keys_int()
[all …]
Ddrbg_cavs_test.c102 || !TEST_mem_eq(data->retbytes, td->retbyteslen, buff, in single_kat_no_reseed()
167 || !TEST_mem_eq(data->retbytes, td->retbyteslen, buff, in single_kat_pr_false()
235 || !TEST_mem_eq(data->retbytes, td->retbyteslen, buff, in single_kat_pr_true()
Drsa_test.c259 if (!TEST_int_gt(num, 0) || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_simple()
325 if (num <= 0 || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_oaep()

12