Home
last modified time | relevance | path

Searched refs:rctx (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/crypto/openssl/crypto/http/
H A Dhttp_client.c92 OSSL_HTTP_REQ_CTX *rctx; in OSSL_HTTP_REQ_CTX_new() local
99 if ((rctx = OPENSSL_zalloc(sizeof(*rctx))) == NULL) in OSSL_HTTP_REQ_CTX_new()
101 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_new()
102 rctx->buf_size = buf_size > 0 ? buf_size : OSSL_HTTP_DEFAULT_MAX_LINE_LEN; in OSSL_HTTP_REQ_CTX_new()
103 rctx->buf = OPENSSL_malloc(rctx->buf_size); in OSSL_HTTP_REQ_CTX_new()
104 rctx->wbio = wbio; in OSSL_HTTP_REQ_CTX_new()
105 rctx->rbio = rbio; in OSSL_HTTP_REQ_CTX_new()
106 if (rctx->buf == NULL) { in OSSL_HTTP_REQ_CTX_new()
107 OPENSSL_free(rctx); in OSSL_HTTP_REQ_CTX_new()
110 rctx->max_resp_len = OSSL_HTTP_DEFAULT_MAX_RESP_LEN; in OSSL_HTTP_REQ_CTX_new()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c58 #define rsa_pss_restricted(rctx) (rctx->min_saltlen != -1) argument
62 RSA_PKEY_CTX *rctx = OPENSSL_zalloc(sizeof(*rctx)); in pkey_rsa_init() local
64 if (rctx == NULL) in pkey_rsa_init()
66 rctx->nbits = 2048; in pkey_rsa_init()
67 rctx->primes = RSA_DEFAULT_PRIME_NUM; in pkey_rsa_init()
69 rctx->pad_mode = RSA_PKCS1_PSS_PADDING; in pkey_rsa_init()
71 rctx->pad_mode = RSA_PKCS1_PADDING; in pkey_rsa_init()
73 rctx->saltlen = RSA_PSS_SALTLEN_AUTO; in pkey_rsa_init()
74 rctx->min_saltlen = -1; in pkey_rsa_init()
75 ctx->data = rctx; in pkey_rsa_init()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dhttp.h42 void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx);
43 int OSSL_HTTP_REQ_CTX_set_request_line(OSSL_HTTP_REQ_CTX *rctx, int method_POST,
46 int OSSL_HTTP_REQ_CTX_add1_header(OSSL_HTTP_REQ_CTX *rctx,
48 int OSSL_HTTP_REQ_CTX_set_expected(OSSL_HTTP_REQ_CTX *rctx,
51 int OSSL_HTTP_REQ_CTX_set1_req(OSSL_HTTP_REQ_CTX *rctx, const char *content_type,
53 int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx);
54 int OSSL_HTTP_REQ_CTX_nbio_d2i(OSSL_HTTP_REQ_CTX *rctx,
56 BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
57 BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
58 size_t OSSL_HTTP_REQ_CTX_get_resp_len(const OSSL_HTTP_REQ_CTX *rctx);
[all …]
H A Docsp.h.in182 # define OCSP_REQ_CTX_http(rctx, op, path) \ argument
183 (OSSL_HTTP_REQ_CTX_set_expected(rctx, NULL, 1 /* asn1 */, 0, 0) && \
184 OSSL_HTTP_REQ_CTX_set_request_line(rctx, strcmp(op, "POST") == 0, \
H A Docsp.h278 # define OCSP_REQ_CTX_http(rctx, op, path) \ argument
279 (OSSL_HTTP_REQ_CTX_set_expected(rctx, NULL, 1 /* asn1 */, 0, 0) && \
280 OSSL_HTTP_REQ_CTX_set_request_line(rctx, strcmp(op, "POST") == 0, \
/freebsd/crypto/openssl/crypto/ocsp/
H A Docsp_http.c18 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(io, io, buf_size); in OCSP_sendreq_new() local
20 if (rctx == NULL) in OCSP_sendreq_new()
31 if (!OSSL_HTTP_REQ_CTX_set_request_line(rctx, 1 /* POST */, in OCSP_sendreq_new()
35 if (!OSSL_HTTP_REQ_CTX_set_expected(rctx, in OCSP_sendreq_new()
40 && !OSSL_HTTP_REQ_CTX_set1_req(rctx, "application/ocsp-request", in OCSP_sendreq_new()
44 return rctx; in OCSP_sendreq_new()
47 OSSL_HTTP_REQ_CTX_free(rctx); in OCSP_sendreq_new()
/freebsd/crypto/openssl/doc/man3/
H A DOCSP_sendreq_new.pod29 int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OSSL_HTTP_REQ_CTX *rctx);
30 int OCSP_REQ_CTX_i2d(OCSP_REQ_CT *rctx, const ASN1_ITEM *it, ASN1_VALUE *req);
31 int OCSP_REQ_CTX_add1_header(OCSP_REQ_CT *rctx,
33 void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
34 void OCSP_set_max_response_length(OCSP_REQ_CT *rctx, unsigned long len);
35 int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, const OCSP_REQUEST *req);
54 OCSP_sendreq_nbio() attempts to send the request prepared in I<rctx>
69 OCSP_REQ_CTX_i2d(rctx, it, req) is equivalent to the following:
71 OSSL_HTTP_REQ_CTX_set1_req(rctx, "application/ocsp-request", it, req)
73 OCSP_REQ_CTX_set1_req(rctx, req) is equivalent to the following:
[all …]
H A DOSSL_HTTP_REQ_CTX.pod28 void OSSL_HTTP_REQ_CTX_free(OSSL_HTTP_REQ_CTX *rctx);
30 int OSSL_HTTP_REQ_CTX_set_request_line(OSSL_HTTP_REQ_CTX *rctx, int method_POST,
33 int OSSL_HTTP_REQ_CTX_add1_header(OSSL_HTTP_REQ_CTX *rctx,
36 int OSSL_HTTP_REQ_CTX_set_expected(OSSL_HTTP_REQ_CTX *rctx,
39 int OSSL_HTTP_REQ_CTX_set1_req(OSSL_HTTP_REQ_CTX *rctx, const char *content_type,
41 int OSSL_HTTP_REQ_CTX_nbio(OSSL_HTTP_REQ_CTX *rctx);
42 int OSSL_HTTP_REQ_CTX_nbio_d2i(OSSL_HTTP_REQ_CTX *rctx,
44 BIO *OSSL_HTTP_REQ_CTX_exchange(OSSL_HTTP_REQ_CTX *rctx);
46 BIO *OSSL_HTTP_REQ_CTX_get0_mem_bio(const OSSL_HTTP_REQ_CTX *rctx);
47 size_t OSSL_HTTP_REQ_CTX_get_resp_len(const OSSL_HTTP_REQ_CTX *rctx);
[all …]
H A DX509_load_http.pod22 #define X509_http_nbio(rctx, pcert)
23 #define X509_CRL_http_nbio(rctx, pcrl)
H A DOSSL_HTTP_transfer.pod29 int OSSL_HTTP_set1_request(OSSL_HTTP_REQ_CTX *rctx, const char *path,
34 BIO *OSSL_HTTP_exchange(OSSL_HTTP_REQ_CTX *rctx, char **redirection_url);
51 int OSSL_HTTP_close(OSSL_HTTP_REQ_CTX *rctx, int ok);
164 OSSL_HTTP_set1_request() sets up in I<rctx> the request header and content data
166 If <rctx> indicates using a proxy for HTTP (but not HTTPS), the server host
168 in I<rctx>.
197 as specified by I<rctx>, which must include both connection and request data,
241 OSSL_HTTP_close() closes the connection and releases I<rctx>.
/freebsd/crypto/openssl/crypto/evp/
H A Dpmeth_lib.c475 EVP_PKEY_CTX *rctx; in EVP_PKEY_CTX_dup() local
484 rctx = OPENSSL_zalloc(sizeof(*rctx)); in EVP_PKEY_CTX_dup()
485 if (rctx == NULL) { in EVP_PKEY_CTX_dup()
492 rctx->pkey = pctx->pkey; in EVP_PKEY_CTX_dup()
493 rctx->operation = pctx->operation; in EVP_PKEY_CTX_dup()
494 rctx->libctx = pctx->libctx; in EVP_PKEY_CTX_dup()
495 rctx->keytype = pctx->keytype; in EVP_PKEY_CTX_dup()
496 rctx->propquery = NULL; in EVP_PKEY_CTX_dup()
498 rctx->propquery = OPENSSL_strdup(pctx->propquery); in EVP_PKEY_CTX_dup()
499 if (rctx->propquery == NULL) in EVP_PKEY_CTX_dup()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_rc4_hw.c21 PROV_RC4_CTX *rctx = (PROV_RC4_CTX *)ctx; in cipher_hw_rc4_initkey() local
23 RC4_set_key(&rctx->ks.ks, keylen, key); in cipher_hw_rc4_initkey()
30 PROV_RC4_CTX *rctx = (PROV_RC4_CTX *)ctx; in cipher_hw_rc4_cipher() local
32 RC4(&rctx->ks.ks, len, in, out); in cipher_hw_rc4_cipher()
H A Dcipher_rc5_hw.c21 PROV_RC5_CTX *rctx = (PROV_RC5_CTX *)ctx; in cipher_hw_rc5_initkey() local
23 return RC5_32_set_key(&rctx->ks.ks, keylen, key, rctx->rounds); in cipher_hw_rc5_initkey()
H A Dcipher_rc2_hw.c21 PROV_RC2_CTX *rctx = (PROV_RC2_CTX *)ctx; in cipher_hw_rc2_initkey() local
22 RC2_KEY *ks = &(rctx->ks.ks); in cipher_hw_rc2_initkey()
24 RC2_set_key(ks, (int)ctx->keylen, key, (int)rctx->key_bits); in cipher_hw_rc2_initkey()
/freebsd/crypto/openssl/doc/man7/
H A DEVP_RAND-SEED-SRC.pod42 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
47 EVP_RAND_CTX *seed, *rctx;
60 rctx = EVP_RAND_CTX_new(rand, seed);
67 EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
69 EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
71 EVP_RAND_CTX_free(rctx);
H A DEVP_RAND-HASH-DRBG.pod60 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
65 EVP_RAND_CTX *rctx;
71 rctx = EVP_RAND_CTX_new(rand, NULL);
76 EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
78 EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
80 EVP_RAND_CTX_free(rctx);
H A DEVP_RAND-HMAC-DRBG.pod62 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
67 EVP_RAND_CTX *rctx;
73 rctx = EVP_RAND_CTX_new(rand, NULL);
79 EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
81 EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
83 EVP_RAND_CTX_free(rctx);
H A DEVP_RAND-CTR-DRBG.pod66 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
71 EVP_RAND_CTX *rctx;
77 rctx = EVP_RAND_CTX_new(rand, NULL);
83 EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
85 EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
87 EVP_RAND_CTX_free(rctx);
H A DEVP_RAND-TEST-RAND.pod70 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand);
75 EVP_RAND_CTX *rctx;
83 rctx = EVP_RAND_CTX_new(rand, NULL);
92 EVP_RAND_instantiate(rctx, strength, 0, NULL, 0, params);
94 EVP_RAND_generate(rctx, bytes, sizeof(bytes), strength, 0, NULL, 0);
96 EVP_RAND_CTX_free(rctx);
/freebsd/sys/dev/ixl/
H A Dixl_pf_iflib.c568 struct i40e_hmc_obj_rxq rctx; in ixl_initialize_vsi() local
576 memset(&rctx, 0, sizeof(struct i40e_hmc_obj_rxq)); in ixl_initialize_vsi()
577 rctx.dbuff = rxr->mbuf_sz >> I40E_RXQ_CTX_DBUFF_SHIFT; in ixl_initialize_vsi()
579 rctx.hbuff = 0 >> I40E_RXQ_CTX_HBUFF_SHIFT; in ixl_initialize_vsi()
580 rctx.rxmax = (scctx->isc_max_frame_size < max_rxmax) ? in ixl_initialize_vsi()
582 rctx.dtype = 0; in ixl_initialize_vsi()
583 rctx.dsize = 1; /* do 32byte descriptors */ in ixl_initialize_vsi()
584 rctx.hsplit_0 = 0; /* no header split */ in ixl_initialize_vsi()
585 rctx.base = (rxr->rx_paddr/IXL_RX_CTX_BASE_UNITS); in ixl_initialize_vsi()
586 rctx.qlen = scctx->isc_nrxd[0]; in ixl_initialize_vsi()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DHistoryUnwind.cpp42 RegisterContextSP rctx; in DoCreateRegisterContextForFrame() local
47 rctx = std::make_shared<RegisterContextHistory>( in DoCreateRegisterContextForFrame()
52 return rctx; in DoCreateRegisterContextForFrame()
H A DHistoryThread.cpp51 RegisterContextSP rctx; in GetRegisterContext() local
53 rctx = std::make_shared<RegisterContextHistory>( in GetRegisterContext()
56 return rctx; in GetRegisterContext()
/freebsd/crypto/openssl/test/
H A Devp_libctx_test.c527 EVP_PKEY_CTX *sctx = NULL, *rctx = NULL, *dctx = NULL; in kem_rsa_gen_recover() local
547 && TEST_ptr(rctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in kem_rsa_gen_recover()
548 && TEST_int_eq(EVP_PKEY_decapsulate_init(rctx, NULL), 1) in kem_rsa_gen_recover()
549 && TEST_int_eq(EVP_PKEY_CTX_set_kem_op(rctx, "RSASVE"), 1) in kem_rsa_gen_recover()
551 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, NULL, NULL, ct, ctlen), 0) in kem_rsa_gen_recover()
552 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, NULL, &unwraplen, in kem_rsa_gen_recover()
554 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, unwrap, &unwraplen, in kem_rsa_gen_recover()
565 if (!TEST_int_eq(EVP_PKEY_decapsulate(rctx, unwrap, &unwraplen, ct, in kem_rsa_gen_recover()
572 EVP_PKEY_CTX_free(rctx); in kem_rsa_gen_recover()
H A Dhttp_test.c164 OSSL_HTTP_REQ_CTX *rctx = NULL; in test_http_keep_alive() local
176 rsp = OSSL_HTTP_transfer(&rctx, NULL /* server */, NULL /* port */, in test_http_keep_alive()
187 && TEST_int_eq(OSSL_HTTP_is_alive(rctx), 0); in test_http_keep_alive()
190 && TEST_int_eq(OSSL_HTTP_is_alive(rctx), keep_alive > 0); in test_http_keep_alive()
195 OSSL_HTTP_close(rctx, res); in test_http_keep_alive()
/freebsd/tools/test/stress2/misc/
H A Dsegregs.sh101 sigsegv_handler(int signo __unused, siginfo_t *si __unused, void *rctx)
105 uc = rctx;

12