/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 …]
|
/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_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_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_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_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 | 86 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 87 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_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_sm4_ccm_hw_rv64i.inc | 19 PROV_SM4_CCM_CTX *actx = (PROV_SM4_CCM_CTX *)ctx;
|
H A D | cipher_aes_gcm_hw_vaes_avx512.inc | 48 PROV_AES_GCM_CTX *actx = (PROV_AES_GCM_CTX *)ctx; 49 AES_KEY *ks = &actx->ks.ks;
|
/openssl/engines/ |
H A D | e_afalg.c | 446 actx->bfd = actx->sfd = -1; in afalg_create_sk() 467 actx->sfd = accept(actx->bfd, NULL, 0); in afalg_create_sk() 481 actx->bfd = actx->sfd = -1; in afalg_create_sk() 547 ret = splice(actx->zc_pipe[0], NULL, actx->sfd, NULL, inl, 0); in afalg_start_cipher_sk() 579 afalg_ctx *actx; in afalg_cipher_init() local 641 close(actx->sfd); in afalg_cipher_init() 649 afalg_ctx *actx; in afalg_do_cipher() local 660 if (actx == NULL || actx->init_done != MAGIC_INIT_NUM) { in afalg_do_cipher() 683 ret = afalg_fin_cipher_aio(&actx->aio, actx->sfd, out, inl); in afalg_do_cipher() 699 afalg_ctx *actx; in afalg_cipher_cleanup() local [all …]
|