| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | e_chacha20_poly1305.c | 168 #define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) argument 174 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); in chacha20_poly1305_init_key() local 179 actx->len.aad = 0; in chacha20_poly1305_init_key() 180 actx->len.text = 0; in chacha20_poly1305_init_key() 181 actx->aad = 0; in chacha20_poly1305_init_key() 182 actx->mac_inited = 0; in chacha20_poly1305_init_key() 183 actx->tls_payload_length = NO_TLS_PAYLOAD_LENGTH; in chacha20_poly1305_init_key() 189 if (actx->nonce_len <= CHACHA_CTR_SIZE) in chacha20_poly1305_init_key() 190 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, in chacha20_poly1305_init_key() 191 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_aes_gcm_hw_rv64i.inc | 21 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 22 AES_KEY *ks = &actx->ks.ks; 43 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 44 AES_KEY *ks = &actx->ks.ks; 76 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 77 AES_KEY *ks = &actx->ks.ks;
|
| H A D | cipher_aes_gcm_hw_rv32i.inc | 18 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 19 AES_KEY *ks = &actx->ks.ks; 30 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 31 AES_KEY *ks = &actx->ks.ks;
|
| 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_sm4_ccm_hw.c | 18 fn_set_enc_key(key, &actx->ks.ks); \ 19 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ks.ks, \ 27 PROV_SM4_CCM_CTX *actx = (PROV_SM4_CCM_CTX *)ctx; in ccm_sm4_initkey() local
|
| 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_sm4_gcm_hw_rv64i.inc | 19 PROV_SM4_GCM_CTX *actx = (PROV_SM4_GCM_CTX *)ctx; 20 SM4_KEY *ks = &actx->ks.ks;
|
| 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_sm4_gcm_hw.c | 26 PROV_SM4_GCM_CTX *actx = (PROV_SM4_GCM_CTX *)ctx; in sm4_gcm_initkey() local 27 SM4_KEY *ks = &actx->ks.ks; in sm4_gcm_initkey()
|
| 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_ccm_hw_rv32i.inc | 18 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx; 28 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx;
|
| H A D | cipher_aes_ccm_hw_rv64i.inc | 18 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx; 42 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx;
|
| 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 | 82 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 83 AES_KEY *ks = &actx->ks.ks;
|
| H A D | cipher_aes_gcm_hw_ppc.inc | 18 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 19 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;
|
| H A D | cipher_sm4_ccm_hw_rv64i.inc | 19 PROV_SM4_CCM_CTX *actx = (PROV_SM4_CCM_CTX *)ctx;
|
| /freebsd/crypto/openssl/engines/ |
| H A D | e_afalg.c | 78 static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype, 427 static ossl_inline int afalg_set_key(afalg_ctx *actx, const unsigned char *key, in afalg_set_key() argument 431 ret = setsockopt(actx->bfd, SOL_ALG, ALG_SET_KEY, key, klen); in afalg_set_key() 440 static int afalg_create_sk(afalg_ctx *actx, const char *ciphertype, in afalg_create_sk() argument 446 actx->bfd = actx->sfd = -1; in afalg_create_sk() 453 actx->bfd = socket(AF_ALG, SOCK_SEQPACKET, 0); in afalg_create_sk() 454 if (actx->bfd == -1) { in afalg_create_sk() 460 r = bind(actx->bfd, (struct sockaddr *)&sa, sizeof(sa)); in afalg_create_sk() 467 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 468 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/crypto/krb5/src/lib/krb5/krb/ |
| H A D | t_ser.c | 93 ser_auth_context(krb5_auth_context actx) in ser_auth_context() argument 99 check(k5_size_auth_context(actx, &elen)); in ser_auth_context() 104 check(k5_externalize_auth_context(actx, &bp, &blen)); in ser_auth_context() 221 krb5_auth_context actx; in ser_acontext_test() local 233 check(krb5_auth_con_init(NULL, &actx)); in ser_acontext_test() 234 ser_auth_context(actx); in ser_acontext_test() 262 check(krb5_auth_con_setaddrs(NULL, actx, &local_address, &remote_address)); in ser_acontext_test() 263 check(krb5_auth_con_setports(NULL, actx, &local_address, &remote_address)); in ser_acontext_test() 264 ser_auth_context(actx); in ser_acontext_test() 279 check(krb5_auth_con_setuseruserkey(NULL, actx, &ukeyblock)); in ser_acontext_test() [all …]
|
| H A D | pac.c | 758 mspac_request_init(krb5_context context, krb5_authdata_context actx, in mspac_request_init() argument 775 mspac_import_authdata(krb5_context context, krb5_authdata_context actx, in mspac_import_authdata() argument 799 mspac_export_authdata(krb5_context context, krb5_authdata_context actx, in mspac_export_authdata() argument 841 mspac_verify(krb5_context context, krb5_authdata_context actx, in mspac_verify() argument 869 mspac_request_fini(krb5_context context, krb5_authdata_context actx, in mspac_request_fini() argument 956 mspac_get_attribute_types(krb5_context context, krb5_authdata_context actx, in mspac_get_attribute_types() argument 1015 mspac_get_attribute(krb5_context context, krb5_authdata_context actx, in mspac_get_attribute() argument 1067 mspac_set_attribute(krb5_context context, krb5_authdata_context actx, in mspac_set_attribute() argument 1101 mspac_export_internal(krb5_context context, krb5_authdata_context actx, in mspac_export_internal() argument 1128 mspac_free_internal(krb5_context context, krb5_authdata_context actx, in mspac_free_internal() argument [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()
|