Home
last modified time | relevance | path

Searched refs:sctx (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd-14.2/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_ccm_hw_s390x.inc27 memset(sctx->ccm.s390x.nonce.b + 1, 0, sizeof(sctx->ccm.s390x.nonce.b));
90 s390x_kmac(sctx->ccm.s390x.nonce.b, 32, sctx->ccm.s390x.fc,
97 s390x_kmac(aad, alen, sctx->ccm.s390x.fc, &sctx->ccm.s390x.kmac);
106 sctx->ccm.s390x.kmac.icv.b, sctx->ccm.s390x.fc,
129 sctx->ccm.s390x.fc, sctx->ccm.s390x.kmac.k);
172 sctx->ccm.s390x.fc, sctx->ccm.s390x.kmac.k);
192 sctx->ccm.s390x.fc, sctx->ccm.s390x.kmac.k);
199 s390x_km(sctx->ccm.s390x.nonce.b, 16, sctx->ccm.s390x.buf.b,
200 sctx->ccm.s390x.fc, sctx->ccm.s390x.kmac.k);
201 sctx->ccm.s390x.kmac.icv.g[0] ^= sctx->ccm.s390x.buf.g[0];
[all …]
H A Dcipher_aes_cbc_hmac_sha256_hw.c60 sctx->tail = sctx->head; in aesni_cbc_hmac_sha256_init_key()
61 sctx->md = sctx->head; in aesni_cbc_hmac_sha256_init_key()
192 mctx->A[i] = sctx->md.h[0]; in tls1_multi_block_encrypt()
193 mctx->B[i] = sctx->md.h[1]; in tls1_multi_block_encrypt()
194 mctx->C[i] = sctx->md.h[2]; in tls1_multi_block_encrypt()
449 sctx->md.Nh++; in aesni_cbc_hmac_sha256_cipher()
462 sctx->md = sctx->tail; in aesni_cbc_hmac_sha256_cipher()
532 sctx->md = sctx->head; in aesni_cbc_hmac_sha256_cipher()
644 sctx->md = sctx->tail; in aesni_cbc_hmac_sha256_cipher()
739 sctx->md = sctx->head; in aesni_cbc_hmac_sha256_set_tls1_aad()
[all …]
H A Dcipher_aes_cbc_hmac_sha1_hw.c58 sctx->tail = sctx->head; in aesni_cbc_hmac_sha1_init_key()
59 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_init_key()
187 mctx->A[i] = sctx->md.h0; in tls1_multi_block_encrypt()
188 mctx->B[i] = sctx->md.h1; in tls1_multi_block_encrypt()
189 mctx->C[i] = sctx->md.h2; in tls1_multi_block_encrypt()
411 sctx->md.Nh++; in aesni_cbc_hmac_sha1_cipher()
424 sctx->md = sctx->tail; in aesni_cbc_hmac_sha1_cipher()
496 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_cipher()
593 sctx->md = sctx->tail; in aesni_cbc_hmac_sha1_cipher()
686 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_set_tls1_aad()
[all …]
H A Dcipher_aes_siv_hw.c23 SIV128_CONTEXT *sctx = &ctx->siv; in aes_siv_initkey() local
80 SIV128_CONTEXT *sctx = &ctx->siv; in aes_siv_settag() local
82 return ossl_siv128_set_tag(sctx, tag, tagl); in aes_siv_settag()
88 SIV128_CONTEXT *sctx = &ctx->siv; in aes_siv_setspeed() local
90 ossl_siv128_speed(sctx, (int)speed); in aes_siv_setspeed()
96 SIV128_CONTEXT *sctx = &ctx->siv; in aes_siv_cleanup() local
98 ossl_siv128_cleanup(sctx); in aes_siv_cleanup()
107 SIV128_CONTEXT *sctx = &ctx->siv; in aes_siv_cipher() local
111 return ossl_siv128_finish(sctx) == 0; in aes_siv_cipher()
115 return (ossl_siv128_aad(sctx, in, len) == 1); in aes_siv_cipher()
[all …]
/freebsd-14.2/contrib/libucl/src/
H A Ducl_emitter_streamline.c75 sctx = calloc (1, sizeof (*sctx)); in ucl_object_emit_streamline_new()
76 if (sctx == NULL) { in ucl_object_emit_streamline_new()
81 sctx->func = emitter; in ucl_object_emit_streamline_new()
82 sctx->top = obj; in ucl_object_emit_streamline_new()
99 if (sctx->top == NULL) { in ucl_object_emit_streamline_start_container()
100 sctx->top = obj; in ucl_object_emit_streamline_start_container()
103 top = sctx->containers; in ucl_object_emit_streamline_start_container()
130 if (sctx->containers != NULL) { in ucl_object_emit_streamline_add_object()
150 st = sctx->containers; in ucl_object_emit_streamline_end_container()
158 sctx->containers = st->next; in ucl_object_emit_streamline_end_container()
[all …]
/freebsd-14.2/crypto/openssl/crypto/ct/
H A Dct_sct_ctx.c25 SCT_CTX *sctx = OPENSSL_zalloc(sizeof(*sctx)); in SCT_CTX_new() local
27 if (sctx == NULL) { in SCT_CTX_new()
32 sctx->libctx = libctx; in SCT_CTX_new()
42 return sctx; in SCT_CTX_new()
47 if (sctx == NULL) in SCT_CTX_free()
55 OPENSSL_free(sctx); in SCT_CTX_free()
193 sctx->preder = preder; in SCT_CTX_set1_cert()
211 EVP_MD *sha256 = EVP_MD_fetch(sctx->libctx, "SHA2-256", sctx->propq); in ct_public_key_hash()
255 return ct_public_key_hash(sctx, pubkey, &sctx->ihash, &sctx->ihashlen); in SCT_CTX_set1_issuer_pubkey()
265 if (!ct_public_key_hash(sctx, pubkey, &sctx->pkeyhash, &sctx->pkeyhashlen)) { in SCT_CTX_set1_pubkey()
[all …]
H A Dct_vfy.c62 der = sctx->certder; in sct_ctx_update()
63 derlen = sctx->certderlen; in sct_ctx_update()
65 if (!EVP_DigestUpdate(ctx, sctx->ihash, sctx->ihashlen)) in sct_ctx_update()
67 der = sctx->preder; in sct_ctx_update()
68 derlen = sctx->prederlen; in sct_ctx_update()
101 if (!SCT_is_complete(sct) || sctx->pkey == NULL || in SCT_CTX_verify()
111 if (sct->log_id_len != sctx->pkeyhashlen || in SCT_CTX_verify()
112 memcmp(sct->log_id, sctx->pkeyhash, sctx->pkeyhashlen) != 0) { in SCT_CTX_verify()
116 if (sct->timestamp > sctx->epoch_time_in_ms) { in SCT_CTX_verify()
126 sctx->propq, sctx->pkey, NULL)) in SCT_CTX_verify()
[all …]
H A Dct_local.h127 void SCT_CTX_free(SCT_CTX *sctx);
138 __owur int SCT_CTX_set1_cert(SCT_CTX *sctx, X509 *cert, X509 *presigner);
147 __owur int SCT_CTX_set1_issuer(SCT_CTX *sctx, const X509 *issuer);
155 __owur int SCT_CTX_set1_issuer_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey);
161 __owur int SCT_CTX_set1_pubkey(SCT_CTX *sctx, X509_PUBKEY *pubkey);
170 void SCT_CTX_set_time(SCT_CTX *sctx, uint64_t time_in_ms);
177 __owur int SCT_CTX_verify(const SCT_CTX *sctx, const SCT *sct);
H A Dct_sct.c293 SCT_CTX *sctx = NULL; in SCT_validate() local
315 sctx = SCT_CTX_new(ctx->libctx, ctx->propq); in SCT_validate()
316 if (sctx == NULL) in SCT_validate()
321 if (SCT_CTX_set1_pubkey(sctx, log_pkey) != 1) in SCT_validate()
336 if (SCT_CTX_set1_issuer_pubkey(sctx, pub) != 1) in SCT_validate()
340 SCT_CTX_set_time(sctx, ctx->epoch_time_in_ms); in SCT_validate()
360 if (SCT_CTX_set1_cert(sctx, ctx->cert, NULL) != 1) in SCT_validate()
363 sct->validation_status = SCT_CTX_verify(sctx, sct) == 1 ? in SCT_validate()
371 SCT_CTX_free(sctx); in SCT_validate()
/freebsd-14.2/crypto/openssl/test/
H A Ddtlstest.c73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
140 SSL_CTX_free(sctx); in test_dtls_unprocessed()
193 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
302 SSL_CTX_free(sctx); in test_dtls_drop_records()
311 SSL_CTX *sctx = NULL, *cctx = NULL; in test_cookie() local
343 SSL_CTX_free(sctx); in test_cookie()
386 SSL_CTX_free(sctx); in test_dtls_duplicate_records()
399 SSL_CTX *sctx = NULL; in test_just_finished() local
428 serverssl = SSL_new(sctx); in test_just_finished()
460 SSL_CTX_free(sctx); in test_just_finished()
[all …]
H A Dsslapitest.c421 SSL_CTX_free(sctx); in test_keylog()
538 SSL_CTX_free(sctx); in test_keylog_no_master_key()
631 SSL_CTX_free(sctx); in test_client_cert_verify_cb()
788 SSL_CTX_free(sctx); in test_client_hello_cb()
833 SSL_CTX_free(sctx); in test_no_ems()
943 SSL_CTX_free(sctx); in test_ccs_change_cipher()
1051 SSL_CTX_free(sctx); in execute_test_large_message()
1283 SSL_CTX_free(sctx); in execute_test_ktls()
3405 if (*sctx == NULL in setupearly_data_test()
10599 SSL_CTX *sctx; member
[all …]
H A Dfatalerrtest.c21 SSL_CTX *sctx = NULL, *cctx = NULL; in test_fatalerr() local
33 &sctx, &cctx, cert, privkey))) in test_fatalerr()
40 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "AES128-SHA")) in test_fatalerr()
42 || !TEST_true(SSL_CTX_set_ciphersuites(sctx, in test_fatalerr()
46 || !TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, in test_fatalerr()
79 SSL_CTX_free(sctx); in test_fatalerr()
H A Dtls13ccstest.c245 SSL_CTX *sctx = NULL, *cctx = NULL; in test_tls13ccs() local
259 &sctx, &cctx, cert, privkey)) in test_tls13ccs()
260 || !TEST_true(SSL_CTX_set_max_early_data(sctx, in test_tls13ccs()
294 SSL_CTX_clear_options(sctx, SSL_OP_ENABLE_MIDDLEBOX_COMPAT); in test_tls13ccs()
303 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, NULL)) in test_tls13ccs()
320 if (!TEST_true(SSL_CTX_set1_groups_list(sctx, "ffdhe3072"))) in test_tls13ccs()
324 if (!TEST_true(SSL_CTX_set1_groups_list(sctx, "P-256"))) in test_tls13ccs()
339 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, s_to_c_fbio, in test_tls13ccs()
485 SSL_CTX_free(sctx); in test_tls13ccs()
H A Drecordlentest.c82 SSL_CTX *cctx = NULL, *sctx = NULL; in test_record_overflow() local
107 &sctx, &cctx, cert, privkey))) in test_record_overflow()
116 SSL_CTX_set_max_proto_version(sctx, TLS1_2_VERSION); in test_record_overflow()
122 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_record_overflow()
179 SSL_CTX_free(sctx); in test_record_overflow()
H A Dverify_extra_test.c67 X509_STORE_CTX *sctx = NULL; in test_alt_chains_cert_forgery() local
86 sctx = X509_STORE_CTX_new(); in test_alt_chains_cert_forgery()
87 if (sctx == NULL) in test_alt_chains_cert_forgery()
90 if (!X509_STORE_CTX_init(sctx, store, x, untrusted)) in test_alt_chains_cert_forgery()
93 i = X509_verify_cert(sctx); in test_alt_chains_cert_forgery()
95 if (i == 0 && X509_STORE_CTX_get_error(sctx) == X509_V_ERR_INVALID_CA) { in test_alt_chains_cert_forgery()
100 X509_STORE_CTX_free(sctx); in test_alt_chains_cert_forgery()
H A Dossl_store_test.c42 OSSL_STORE_CTX *sctx = NULL; in test_store_open() local
50 && TEST_ptr(sctx = OSSL_STORE_open_ex(input, NULL, NULL, ui_method, in test_store_open()
52 && TEST_false(OSSL_STORE_find(sctx, NULL)) in test_store_open()
53 && TEST_true(OSSL_STORE_find(sctx, search)); in test_store_open()
56 OSSL_STORE_close(sctx); in test_store_open()
H A Dsslcorrupttest.c185 SSL_CTX *sctx = NULL, *cctx = NULL; in test_ssl_corrupt() local
200 &sctx, &cctx, cert, privkey))) in test_ssl_corrupt()
203 if (!TEST_true(SSL_CTX_set_dh_auto(sctx, 1)) in test_ssl_corrupt()
222 if (!TEST_true(create_ssl_objects(sctx, cctx, &server, &client, NULL, in test_ssl_corrupt()
250 SSL_CTX_free(sctx); in test_ssl_corrupt()
/freebsd-14.2/crypto/heimdal/lib/gssapi/
H A Dtest_context.c191 sctx, in loop()
506 gss_ctx_id_t cctx, sctx; in main() local
520 cctx = sctx = GSS_C_NO_CONTEXT; in main()
675 &sctx, in main()
687 sctx, in main()
699 sctx, in main()
708 sctx, in main()
769 sctx, in main()
784 sctx, in main()
884 getverifymic(cctx, sctx, actual_mech); in main()
[all …]
/freebsd-14.2/crypto/openssl/crypto/dh/
H A Ddh_pmeth.c88 DH_PKEY_CTX *dctx, *sctx; in pkey_dh_copy() local
92 sctx = src->data; in pkey_dh_copy()
94 dctx->prime_len = sctx->prime_len; in pkey_dh_copy()
96 dctx->generator = sctx->generator; in pkey_dh_copy()
98 dctx->pad = sctx->pad; in pkey_dh_copy()
99 dctx->md = sctx->md; in pkey_dh_copy()
100 dctx->param_nid = sctx->param_nid; in pkey_dh_copy()
102 dctx->kdf_type = sctx->kdf_type; in pkey_dh_copy()
106 dctx->kdf_md = sctx->kdf_md; in pkey_dh_copy()
107 if (sctx->kdf_ukm != NULL) { in pkey_dh_copy()
[all …]
/freebsd-14.2/crypto/openssl/crypto/ec/
H A Dec_pmeth.c64 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local
67 sctx = src->data; in pkey_ec_copy()
69 if (sctx->gen_group) { in pkey_ec_copy()
74 dctx->md = sctx->md; in pkey_ec_copy()
76 if (sctx->co_key) { in pkey_ec_copy()
81 dctx->kdf_type = sctx->kdf_type; in pkey_ec_copy()
82 dctx->kdf_md = sctx->kdf_md; in pkey_ec_copy()
83 dctx->kdf_outlen = sctx->kdf_outlen; in pkey_ec_copy()
84 if (sctx->kdf_ukm) { in pkey_ec_copy()
85 dctx->kdf_ukm = OPENSSL_memdup(sctx->kdf_ukm, sctx->kdf_ukmlen); in pkey_ec_copy()
[all …]
/freebsd-14.2/sys/crypto/aesni/
H A Daesni.c778 } sctx; in aesni_cipher_mac() local
795 ses->hash_init(&sctx); in aesni_cipher_mac()
803 ses->hash_update(&sctx, crp->crp_aad, in aesni_cipher_mac()
813 ses->hash_update, &sctx); in aesni_cipher_mac()
821 ses->hash_finalize(res, &sctx); in aesni_cipher_mac()
824 ses->hash_init(&sctx); in aesni_cipher_mac()
831 ses->hash_finalize(res, &sctx); in aesni_cipher_mac()
834 ses->hash_init(&sctx); in aesni_cipher_mac()
847 ses->hash_update, &sctx); in aesni_cipher_mac()
851 ses->hash_update, &sctx); in aesni_cipher_mac()
[all …]
/freebsd-14.2/sys/net/
H A Diflib.c3598 if_shared_ctx_t sctx; in iflib_encap() local
3610 sctx = ctx->ifc_sctx; in iflib_encap()
4724 if_shared_ctx_t sctx; in iflib_device_probe() local
4728 if ((sctx = DEVICE_REGISTER(dev)) == NULL || sctx->isc_magic != IFLIB_MAGIC) in iflib_device_probe()
5209 ctx->ifc_sctx = sctx; in iflib_device_register()
5453 if_shared_ctx_t sctx; in iflib_device_attach() local
5455 if ((sctx = DEVICE_REGISTER(dev)) == NULL || sctx->isc_magic != IFLIB_MAGIC) in iflib_device_attach()
5707 MPASS(sctx->isc_nrxqs >= 1 && sctx->isc_nrxqs <= 8); in _iflib_assert()
5717 MPASS(sctx->isc_ntxqs >= 1 && sctx->isc_ntxqs <= 8); in _iflib_assert()
5749 _iflib_assert(sctx); in iflib_register()
[all …]
/freebsd-14.2/crypto/openssl/crypto/dsa/
H A Ddsa_pmeth.c58 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
62 sctx = src->data; in pkey_dsa_copy()
64 dctx->nbits = sctx->nbits; in pkey_dsa_copy()
65 dctx->qbits = sctx->qbits; in pkey_dsa_copy()
66 dctx->pmd = sctx->pmd; in pkey_dsa_copy()
67 dctx->md = sctx->md; in pkey_dsa_copy()
/freebsd-14.2/crypto/openssl/crypto/rsa/
H A Drsa_pmeth.c84 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local
88 sctx = src->data; in pkey_rsa_copy()
90 dctx->nbits = sctx->nbits; in pkey_rsa_copy()
91 if (sctx->pub_exp) { in pkey_rsa_copy()
92 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy()
96 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy()
97 dctx->md = sctx->md; in pkey_rsa_copy()
98 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy()
99 dctx->saltlen = sctx->saltlen; in pkey_rsa_copy()
100 if (sctx->oaep_label) { in pkey_rsa_copy()
[all …]
/freebsd-14.2/contrib/smbfs/smbutil/
H A Dlogin.c55 struct smb_ctx sctx, *ctx = &sctx; in cmd_login() local
123 struct smb_ctx sctx, *ctx = &sctx; in cmd_logout() local

1234