/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 165 # define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) argument 171 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); in chacha20_poly1305_init_key() local 176 actx->len.aad = 0; in chacha20_poly1305_init_key() 177 actx->len.text = 0; in chacha20_poly1305_init_key() 178 actx->aad = 0; in chacha20_poly1305_init_key() 179 actx->mac_inited = 0; in chacha20_poly1305_init_key() 180 actx->tls_payload_length = NO_TLS_PAYLOAD_LENGTH; in chacha20_poly1305_init_key() 186 if (actx->nonce_len <= CHACHA_CTR_SIZE) in chacha20_poly1305_init_key() 187 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, in chacha20_poly1305_init_key() 188 actx->nonce_len); in chacha20_poly1305_init_key() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_gcm_hw_s390x.inc | 27 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 30 memcpy(&actx->plat.s390x.param.kma.k, key, keylen); 31 actx->plat.s390x.fc = S390X_AES_FC(keylen); 38 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 39 S390X_KMA_PARAMS *kma = &actx->plat.s390x.param.kma; 45 actx->plat.s390x.mreslen = 0; 46 actx->plat.s390x.areslen = 0; 47 actx->plat.s390x.kreslen = 0; 53 actx->plat.s390x.hsflag = 0; 70 s390x_kma(iv_zero_pad, len, NULL, 0, NULL, actx->plat.s390x.fc, kma); [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/crypto/openssl/engines/ |
H A D | e_afalg.c | 77 static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype, 405 static ossl_inline int afalg_set_key(afalg_ctx *actx, const unsigned char *key, in afalg_set_key() argument 409 ret = setsockopt(actx->bfd, SOL_ALG, ALG_SET_KEY, key, klen); in afalg_set_key() 418 static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype, in afalg_create_sk() argument 424 actx->bfd = actx->sfd = -1; in afalg_create_sk() 431 actx->bfd = socket(AF_ALG, SOCK_SEQPACKET, 0); in afalg_create_sk() 432 if (actx->bfd == -1) { in afalg_create_sk() 438 r = bind(actx->bfd, (struct sockaddr *)&sa, sizeof(sa)); in afalg_create_sk() 445 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 446 if (actx->sfd < 0) { in afalg_create_sk() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | hda_codec.c | 160 static int hda_audio_ctxt_init(struct hda_audio_ctxt *actx, const char *tname, 162 static int hda_audio_ctxt_start(struct hda_audio_ctxt *actx); 163 static int hda_audio_ctxt_stop(struct hda_audio_ctxt *actx); 186 struct hda_audio_ctxt actx; member 427 err = hda_audio_ctxt_init(&st->actx, "hda-audio-output", in hda_codec_init() 445 err = hda_audio_ctxt_init(&st->actx, "hda-audio-input", in hda_codec_init() 584 struct hda_audio_ctxt *actx = NULL; in hda_codec_notify() local 605 actx = &st->actx; in hda_codec_notify() 608 err = hda_audio_ctxt_start(actx); in hda_codec_notify() 610 err = hda_audio_ctxt_stop(actx); in hda_codec_notify() [all …]
|
/freebsd/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/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/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()
|