Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 151) sorted by relevance

1234567

/openssl/test/
H A Dffc_internal_test.c176 int ret = 0, res; in ffc_params_validate_g_unverified_test() local
246 int ret = 0, res = -1; in ffc_params_validate_pq_test() local
348 int ret = 0, res = -1; in ffc_params_gen_test() local
369 int ret = 0, res = -1; in ffc_params_gen_canonicalg_test() local
394 int ret = 0, res = -1; in ffc_params_fips186_2_gen_validate_test() local
419 if (!TEST_true(res == FFC_CHECK_Q_MISMATCH || res == FFC_CHECK_Q_NOT_PRIME)) in ffc_params_fips186_2_gen_validate_test()
443 int ret = 0, res = -1; in ffc_public_validate_test() local
461 if (!TEST_int_eq(FFC_ERROR_PUBKEY_TOO_SMALL, res)) in ffc_public_validate_test()
504 if (!TEST_int_eq(FFC_ERROR_PUBKEY_INVALID, res)) in ffc_public_validate_test()
522 int ret = 0, res = -1; in ffc_private_validate_test() local
[all …]
H A Dhttp_test.c131 int res = 0; in test_http_method() local
202 return res; in test_http_method()
224 for (res = 1, i = 1; res && i <= 2; i++) { in test_http_keep_alive()
235 res = res && TEST_ptr_null(rsp) in test_http_keep_alive()
238 res = res && TEST_ptr(rsp) in test_http_keep_alive()
249 return res; in test_http_keep_alive()
257 int res; in test_http_url_ok() local
280 return res; in test_http_url_ok()
286 int res; in test_http_url_path_query_ok() local
294 return res; in test_http_url_path_query_ok()
[all …]
H A Dsparse_array_test.c41 int res = 0; in test_sparse_array() local
61 res = 1; in test_sparse_array()
64 return res; in test_sparse_array()
81 int res = 0; in test_sparse_array_num() local
91 res = 1; in test_sparse_array_num()
94 return res; in test_sparse_array_num()
107 int res; member
117 doall_data->res = 0; in leaf_check_all()
153 int res = 0; in test_sparse_array_doall() local
184 res = 1; in test_sparse_array_doall()
[all …]
H A Dcmp_ctx_test.c66 int res = 0; in execute_CTX_reinit_test() local
102 res = 1; in execute_CTX_reinit_test()
108 return res; in execute_CTX_reinit_test()
140 int res = 1; in execute_CTX_print_errors_test() local
143 res = 0; in execute_CTX_print_errors_test()
145 res = 0; in execute_CTX_print_errors_test()
154 res = 0; in execute_CTX_print_errors_test()
156 res = 0; in execute_CTX_print_errors_test()
187 return res; in execute_CTX_print_errors_test()
232 return res; in execute_CTX_reqExtensions_have_SAN_test()
[all …]
/openssl/crypto/ffc/
H A Dffc_params_validate.c54 int *res, BN_GENCB *cb) in ossl_ffc_params_FIPS186_4_validate() argument
77 *res = FFC_CHECK_INVALID_PQ; in ossl_ffc_params_FIPS186_2_validate()
105 if (res == NULL) in ossl_ffc_params_simple_validate()
106 res = &tmpres; in ossl_ffc_params_simple_validate()
117 res, NULL); in ossl_ffc_params_simple_validate()
121 res, NULL); in ossl_ffc_params_simple_validate()
124 && (*res & FFC_ERROR_NOT_SUITABLE_GENERATOR) != 0) { in ossl_ffc_params_simple_validate()
140 int paramstype, int *res) in ossl_ffc_params_full_validate() argument
147 if (res == NULL) in ossl_ffc_params_full_validate()
148 res = &tmpres; in ossl_ffc_params_full_validate()
[all …]
H A Dffc_params_generate.c194 int *res) in generate_p() argument
307 *res |= FFC_CHECK_P_NOT_PRIME; in generate_p()
534 *res = 0; in ossl_ffc_params_FIPS186_4_gen_verify()
564 *res = FFC_CHECK_BAD_LN_PAIR; in ossl_ffc_params_FIPS186_4_gen_verify()
594 *res = FFC_CHECK_INVALID_PQ; in ossl_ffc_params_FIPS186_4_gen_verify()
688 *res = FFC_CHECK_Q_MISMATCH; in ossl_ffc_params_FIPS186_4_gen_verify()
750 *res = FFC_CHECK_INVALID_G; in ossl_ffc_params_FIPS186_4_gen_verify()
755 *res = FFC_CHECK_G_MISMATCH; in ossl_ffc_params_FIPS186_4_gen_verify()
829 *res = 0; in ossl_ffc_params_FIPS186_2_gen_verify()
855 *res = FFC_CHECK_BAD_LN_PAIR; in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
/openssl/crypto/ec/
H A Decp_nistz256.c241 res = is_zero(res); in is_one()
548 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
552 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
553 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
554 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
588 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
589 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
590 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
591 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
594 ecp_nistz256_sqr_mont(res, res); in ecp_nistz256_mod_inverse()
[all …]
H A Decp_ppc.c14 void ecp_nistz256_mul_mont(unsigned long res[4], const unsigned long a[4],
17 void ecp_nistz256_to_mont(unsigned long res[4], const unsigned long in[4]);
18 void ecp_nistz256_to_mont(unsigned long res[4], const unsigned long in[4]) in ecp_nistz256_to_mont()
25 ecp_nistz256_mul_mont(res, in, RR); in ecp_nistz256_to_mont()
28 void ecp_nistz256_from_mont(unsigned long res[4], const unsigned long in[4]);
29 void ecp_nistz256_from_mont(unsigned long res[4], const unsigned long in[4]) in ecp_nistz256_from_mont()
33 ecp_nistz256_mul_mont(res, in, one); in ecp_nistz256_from_mont()
/openssl/crypto/bio/
H A Dbio_sock.c48 BIO_ADDRINFO *res = NULL; in BIO_get_host_ip() local
57 if (BIO_ADDRINFO_family(res) != AF_INET) { in BIO_get_host_ip()
67 BIO_ADDRINFO_free(res); in BIO_get_host_ip()
77 BIO_ADDRINFO *res = NULL; in BIO_get_port() local
89 if (BIO_ADDRINFO_family(res) != AF_INET) { in BIO_get_port()
95 BIO_ADDRINFO_free(res); in BIO_get_port()
219 BIO_ADDRINFO *res = NULL; in BIO_get_accept_socket() local
230 if ((s = BIO_socket(BIO_ADDRINFO_family(res), BIO_ADDRINFO_socktype(res), in BIO_get_accept_socket()
243 BIO_ADDRINFO_free(res); in BIO_get_accept_socket()
252 BIO_ADDR res; in BIO_accept() local
[all …]
/openssl/test/helpers/
H A Dcmp_testlib.c37 int i, res; in STACK_OF_X509_cmp() local
46 if ((res = sk_X509_num(sk1) - sk_X509_num(sk2))) in STACK_OF_X509_cmp()
47 return res; in STACK_OF_X509_cmp()
52 if ((res = X509_cmp(a, b)) != 0) in STACK_OF_X509_cmp()
53 return res; in STACK_OF_X509_cmp()
65 int res; in STACK_OF_X509_push1() local
71 res = sk_X509_push(sk, cert); in STACK_OF_X509_push1()
72 if (res <= 0) in STACK_OF_X509_push1()
74 return res; in STACK_OF_X509_push1()
/openssl/providers/implementations/ciphers/
H A Dcipher_aes_gcm_hw.c71 size_t res = (16 - ctx->gcm.mres) % 16; in generic_aes_gcm_cipher_update() local
73 if (CRYPTO_gcm128_encrypt(&ctx->gcm, in, out, res)) in generic_aes_gcm_cipher_update()
76 bulk = AES_gcm_encrypt(in + res, out + res, len - res, in generic_aes_gcm_cipher_update()
81 bulk += res; in generic_aes_gcm_cipher_update()
100 size_t res = (16 - ctx->gcm.mres) % 16; in generic_aes_gcm_cipher_update() local
102 if (CRYPTO_gcm128_decrypt(&ctx->gcm, in, out, res)) in generic_aes_gcm_cipher_update()
105 bulk = AES_gcm_decrypt(in + res, out + res, len - res, in generic_aes_gcm_cipher_update()
110 bulk += res; in generic_aes_gcm_cipher_update()
H A Dcipher_aes_cbc_hmac_sha1_hw.c72 size_t res; in sha1_update() local
74 if ((res = c->num)) { in sha1_update()
75 res = SHA_CBLOCK - res; in sha1_update()
76 if (len < res) in sha1_update()
77 res = len; in sha1_update()
79 ptr += res; in sha1_update()
80 len -= res; in sha1_update()
83 res = len % SHA_CBLOCK; in sha1_update()
84 len -= res; in sha1_update()
96 if (res) in sha1_update()
[all …]
H A Dcipher_aes_cbc_hmac_sha256_hw.c76 size_t res; in sha256_update() local
78 if ((res = c->num)) { in sha256_update()
79 res = SHA256_CBLOCK - res; in sha256_update()
80 if (len < res) in sha256_update()
81 res = len; in sha256_update()
83 ptr += res; in sha256_update()
84 len -= res; in sha256_update()
88 len -= res; in sha256_update()
100 if (res) in sha256_update()
590 res = 0; in aesni_cbc_hmac_sha256_cipher()
[all …]
/openssl/apps/lib/
H A Ds_socket.c84 BIO_ADDRINFO *res = NULL; in init_client() local
99 &res); in init_client()
221 BIO_ADDRINFO_free(res); in init_client()
302 BIO_ADDRINFO *res = NULL; in do_server() local
315 &res)) { in do_server()
326 sock_family = BIO_ADDRINFO_family(res); in do_server()
327 sock_type = BIO_ADDRINFO_socktype(res); in do_server()
330 next = BIO_ADDRINFO_next(res); in do_server()
361 BIO_ADDRINFO_free(res); in do_server()
389 BIO_ADDRINFO_free(res); in do_server()
[all …]
/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c107 size_t res; in sha1_update() local
110 res = SHA_CBLOCK - res; in sha1_update()
111 if (len < res) in sha1_update()
114 ptr += res; in sha1_update()
115 len -= res; in sha1_update()
119 len -= res; in sha1_update()
131 if (res) in sha1_update()
723 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
729 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha1_cipher()
733 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha1_cipher()
[all …]
H A De_aes_cbc_hmac_sha256.c101 size_t res; in sha256_update() local
104 res = SHA256_CBLOCK - res; in sha256_update()
105 if (len < res) in sha256_update()
108 ptr += res; in sha256_update()
109 len -= res; in sha256_update()
113 len -= res; in sha256_update()
125 if (res) in sha256_update()
721 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
727 res = 0 - ((0 - res) >> (sizeof(res) * 8 - 1)); in aesni_cbc_hmac_sha256_cipher()
731 pad = (pad & ~res) | (maxpad & res); in aesni_cbc_hmac_sha256_cipher()
[all …]
H A Devp_rand.c406 int res; in EVP_RAND_CTX_get_params() local
412 return res; in EVP_RAND_CTX_get_params()
425 int res; in EVP_RAND_CTX_set_params() local
431 return res; in EVP_RAND_CTX_set_params()
514 int res; in EVP_RAND_instantiate() local
521 return res; in EVP_RAND_instantiate()
531 int res; in EVP_RAND_uninstantiate() local
576 int res; in EVP_RAND_generate() local
600 int res; in EVP_RAND_reseed() local
646 int res; in EVP_RAND_nonce() local
[all …]
/openssl/crypto/property/
H A Dproperty_parse.c112 res->v.int_val = v; in parse_number()
137 res->v.int_val = v; in parse_hex()
158 res->v.int_val = v; in parse_oct()
236 r = parse_number(&s, res); in parse_value()
239 r = parse_number(&s, res); in parse_value()
240 res->v.int_val = -res->v.int_val; in parse_value()
243 r = parse_hex(&s, res); in parse_value()
246 r = parse_oct(&s, res); in parse_value()
317 OSSL_PROPERTY_LIST *res = NULL; in ossl_parse_property() local
370 return res; in ossl_parse_property()
[all …]
H A Dproperty.c197 return res; in query_cmp()
244 res = OPENSSL_zalloc(sizeof(*res)); in ossl_method_store_new()
245 if (res != NULL) { in ossl_method_store_new()
246 res->ctx = ctx; in ossl_method_store_new()
254 return res; in ossl_method_store_new()
676 int res = 0; in ossl_method_store_cache_get() local
694 res = 1; in ossl_method_store_cache_get()
698 return res; in ossl_method_store_cache_get()
709 int res = 1; in ossl_method_store_cache_set() local
756 res = 0; in ossl_method_store_cache_set()
[all …]
/openssl/crypto/bn/asm/
H A Drsaz-4k-avx512.pl469 vmovdqu64 $R0_0, `0*32`($res)
470 vmovdqu64 $R0_0h, `1*32`($res)
471 vmovdqu64 $R1_0, `2*32`($res)
472 vmovdqu64 $R1_0h, `3*32`($res)
473 vmovdqu64 $R2_0, `4*32`($res)
474 vmovdqu64 $R2_0h, `5*32`($res)
475 vmovdqu64 $R3_0, `6*32`($res)
476 vmovdqu64 $R3_0h, `7*32`($res)
477 vmovdqu64 $R4_0, `8*32`($res)
478 vmovdqu64 $R4_0h, `9*32`($res)
[all …]
H A Drsaz-3k-avx512.pl431 vmovdqu64 $R0_0, `0*32`($res)
432 vmovdqu64 $R0_0h, `1*32`($res)
433 vmovdqu64 $R1_0, `2*32`($res)
434 vmovdqu64 $R1_0h, `3*32`($res)
435 vmovdqu64 $R2_0, `4*32`($res)
436 vmovdqu64 $R2_0h, `5*32`($res)
437 vmovdqu64 $R3_0, `6*32`($res)
438 vmovdqu64 $R3_0h, `7*32`($res)
586 vmovdqu64 $R0_0, `0*32`($res)
587 vmovdqu64 $R0_0h, `1*32`($res)
[all …]
H A Drsaz-2k-avx512.pl359 vmovdqu64 $R0_0, `0*32`($res)
360 vmovdqu64 $R0_0h, `1*32`($res)
361 vmovdqu64 $R1_0, `2*32`($res)
362 vmovdqu64 $R1_0h, `3*32`($res)
363 vmovdqu64 $R2_0, `4*32`($res)
470 vmovdqu64 $R0_0, `0*32`($res)
471 vmovdqu64 $R0_0h, `1*32`($res)
472 vmovdqu64 $R1_0, `2*32`($res)
473 vmovdqu64 $R1_0h, `3*32`($res)
474 vmovdqu64 $R2_0, `4*32`($res)
[all …]
/openssl/util/
H A Dcavs-to-evptest.pl26 my $res = "";
78 $res = "CIPHERUPDATE_ERROR";
107 if ($res ne "") {
109 print "Result = $res\n";
112 $res = "";
/openssl/crypto/asn1/
H A Da_i2d_fp.c115 BIO *res; in ASN1_item_i2d_mem_bio() local
122 if ((res = BIO_new(BIO_s_mem())) == NULL) in ASN1_item_i2d_mem_bio()
124 if (ASN1_item_i2d_bio(it, res, val) <= 0) { in ASN1_item_i2d_mem_bio()
125 BIO_free(res); in ASN1_item_i2d_mem_bio()
126 res = NULL; in ASN1_item_i2d_mem_bio()
128 return res; in ASN1_item_i2d_mem_bio()
/openssl/include/internal/
H A Dffc.h153 int *res, BN_GENCB *cb);
156 int *res, BN_GENCB *cb);
160 size_t L, size_t N, int *res,
164 size_t L, size_t N, int *res,
169 int paramstype, int *res);
172 int paramstype, int *res);
175 int type, int *res, BN_GENCB *cb);
178 int type, int *res, BN_GENCB *cb);

Completed in 107 milliseconds

1234567