| /freebsd-14.2/crypto/openssl/crypto/evp/ |
| H A D | e_chacha20_poly1305.c | 165 # define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) argument 192 actx->nonce[0] = actx->key.counter[1]; in chacha20_poly1305_init_key() 193 actx->nonce[1] = actx->key.counter[2]; in chacha20_poly1305_init_key() 194 actx->nonce[2] = actx->key.counter[3]; in chacha20_poly1305_init_key() 378 Poly1305_Init(POLY1305_ctx(actx), actx->key.buf); in chacha20_poly1305_cipher() 381 actx->len.aad = actx->len.text = 0; in chacha20_poly1305_cipher() 491 if (actx) in chacha20_poly1305_cleanup() 546 actx->nonce[0] = actx->key.counter[1] in chacha20_poly1305_ctrl() 548 actx->nonce[1] = actx->key.counter[2] in chacha20_poly1305_ctrl() 550 actx->nonce[2] = actx->key.counter[3] in chacha20_poly1305_ctrl() [all …]
|
| /freebsd-14.2/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_gcm_hw_s390x.inc | 45 actx->plat.s390x.mreslen = 0; 46 actx->plat.s390x.areslen = 0; 47 actx->plat.s390x.kreslen = 0; 53 actx->plat.s390x.hsflag = 0; 95 s390x_kma(actx->plat.s390x.ares, actx->plat.s390x.areslen, 96 actx->plat.s390x.mres, actx->plat.s390x.mreslen, out, 161 n = actx->plat.s390x.areslen; 176 actx->plat.s390x.areslen = n; 227 n = actx->plat.s390x.mreslen; 239 s390x_kma(actx->plat.s390x.ares, actx->plat.s390x.areslen, [all …]
|
| H A D | cipher_aria_ccm_hw.c | 19 PROV_ARIA_CCM_CTX *actx = (PROV_ARIA_CCM_CTX *)ctx; in ccm_aria_initkey() local 21 ossl_aria_set_encrypt_key(key, keylen * 8, &actx->ks.ks); in ccm_aria_initkey() 22 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ks.ks, in ccm_aria_initkey()
|
| H A D | cipher_aes_ccm_hw.c | 21 fn_set_enc_key(key, keylen * 8, &actx->ccm.ks.ks); \ 22 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ccm.ks.ks, \ 30 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx; in ccm_generic_aes_initkey() local
|
| H A D | cipher_aria_gcm_hw.c | 19 PROV_ARIA_GCM_CTX *actx = (PROV_ARIA_GCM_CTX *)ctx; in aria_gcm_initkey() local 20 ARIA_KEY *ks = &actx->ks.ks; in aria_gcm_initkey()
|
| H A D | cipher_aes_gcm_hw_aesni.inc | 18 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 19 AES_KEY *ks = &actx->ks.ks;
|
| H A D | cipher_aes_gcm_hw_t4.inc | 19 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 20 AES_KEY *ks = &actx->ks.ks;
|
| H A D | cipher_aes_gcm_hw.c | 23 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; in aes_gcm_initkey() local 24 AES_KEY *ks = &actx->ks.ks; in aes_gcm_initkey()
|
| H A D | cipher_aes_gcm_hw_armv8.inc | 62 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 63 AES_KEY *ks = &actx->ks.ks;
|
| H A D | cipher_aes_ccm_hw_aesni.inc | 18 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx;
|
| H A D | cipher_aes_ccm_hw_t4.inc | 18 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx;
|
| /freebsd-14.2/crypto/openssl/engines/ |
| H A D | e_afalg.c | 424 actx->bfd = actx->sfd = -1; in afalg_create_sk() 445 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 459 actx->bfd = actx->sfd = -1; in afalg_create_sk() 525 ret = splice(actx->zc_pipe[0], NULL, actx->sfd, NULL, inl, 0); in afalg_start_cipher_sk() 557 afalg_ctx *actx; in afalg_cipher_init() local 619 close(actx->sfd); in afalg_cipher_init() 627 afalg_ctx *actx; in afalg_do_cipher() local 638 if (actx == NULL || actx->init_done != MAGIC_INIT_NUM) { in afalg_do_cipher() 661 ret = afalg_fin_cipher_aio(&actx->aio, actx->sfd, out, inl); in afalg_do_cipher() 677 afalg_ctx *actx; in afalg_cipher_cleanup() local [all …]
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | hda_codec.c | 605 actx = &st->actx; in hda_codec_notify() 872 pthread_cond_wait(&actx->cond, &actx->mtx); in hda_audio_ctxt_thr() 874 actx->do_transfer(actx->priv); in hda_audio_ctxt_thr() 888 assert(actx); in hda_audio_ctxt_init() 894 memset(actx, 0, sizeof(*actx)); in hda_audio_ctxt_init() 896 actx->run = 0; in hda_audio_ctxt_init() 926 assert(actx); in hda_audio_ctxt_start() 930 if (actx->run) in hda_audio_ctxt_start() 934 err = (* actx->do_setup)(actx->priv); in hda_audio_ctxt_start() 936 actx->run = 1; in hda_audio_ctxt_start() [all …]
|
| /freebsd-14.2/contrib/wpa/src/crypto/ |
| H A D | crypto_nettle.c | 263 struct aes_ctx *actx = ctx; in aes_encrypt() local 264 nettle_aes_encrypt(actx, AES_BLOCK_SIZE, crypt, plain); in aes_encrypt() 271 struct aes_ctx *actx = ctx; in aes_encrypt_deinit() local 272 bin_clear_free(actx, sizeof(*actx)); in aes_encrypt_deinit() 294 struct aes_ctx *actx = ctx; in aes_decrypt() local 295 nettle_aes_decrypt(actx, AES_BLOCK_SIZE, plain, crypt); in aes_decrypt() 302 struct aes_ctx *actx = ctx; in aes_decrypt_deinit() local 303 bin_clear_free(actx, sizeof(*actx)); in aes_decrypt_deinit()
|
| H A D | crypto_openssl.c | 624 AES_KEY actx; in aes_wrap() 629 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap() 631 res = AES_wrap_key(&actx, NULL, cipher, plain, n * 8); in aes_wrap() 632 OPENSSL_cleanse(&actx, sizeof(actx)); in aes_wrap() 668 AES_KEY actx; in aes_unwrap() 673 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap() 675 res = AES_unwrap_key(&actx, NULL, plain, cipher, (n + 1) * 8); in aes_unwrap() 676 OPENSSL_cleanse(&actx, sizeof(actx)); in aes_unwrap()
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/include/isc/ |
| H A D | timer.h | 347 isc_timermgr_createinctx(isc_mem_t *mctx, isc_appctx_t *actx,
|
| H A D | task.h | 656 isc_taskmgr_createinctx(isc_mem_t *mctx, isc_appctx_t *actx,
|
| H A D | socket.h | 941 isc_socketmgr_createinctx(isc_mem_t *mctx, isc_appctx_t *actx,
|
| /freebsd-14.2/sys/dev/qat_c2xxx/ |
| H A D | qat_ae.c | 907 uint32_t cnt, actx; in qat_ae_wait_num_cycles() local 933 &actx) == 0) { in qat_ae_wait_num_cycles() 934 if ((actx & ACTIVE_CTX_STATUS_ABO) == 0) in qat_ae_wait_num_cycles() 940 if (check && qat_ae_read_4(sc, ae, ACTIVE_CTX_STATUS, &actx) == 0) { in qat_ae_wait_num_cycles() 941 if ((actx & ACTIVE_CTX_STATUS_ABO) == 0) in qat_ae_wait_num_cycles()
|