Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 10 of 10) sorted by relevance

/openssl/test/
H A Drc5test.c188 unsigned char buf[8], buf2[8]; in test_rc5_ecb() local
197 RC5_32_ecb_encrypt(buf, buf2, &key, RC5_DECRYPT); in test_rc5_ecb()
198 if (!TEST_mem_eq(&RC5plain[n][0], sizeof(RC5cipher[0]), buf2, sizeof(buf2))) in test_rc5_ecb()
209 unsigned char buf[8], buf2[8], ivb[8]; in test_rc5_cbc() local
226 RC5_32_cbc_encrypt(buf, buf2, 8, &key, &ivb[0], RC5_DECRYPT); in test_rc5_cbc()
228 buf2, sizeof(buf2))) in test_rc5_cbc()
H A Drc2test.c51 unsigned char buf[8], buf2[8]; in test_rc2() local
59 RC2_ecb_encrypt(buf, buf2, &key, RC2_DECRYPT); in test_rc2()
60 if (!TEST_mem_eq(&RC2plain[n][0], 8, buf2, 8)) in test_rc2()
H A Dpackettest.c243 char buf1[10], buf2[10]; in test_PACKET_strndup() local
249 memset(buf2, 'y', 10); in test_PACKET_strndup()
250 buf2[5] = '\0'; in test_PACKET_strndup()
256 || !TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf2, 10)) in test_PACKET_strndup()
259 || !TEST_str_eq(data, buf2)) in test_PACKET_strndup()
270 char buf1[10], buf2[10]; in test_PACKET_contains_zero_byte() local
274 memset(buf2, 'y', 10); in test_PACKET_contains_zero_byte()
275 buf2[5] = '\0'; in test_PACKET_contains_zero_byte()
279 || !TEST_true(PACKET_buf_init(&pkt, (unsigned char*)buf2, 10)) in test_PACKET_contains_zero_byte()
H A Ddrbgtest.c805 unsigned char buf1[51], buf2[sizeof(buf1)]; in test_rand_prediction_resistance() local
863 if (!TEST_true(EVP_RAND_generate(z, buf2, sizeof(buf2), 0, 1, NULL, 0)) in test_rand_prediction_resistance()
867 || !TEST_mem_ne(buf1, sizeof(buf1), buf2, sizeof(buf2))) in test_rand_prediction_resistance()
H A Dquicapitest.c434 char buf1[512], buf2[512]; in compare_with_file() local
455 while (BIO_gets(membio, buf2, sizeof(buf2)) > 0) in compare_with_file()
456 if (BIO_puts(newfile, buf2) <= 0) { in compare_with_file()
465 if (BIO_gets(membio, buf2, sizeof(buf2)) <= 0) { in compare_with_file()
470 strip_line_ends(buf2); in compare_with_file()
471 if (strlen(buf1) != strlen(buf2)) { in compare_with_file()
474 TEST_info("%s", buf2); in compare_with_file()
480 buf2[i] = '?'; in compare_with_file()
482 if (!TEST_str_eq(buf1, buf2)) in compare_with_file()
H A Dparams_api_test.c598 char buf[100], buf2[100], *bufp, *bufp2; in test_param_construct() local
692 bufp = buf2; in test_param_construct()
693 if (!TEST_true(OSSL_PARAM_get_utf8_string(cp, &bufp, sizeof(buf2))) in test_param_construct()
694 || !TEST_str_eq(buf2, "abcdef")) in test_param_construct()
719 vp = buf2; in test_param_construct()
720 if (!TEST_true(OSSL_PARAM_get_octet_string(cp, &vp, sizeof(buf2), &s)) in test_param_construct()
H A Dectest.c2067 unsigned char *buf = NULL, *buf2 = NULL; in ossl_parameter_test() local
2128 || !TEST_ptr(buf2 = OPENSSL_malloc(bsize)) in ossl_parameter_test()
2133 bld, OSSL_PKEY_PARAM_EC_GENERATOR, buf2, bsize)) in ossl_parameter_test()
2162 OPENSSL_free(buf2); in ossl_parameter_test()
2816 unsigned char *buf1 = NULL, *buf2 = NULL; in custom_params_test() local
2927 || !TEST_ptr(buf2 = OPENSSL_malloc(bsize)) in custom_params_test()
2932 || !TEST_mem_eq(buf1, bsize, buf2, bsize)) in custom_params_test()
2999 || !TEST_int_eq(EVP_PKEY_derive(pctx2, buf2, &t), 1)) in custom_params_test()
3003 if (!TEST_mem_eq(buf1, sslen, buf2, t)) in custom_params_test()
3051 || !TEST_mem_eq(buf1, t, buf2, sslen)) in custom_params_test()
[all …]
/openssl/apps/
H A Dspeed.c515 unsigned char *buf2; member
977 unsigned char *buf2 = tempargs->buf2; in RSA_sign_loop() local
999 unsigned char *buf2 = tempargs->buf2; in RSA_verify_loop() local
1020 unsigned char *buf2 = tempargs->buf2; in RSA_encrypt_loop() local
1042 unsigned char *buf2 = tempargs->buf2; in RSA_decrypt_loop() local
1083 unsigned char *buf2 = tempargs->buf2; in DSA_sign_loop() local
1105 unsigned char *buf2 = tempargs->buf2; in DSA_verify_loop() local
1126 unsigned char *buf2 = tempargs->buf2; in ECDSA_sign_loop() local
1148 unsigned char *buf2 = tempargs->buf2; in ECDSA_verify_loop() local
1246 unsigned char *sm2sig = tempargs->buf2; in SM2_sign_loop()
[all …]
H A Dfipsinstall.c303 unsigned char *buf1 = NULL, *buf2 = NULL; in verify_config() local
340 buf2 = OPENSSL_hexstr2buf(s, &len); in verify_config()
341 if (buf2 == NULL in verify_config()
343 || memcmp(install_mac, buf2, install_mac_len) != 0) { in verify_config()
351 OPENSSL_free(buf2); in verify_config()
/openssl/crypto/ffc/
H A Dffc_params_generate.c391 unsigned char buf2[EVP_MAX_MD_SIZE]; in generate_q_fips186_2() local
406 memcpy(buf2, seed, qsize); in generate_q_fips186_2()
418 if (!EVP_Digest(buf, qsize, buf2, NULL, evpmd, NULL)) in generate_q_fips186_2()
421 md[i] ^= buf2[i]; in generate_q_fips186_2()

Completed in 44 milliseconds