/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 165 # define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) 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 in chacha20_poly1305_init_key() 217 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_tls_cipher() local 367 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_cipher() local 490 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_cleanup() local 499 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_ctrl() local [all...] |
/third_party/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 165 # define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) 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 in chacha20_poly1305_init_key() 217 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_tls_cipher() local 367 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_cipher() local 490 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_cleanup() local 499 EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx); chacha20_poly1305_ctrl() local [all...] |
/third_party/node/deps/openssl/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 in afalg_create_sk() 463 afalg_start_cipher_sk(afalg_ctx *actx, const unsigned char *in, size_t inl, const unsigned char *iv, unsigned int enc) afalg_start_cipher_sk() argument 557 afalg_ctx *actx; afalg_cipher_init() local 627 afalg_ctx *actx; afalg_do_cipher() local 677 afalg_ctx *actx; afalg_cipher_cleanup() local [all...] |
/third_party/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 in afalg_create_sk() 463 afalg_start_cipher_sk(afalg_ctx *actx, const unsigned char *in, size_t inl, const unsigned char *iv, unsigned int enc) afalg_start_cipher_sk() argument 557 afalg_ctx *actx; afalg_cipher_init() local 627 afalg_ctx *actx; afalg_do_cipher() local 677 afalg_ctx *actx; afalg_cipher_cleanup() local [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/crypto/openssl/ |
H A D | openssl.c | 204 EVP_CIPHER_CTX *actx; in ngtcp2_crypto_aead_ctx_encrypt_init() local 210 actx = EVP_CIPHER_CTX_new(); in ngtcp2_crypto_aead_ctx_encrypt_init() 211 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_encrypt_init() 227 if (!EVP_EncryptInit_ex(actx, cipher, NULL, NULL, NULL) || in ngtcp2_crypto_aead_ctx_encrypt_init() 229 !EVP_CIPHER_CTX_set_params(actx, params) || in ngtcp2_crypto_aead_ctx_encrypt_init() 231 !EVP_CIPHER_CTX_ctrl(actx, EVP_CTRL_AEAD_SET_IVLEN, (int)noncelen, in ngtcp2_crypto_aead_ctx_encrypt_init() 234 !EVP_CIPHER_CTX_ctrl(actx, EVP_CTRL_AEAD_SET_TAG, (int)taglen, NULL)) || in ngtcp2_crypto_aead_ctx_encrypt_init() 236 !EVP_EncryptInit_ex(actx, NULL, NULL, key, NULL)) { in ngtcp2_crypto_aead_ctx_encrypt_init() 237 EVP_CIPHER_CTX_free(actx); in ngtcp2_crypto_aead_ctx_encrypt_init() 241 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 251 EVP_CIPHER_CTX *actx; ngtcp2_crypto_aead_ctx_decrypt_init() local 302 EVP_CIPHER_CTX *actx; ngtcp2_crypto_cipher_ctx_encrypt_init() local 496 EVP_CIPHER_CTX *actx = aead_ctx->native_handle; ngtcp2_crypto_encrypt() local 535 EVP_CIPHER_CTX *actx = aead_ctx->native_handle; ngtcp2_crypto_decrypt() local 580 EVP_CIPHER_CTX *actx = hp_ctx->native_handle; ngtcp2_crypto_hp_mask() local [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/crypto/picotls/ |
H A D | picotls.c | 178 ptls_aead_context_t *actx; in ngtcp2_crypto_aead_ctx_encrypt_init() local 184 actx = ptls_aead_new_direct(cipher, /* is_enc = */ 1, key, iv); in ngtcp2_crypto_aead_ctx_encrypt_init() 185 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_encrypt_init() 189 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 199 ptls_aead_context_t *actx; in ngtcp2_crypto_aead_ctx_decrypt_init() local 205 actx = ptls_aead_new_direct(cipher, /* is_enc = */ 0, key, iv); in ngtcp2_crypto_aead_ctx_decrypt_init() 206 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_decrypt_init() 210 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_decrypt_init() 224 ptls_cipher_context_t *actx; in ngtcp2_crypto_cipher_ctx_encrypt_init() local 226 actx in ngtcp2_crypto_cipher_ctx_encrypt_init() 303 ptls_aead_context_t *actx = aead_ctx->native_handle; ngtcp2_crypto_encrypt() local 322 ptls_aead_context_t *actx = aead_ctx->native_handle; ngtcp2_crypto_decrypt() local 342 ptls_cipher_context_t *actx = hp_ctx->native_handle; ngtcp2_crypto_hp_mask() local [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/crypto/wolfssl/ |
H A D | wolfssl.c | 152 WOLFSSL_EVP_CIPHER_CTX *actx; in ngtcp2_crypto_aead_ctx_encrypt_init() local 156 actx = wolfSSL_quic_crypt_new(cipher, key, iv, /* encrypt */ 1); in ngtcp2_crypto_aead_ctx_encrypt_init() 157 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_encrypt_init() 161 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 169 WOLFSSL_EVP_CIPHER_CTX *actx; in ngtcp2_crypto_aead_ctx_decrypt_init() local 173 actx = wolfSSL_quic_crypt_new(cipher, key, iv, /* encrypt */ 0); in ngtcp2_crypto_aead_ctx_decrypt_init() 174 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_decrypt_init() 178 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_decrypt_init() 191 WOLFSSL_EVP_CIPHER_CTX *actx; in ngtcp2_crypto_cipher_ctx_encrypt_init() local 193 actx in ngtcp2_crypto_cipher_ctx_encrypt_init() 278 WOLFSSL_EVP_CIPHER_CTX *actx = hp_ctx->native_handle; ngtcp2_crypto_hp_mask() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
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.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()
|
/third_party/openssl/providers/implementations/ciphers/ |
H A D | cipher_sm4_ccm_hw.c | 19 PROV_SM4_CCM_CTX *actx = (PROV_SM4_CCM_CTX *)ctx; in ccm_sm4_initkey() local 21 ossl_sm4_set_key(key, &actx->ks.ks); in ccm_sm4_initkey() 22 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ks.ks, in ccm_sm4_initkey()
|
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_sm4_gcm_hw.c | 19 PROV_SM4_GCM_CTX *actx = (PROV_SM4_GCM_CTX *)ctx; in sm4_gcm_initkey() local 20 SM4_KEY *ks = &actx->ks.ks; in sm4_gcm_initkey()
|
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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/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() [all...] |
H A D | crypto_openssl.c | 433 AES_KEY actx; in aes_wrap() local 438 if (AES_set_encrypt_key(kek, kek_len << 3, &actx)) in aes_wrap() 440 res = AES_wrap_key(&actx, NULL, cipher, plain, n * 8); in aes_wrap() 441 OPENSSL_cleanse(&actx, sizeof(actx)); in aes_wrap() 449 AES_KEY actx; in aes_unwrap() local 454 if (AES_set_decrypt_key(kek, kek_len << 3, &actx)) in aes_unwrap() 456 res = AES_unwrap_key(&actx, NULL, plain, cipher, (n + 1) * 8); in aes_unwrap() 457 OPENSSL_cleanse(&actx, sizeof(actx)); in aes_unwrap() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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() [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/crypto/boringssl/ |
H A D | boringssl.c | 202 EVP_AEAD_CTX *actx; in ngtcp2_crypto_aead_ctx_encrypt_init() local 206 actx = EVP_AEAD_CTX_new(cipher, key, keylen, EVP_AEAD_DEFAULT_TAG_LENGTH); in ngtcp2_crypto_aead_ctx_encrypt_init() 207 if (actx == NULL) { in ngtcp2_crypto_aead_ctx_encrypt_init() 211 aead_ctx->native_handle = actx; in ngtcp2_crypto_aead_ctx_encrypt_init() 330 EVP_AEAD_CTX *actx = aead_ctx->native_handle; in ngtcp2_crypto_encrypt() local 334 if (EVP_AEAD_CTX_seal(actx, dest, &outlen, max_outlen, nonce, noncelen, in ngtcp2_crypto_encrypt() 348 EVP_AEAD_CTX *actx = aead_ctx->native_handle; in ngtcp2_crypto_decrypt() local 359 if (EVP_AEAD_CTX_open(actx, dest, &outlen, max_outlen, nonce, noncelen, in ngtcp2_crypto_decrypt()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | dir.c | 1908 ntfs_attr_search_ctx *actx = NULL; in ntfs_delete() local 1943 actx = ntfs_attr_get_search_ctx(ni, NULL); in ntfs_delete() 1944 if (!actx) in ntfs_delete() 1948 CASE_SENSITIVE, 0, NULL, 0, actx))) { in ntfs_delete() 1954 fn = (FILE_NAME_ATTR*)((u8*)actx->attr + in ntfs_delete() 1955 le16_to_cpu(actx->attr->value_offset)); in ntfs_delete() 1996 ntfs_attr_reinit_search_ctx(actx); in ntfs_delete() 2011 ntfs_attr_reinit_search_ctx(actx); in ntfs_delete() 2020 if (ntfs_index_remove(dir_ni, ni, fn, le32_to_cpu(actx->attr->value_length))) in ntfs_delete() 2028 if ((ni->mrec->link_count == const_cpu_to_le16(1)) && !actx in ntfs_delete() 2505 ntfs_attr_search_ctx *actx; set_namespace() local 2868 ntfs_attr_search_ctx *actx; ntfs_dir_link_cnt() local [all...] |
H A D | index.c | 68 ntfs_inode_mark_dirty(ictx->actx->ntfs_ino); in ntfs_index_entry_mark_dirty() 149 if (icx->actx) in ntfs_index_ctx_free() 150 ntfs_attr_put_search_ctx(icx->actx); in ntfs_index_ctx_free() 786 ir = ntfs_ir_lookup(ni, icx->name, icx->name_len, &icx->actx); in ntfs_index_lookup() 882 if (icx->actx) { in ntfs_index_lookup() 883 ntfs_attr_put_search_ctx(icx->actx); in ntfs_index_lookup() 884 icx->actx = NULL; in ntfs_index_lookup() 1602 ntfs_inode_mark_dirty(icx->actx->ntfs_ino); in ntfs_ie_add() 1691 ntfs_inode_mark_dirty(icx->actx->ntfs_ino); in ntfs_ih_takeout() 1982 ntfs_inode_mark_dirty(icx->actx in ntfs_index_remove() [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | swapchain9.c | 65 This->actx = pCTX; in NineSwapChain9_ctor() 74 params2.AllowDISCARDDelayedRelease = This->actx->discard_delayed_release; in NineSwapChain9_ctor() 75 params2.TearFreeDISCARD = This->actx->tearfree_discard; in NineSwapChain9_ctor() 242 This->desired_fences = This->actx->throttling ? This->actx->throttling_value + 1 : 0; in NineSwapChain9_Resize() 247 if (This->actx->vblank_mode == 0) in NineSwapChain9_Resize() 249 else if (This->actx->vblank_mode == 3) in NineSwapChain9_Resize() 286 if (This->actx->linear_framebuffer || in NineSwapChain9_Resize() 291 (This->actx->ref && This->actx in NineSwapChain9_Resize() [all...] |
/third_party/ntfs-3g/src/ |
H A D | ntfs-3g_common.c | 690 int ntfs_fuse_listxattr_common(ntfs_inode *ni, ntfs_attr_search_ctx *actx, argument 702 0, NULL, 0, actx)) { 706 if (!actx->attr->name_length) 709 (ntfschar *)((u8*)actx->attr + 710 le16_to_cpu(actx->attr->name_offset)), 711 actx->attr->name_length, &tmp_name, 0);
|