/third_party/curl/lib/ |
H A D | http_proxy.c | 171 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_connect() local 186 if(!ctx->cf_protocol) { in http_proxy_cf_connect() 220 ctx->cf_protocol = cf_protocol; in http_proxy_cf_connect() 230 DEBUGASSERT(ctx->cf_protocol); in http_proxy_cf_connect() 262 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_destroy() local 266 free(ctx); in http_proxy_cf_destroy() 272 struct cf_proxy_ctx *ctx = cf->ctx; in http_proxy_cf_close() local 316 struct cf_proxy_ctx *ctx = NULL; Curl_cf_http_proxy_insert_after() local [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_transfer.c | 48 static void r300_copy_from_tiled_texture(struct pipe_context *ctx, in r300_copy_from_tiled_texture() argument 56 ctx->resource_copy_region(ctx, dst, 0, 0, 0, 0, in r300_copy_from_tiled_texture() 75 ctx->blit(ctx, &blit); in r300_copy_from_tiled_texture() 80 static void r300_copy_into_tiled_texture(struct pipe_context *ctx, in r300_copy_into_tiled_texture() argument 91 ctx->resource_copy_region(ctx, tex, transfer->level, in r300_copy_into_tiled_texture() 96 r300_flush(ctx, 0, NULL); in r300_copy_into_tiled_texture() 100 r300_texture_transfer_map(struct pipe_context *ctx, in r300_texture_transfer_map() argument 243 r300_texture_transfer_unmap(struct pipe_context *ctx, struct pipe_transfer *transfer) r300_texture_transfer_unmap() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | cost_enc.c | 61 int ctype, band, ctx; in VP8CalculateLevelCosts() local 68 for (ctx = 0; ctx < NUM_CTX; ++ctx) { in VP8CalculateLevelCosts() 69 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts() 70 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts() 71 const int cost0 = (ctx > 0) ? VP8BitCost(1, p[0]) : 0; in VP8CalculateLevelCosts() 83 for (ctx = 0; ctx < NUM_CTX; ++ctx) { in VP8CalculateLevelCosts() 223 int ctx; VP8GetCostLuma4() local 249 const int ctx = it->top_nz_[x] + it->left_nz_[y]; VP8GetCostLuma16() local 270 const int ctx = it->top_nz_[4 + ch + x] + it->left_nz_[4 + ch + y]; VP8GetCostUV() local 289 VP8RecordCoeffs(int ctx, const VP8Residual* const res) VP8RecordCoeffs() argument [all...] |
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_qpack.c | 778 * ctx->max_dtable_capacity. 780 static int qpack_context_can_reference(nghttp3_qpack_context *ctx, in qpack_context_can_reference() argument 782 nghttp3_qpack_entry *ent = nghttp3_qpack_context_dtable_get(ctx, absidx); in qpack_context_can_reference() 783 return ctx->dtable_sum - ent->sum <= ctx->max_dtable_capacity; in qpack_context_can_reference() 805 !qpack_context_can_reference(&encoder->ctx, p->absidx)) { in encoder_qpack_map_find() 827 * qpack_context_init initializes |ctx|. |hard_max_dtable_capacity| 832 * ctx->max_dtable_capacity and it is initialized to 0. 834 * ctx->max_dtable_capacity. 842 static int qpack_context_init(nghttp3_qpack_context *ctx, in qpack_context_init() argument 871 qpack_context_free(nghttp3_qpack_context *ctx) qpack_context_free() argument 1406 qpack_context_check_draining(nghttp3_qpack_context *ctx, uint64_t absidx) qpack_context_check_draining() argument 2021 nghttp3_qpack_context_dtable_add(nghttp3_qpack_context *ctx, nghttp3_qpack_nv *qnv, nghttp3_qpack_map *dtable_map, uint32_t hash) nghttp3_qpack_context_dtable_add() argument 2199 nghttp3_qpack_context_dtable_get(nghttp3_qpack_context *ctx, uint64_t absidx) nghttp3_qpack_context_dtable_get() argument 2211 nghttp3_qpack_context_dtable_top(nghttp3_qpack_context *ctx) nghttp3_qpack_context_dtable_top() argument 3073 nghttp3_qpack_context *ctx = &decoder->ctx; nghttp3_qpack_decoder_set_max_dtable_capacity() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce112/ |
H A D | dce112_resource.c | 63 dc->ctx->logger 436 #define CTX ctx 472 struct dc_context *ctx, in read_dce_straps() 483 struct dc_context *ctx, unsigned int inst) in create_audio() 485 return dce_audio_create(ctx, inst, in create_audio() 491 struct dc_context *ctx, in dce112_timing_generator_create() 501 dce110_timing_generator_construct(tg110, ctx, instance, offsets); in dce112_timing_generator_create() 507 struct dc_context *ctx) in dce112_stream_encoder_create() 515 dce110_stream_encoder_construct(enc110, ctx, ctx in dce112_stream_encoder_create() 471 read_dce_straps( struct dc_context *ctx, struct resource_straps *straps) read_dce_straps() argument 482 create_audio( struct dc_context *ctx, unsigned int inst) create_audio() argument 490 dce112_timing_generator_create( struct dc_context *ctx, uint32_t instance, const struct dce110_timing_generator_offsets *offsets) dce112_timing_generator_create() argument 505 dce112_stream_encoder_create( enum engine_id eng_id, struct dc_context *ctx) dce112_stream_encoder_create() argument 536 dce112_hwseq_create( struct dc_context *ctx) dce112_hwseq_create() argument 575 dce112_mem_input_create( struct dc_context *ctx, uint32_t inst) dce112_mem_input_create() argument 597 dce112_transform_create( struct dc_context *ctx, uint32_t inst) dce112_transform_create() argument 624 dce112_link_encoder_create( struct dc_context *ctx, const struct encoder_init_data *enc_init_data) dce112_link_encoder_create() argument 664 dce112_ipp_create( struct dc_context *ctx, uint32_t inst) dce112_ipp_create() argument 679 dce112_opp_create( struct dc_context *ctx, uint32_t inst) dce112_opp_create() argument 694 dce112_aux_engine_create( struct dc_context *ctx, uint32_t inst) dce112_aux_engine_create() argument 732 dce112_i2c_hw_create( struct dc_context *ctx, uint32_t inst) dce112_i2c_hw_create() argument 747 dce112_clock_source_create( struct dc_context *ctx, struct dc_bios *bios, enum clock_source_id id, const struct dce110_clk_src_regs *regs, bool dp_clk_src) dce112_clock_source_create() argument 1228 struct dc_context *ctx = dc->ctx; dce112_resource_construct() local [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/signature/ |
H A D | rsa_sig.c | 198 static int rsa_pss_compute_saltlen(PROV_RSA_CTX *ctx) in rsa_pss_compute_saltlen() argument 200 int saltlen = ctx->saltlen; in rsa_pss_compute_saltlen() 203 saltlen = EVP_MD_get_size(ctx->md); in rsa_pss_compute_saltlen() 205 saltlen = RSA_size(ctx->rsa) - EVP_MD_get_size(ctx->md) - 2; in rsa_pss_compute_saltlen() 206 if ((RSA_bits(ctx->rsa) & 0x7) == 1) in rsa_pss_compute_saltlen() 212 } else if (saltlen < ctx->min_saltlen) { in rsa_pss_compute_saltlen() 215 ctx->min_saltlen, saltlen); in rsa_pss_compute_saltlen() 221 static unsigned char *rsa_generate_signature_aid(PROV_RSA_CTX *ctx, in rsa_generate_signature_aid() argument 237 switch(ctx in rsa_generate_signature_aid() 283 rsa_setup_md(PROV_RSA_CTX *ctx, const char *mdname, const char *mdprops) rsa_setup_md() argument 347 rsa_setup_mgf1_md(PROV_RSA_CTX *ctx, const char *mdname, const char *mdprops) rsa_setup_mgf1_md() argument 483 setup_tbuf(PROV_RSA_CTX *ctx) setup_tbuf() argument 494 clean_tbuf(PROV_RSA_CTX *ctx) clean_tbuf() argument 500 free_tbuf(PROV_RSA_CTX *ctx) free_tbuf() argument [all...] |
/third_party/openssl/providers/implementations/signature/ |
H A D | rsa_sig.c | 198 static int rsa_pss_compute_saltlen(PROV_RSA_CTX *ctx) in rsa_pss_compute_saltlen() argument 200 int saltlen = ctx->saltlen; in rsa_pss_compute_saltlen() 203 saltlen = EVP_MD_get_size(ctx->md); in rsa_pss_compute_saltlen() 205 saltlen = RSA_size(ctx->rsa) - EVP_MD_get_size(ctx->md) - 2; in rsa_pss_compute_saltlen() 206 if ((RSA_bits(ctx->rsa) & 0x7) == 1) in rsa_pss_compute_saltlen() 212 } else if (saltlen < ctx->min_saltlen) { in rsa_pss_compute_saltlen() 215 ctx->min_saltlen, saltlen); in rsa_pss_compute_saltlen() 221 static unsigned char *rsa_generate_signature_aid(PROV_RSA_CTX *ctx, in rsa_generate_signature_aid() argument 237 switch(ctx in rsa_generate_signature_aid() 283 rsa_setup_md(PROV_RSA_CTX *ctx, const char *mdname, const char *mdprops) rsa_setup_md() argument 347 rsa_setup_mgf1_md(PROV_RSA_CTX *ctx, const char *mdname, const char *mdprops) rsa_setup_mgf1_md() argument 483 setup_tbuf(PROV_RSA_CTX *ctx) setup_tbuf() argument 494 clean_tbuf(PROV_RSA_CTX *ctx) clean_tbuf() argument 500 free_tbuf(PROV_RSA_CTX *ctx) free_tbuf() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
H A D | panel-ilitek-ili9881c.c | 472 static int ili9881c_switch_page(struct ili9881c *ctx, u8 page) in ili9881c_switch_page() argument 477 ret = mipi_dsi_dcs_write_buffer(ctx->dsi, buf, sizeof(buf)); in ili9881c_switch_page() 484 static int ili9881c_send_cmd_data(struct ili9881c *ctx, u8 cmd, u8 data) in ili9881c_send_cmd_data() argument 489 ret = mipi_dsi_dcs_write_buffer(ctx->dsi, buf, sizeof(buf)); in ili9881c_send_cmd_data() 498 struct ili9881c *ctx = panel_to_ili9881c(panel); in ili9881c_prepare() local 503 ret = regulator_enable(ctx->power); in ili9881c_prepare() 509 gpiod_set_value(ctx->reset, 1); in ili9881c_prepare() 512 gpiod_set_value(ctx->reset, 0); in ili9881c_prepare() 515 for (i = 0; i < ctx->desc->init_length; i++) { in ili9881c_prepare() 516 const struct ili9881c_instr *instr = &ctx in ili9881c_prepare() 545 struct ili9881c *ctx = panel_to_ili9881c(panel); ili9881c_enable() local 556 struct ili9881c *ctx = panel_to_ili9881c(panel); ili9881c_disable() local 563 struct ili9881c *ctx = panel_to_ili9881c(panel); ili9881c_unprepare() local 609 struct ili9881c *ctx = panel_to_ili9881c(panel); ili9881c_get_modes() local 642 struct ili9881c *ctx; ili9881c_dsi_probe() local 682 struct ili9881c *ctx = mipi_dsi_get_drvdata(dsi); ili9881c_dsi_remove() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | ass_split.c | 213 static uint8_t *realloc_section_array(ASSSplitContext *ctx) in realloc_section_array() argument 215 const ASSSection *section = &ass_sections[ctx->current_section]; in realloc_section_array() 216 int *count = (int *)((uint8_t *)&ctx->ass + section->offset_count); in realloc_section_array() 217 void **section_ptr = (void **)((uint8_t *)&ctx->ass + section->offset); in realloc_section_array() 255 static const char *ass_split_section(ASSSplitContext *ctx, const char *buf) in ass_split_section() argument 257 const ASSSection *section = &ass_sections[ctx->current_section]; in ass_split_section() 258 int *number = &ctx->field_number[ctx->current_section]; in ass_split_section() 259 int *order = ctx->field_order[ctx in ass_split_section() 357 ass_split(ASSSplitContext *ctx, const char *buf) ass_split() argument 384 ASSSplitContext *ctx = av_mallocz(sizeof(*ctx)); ff_ass_split() local 397 free_section(ASSSplitContext *ctx, const ASSSection *section) free_section() argument 433 ff_ass_split_dialog(ASSSplitContext *ctx, const char *buf) ff_ass_split_dialog() argument 470 ff_ass_split_free(ASSSplitContext *ctx) ff_ass_split_free() argument 578 ff_ass_style_get(ASSSplitContext *ctx, const char *style) ff_ass_style_get() argument [all...] |
/third_party/libdrm/tests/exynos/ |
H A D | exynos_fimg2d_test.c | 194 struct g2d_context *ctx; in g2d_solid_fill_test() local 199 ctx = g2d_init(dev->fd); in g2d_solid_fill_test() 200 if (!ctx) in g2d_solid_fill_test() 225 ret = g2d_solid_fill(ctx, &img, x, y, w, h); in g2d_solid_fill_test() 229 ret = g2d_exec(ctx); in g2d_solid_fill_test() 235 g2d_fini(ctx); in g2d_solid_fill_test() 244 struct g2d_context *ctx; in g2d_copy_test() local 250 ctx = g2d_init(dev->fd); in g2d_copy_test() 251 if (!ctx) in g2d_copy_test() 295 ret = g2d_solid_fill(ctx, in g2d_copy_test() 328 struct g2d_context *ctx; g2d_move_test() local 452 struct g2d_context *ctx; g2d_copy_with_scale_test() local 540 struct g2d_context *ctx; g2d_blend_test() local 641 struct g2d_context *ctx; g2d_checkerboard_test() local [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_gmem.c | 474 struct fd_screen *screen = batch->ctx->screen; in gmem_key_init() 546 struct fd_screen *screen = batch->ctx->screen; in lookup_gmem_state() 595 struct fd_context *ctx = batch->ctx; variable 598 simple_mtx_lock(&ctx->gmem_lock); 600 ctx->emit_tile_init(batch); 603 ctx->stats.batch_restore++; 611 ctx->emit_tile_prep(batch, tile); 614 ctx->emit_tile_mem2gmem(batch, tile); 617 ctx 645 struct fd_context *ctx = batch->ctx; global() variable 684 struct fd_context *ctx = batch->ctx; fd_gmem_render_tiles() local [all...] |
/base/security/crypto_framework/interfaces/kits/native/include/ |
H A D | crypto_signature.h | 78 * @param ctx Indicates the pointer to the verify context. 91 * @param ctx Indicates the verify context. 102 OH_Crypto_ErrCode OH_CryptoVerify_Init(OH_CryptoVerify *ctx, OH_CryptoPubKey *pubKey); 107 * @param ctx Indicates the verify context. 118 OH_Crypto_ErrCode OH_CryptoVerify_Update(OH_CryptoVerify *ctx, Crypto_DataBlob *in); 123 * @param ctx Indicates the verify context. 131 bool OH_CryptoVerify_Final(OH_CryptoVerify *ctx, Crypto_DataBlob *in, Crypto_DataBlob *signData); 136 * @param ctx Indicates the verify context. 146 OH_Crypto_ErrCode OH_CryptoVerify_Recover(OH_CryptoVerify *ctx, Crypto_DataBlob *signData, 152 * @param ctx Indicate [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
H A D | spu_notify.c | 18 void spu_switch_notify(struct spu *spu, struct spu_context *ctx) in spu_switch_notify() argument 21 ctx ? ctx->object_id : 0, spu); in spu_switch_notify() 41 void spu_set_profile_private_kref(struct spu_context *ctx, in spu_set_profile_private_kref() argument 45 ctx->prof_priv_kref = prof_info_kref; in spu_set_profile_private_kref() 46 ctx->prof_priv_release = prof_info_release; in spu_set_profile_private_kref() 50 void *spu_get_profile_private_kref(struct spu_context *ctx) in spu_get_profile_private_kref() argument 52 return ctx->prof_priv_kref; in spu_get_profile_private_kref()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_bpf_sk_storage_helpers.c | 17 int delete_bpf_sk_storage_map(struct bpf_iter__bpf_sk_storage_map *ctx) in delete_bpf_sk_storage_map() argument 19 if (ctx->sk) in delete_bpf_sk_storage_map() 20 bpf_sk_storage_delete(&sk_stg_map, ctx->sk); in delete_bpf_sk_storage_map() 26 int fill_socket_owner(struct bpf_iter__task_file *ctx) in fill_socket_owner() argument 28 struct task_struct *task = ctx->task; in fill_socket_owner() 29 struct file *file = ctx->file; in fill_socket_owner() 50 int negate_socket_local_storage(struct bpf_iter__tcp *ctx) in negate_socket_local_storage() argument 52 struct sock_common *sk_common = ctx->sk_common; in negate_socket_local_storage()
|
/kernel/linux/linux-6.6/drivers/scsi/elx/libefc/ |
H A D | efc_domain.h | 20 __efc_domain_init(struct efc_sm_ctx *ctx, enum efc_sm_event evt, void *arg); 22 __efc_domain_wait_alloc(struct efc_sm_ctx *ctx, enum efc_sm_event evt, 25 __efc_domain_allocated(struct efc_sm_ctx *ctx, enum efc_sm_event evt, 28 __efc_domain_wait_attach(struct efc_sm_ctx *ctx, enum efc_sm_event evt, 31 __efc_domain_ready(struct efc_sm_ctx *ctx, enum efc_sm_event evt, void *arg); 33 __efc_domain_wait_nports_free(struct efc_sm_ctx *ctx, enum efc_sm_event evt, 36 __efc_domain_wait_shutdown(struct efc_sm_ctx *ctx, enum efc_sm_event evt, 39 __efc_domain_wait_domain_lost(struct efc_sm_ctx *ctx, enum efc_sm_event evt,
|
/third_party/mbedtls/3rdparty/everest/include/everest/ |
H A D | x25519.h | 53 * \param ctx The x25519 context to initialize. 55 void mbedtls_x25519_init( mbedtls_x25519_context *ctx ); 60 * \param ctx The context to free. 62 void mbedtls_x25519_free( mbedtls_x25519_context *ctx ); 71 * \param ctx The x25519 context. 81 int mbedtls_x25519_make_params( mbedtls_x25519_context *ctx, size_t *olen, 91 * \param ctx The x25519 context. 99 int mbedtls_x25519_read_params( mbedtls_x25519_context *ctx, 111 * \param ctx The x25519 context to set up. 120 int mbedtls_x25519_get_params( mbedtls_x25519_context *ctx, cons [all...] |
/third_party/mbedtls/include/mbedtls/ |
H A D | camellia.h | 54 * \param ctx The CAMELLIA context to be initialized. 57 void mbedtls_camellia_init(mbedtls_camellia_context *ctx); 62 * \param ctx The CAMELLIA context to be cleared. This may be \c NULL, 66 void mbedtls_camellia_free(mbedtls_camellia_context *ctx); 71 * \param ctx The CAMELLIA context to use. This must be initialized. 80 int mbedtls_camellia_setkey_enc(mbedtls_camellia_context *ctx, 88 * \param ctx The CAMELLIA context to use. This must be initialized. 97 int mbedtls_camellia_setkey_dec(mbedtls_camellia_context *ctx, 105 * \param ctx The CAMELLIA context to use. This must be initialized 117 int mbedtls_camellia_crypt_ecb(mbedtls_camellia_context *ctx, [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | extensions.h | 52 extern GLubyte *_mesa_make_extension_string(struct gl_context *ctx); 54 extern void _mesa_override_extensions(struct gl_context *ctx); 57 _mesa_get_extension_count(struct gl_context *ctx); 60 _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index); 99 _mesa_has_##name_str(const struct gl_context *ctx) \ 101 return ctx->Extensions.driver_cap && (ctx->Extensions.Version >= \ 102 _mesa_extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_query_acc.h | 38 struct etna_acc_query * (*allocate)(struct etna_context *ctx, unsigned query_type); 40 void (*resume)(struct etna_acc_query *aq, struct etna_context *ctx); 41 void (*suspend)(struct etna_acc_query *aq, struct etna_context *ctx); 53 struct list_head node; /* list-node in ctx->active_hw_queries */ 65 etna_acc_create_query(struct etna_context *ctx, unsigned query_type); 68 etna_acc_query_suspend(struct etna_acc_query *aq, struct etna_context *ctx) in etna_acc_query_suspend() argument 72 p->suspend(aq, ctx); in etna_acc_query_suspend() 77 etna_acc_query_resume(struct etna_acc_query *aq, struct etna_context *ctx) in etna_acc_query_resume() argument 81 p->resume(aq, ctx); in etna_acc_query_resume()
|
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_ccm_hw.c | 22 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ccm.ks.ks, \ 24 ctx->str = ctx->enc ? (ccm128_f)fn_ccm_enc : (ccm128_f)fn_ccm_dec; \ 25 ctx->key_set = 1; 27 static int ccm_generic_aes_initkey(PROV_CCM_CTX *ctx, const unsigned char *key, in ccm_generic_aes_initkey() argument 30 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx; in ccm_generic_aes_initkey()
|
H A D | cipher_sm4_hw.c | 12 static int cipher_hw_sm4_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_sm4_initkey() argument 15 PROV_SM4_CTX *sctx = (PROV_SM4_CTX *)ctx; in cipher_hw_sm4_initkey() 19 ctx->ks = ks; in cipher_hw_sm4_initkey() 20 if (ctx->enc in cipher_hw_sm4_initkey() 21 || (ctx->mode != EVP_CIPH_ECB_MODE in cipher_hw_sm4_initkey() 22 && ctx->mode != EVP_CIPH_CBC_MODE)) in cipher_hw_sm4_initkey() 23 ctx->block = (block128_f)ossl_sm4_encrypt; in cipher_hw_sm4_initkey() 25 ctx->block = (block128_f)ossl_sm4_decrypt; in cipher_hw_sm4_initkey()
|
/third_party/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_ccm_hw.c | 22 CRYPTO_ccm128_init(&ctx->ccm_ctx, ctx->m, ctx->l, &actx->ccm.ks.ks, \ 24 ctx->str = ctx->enc ? (ccm128_f)fn_ccm_enc : (ccm128_f)fn_ccm_dec; \ 25 ctx->key_set = 1; 27 static int ccm_generic_aes_initkey(PROV_CCM_CTX *ctx, const unsigned char *key, in ccm_generic_aes_initkey() argument 30 PROV_AES_CCM_CTX *actx = (PROV_AES_CCM_CTX *)ctx; in ccm_generic_aes_initkey()
|
H A D | cipher_sm4_hw.c | 12 static int cipher_hw_sm4_initkey(PROV_CIPHER_CTX *ctx, in cipher_hw_sm4_initkey() argument 15 PROV_SM4_CTX *sctx = (PROV_SM4_CTX *)ctx; in cipher_hw_sm4_initkey() 19 ctx->ks = ks; in cipher_hw_sm4_initkey() 20 if (ctx->enc in cipher_hw_sm4_initkey() 21 || (ctx->mode != EVP_CIPH_ECB_MODE in cipher_hw_sm4_initkey() 22 && ctx->mode != EVP_CIPH_CBC_MODE)) in cipher_hw_sm4_initkey() 23 ctx->block = (block128_f)ossl_sm4_encrypt; in cipher_hw_sm4_initkey() 25 ctx->block = (block128_f)ossl_sm4_decrypt; in cipher_hw_sm4_initkey()
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | hmac.h | 27 int HMAC_CTX_reset(HMAC_CTX *ctx); 28 void HMAC_CTX_free(HMAC_CTX *ctx); 30 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, 33 /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 35 /*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, 37 /*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, 44 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 45 const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);
|
/third_party/openssl/test/ |
H A D | provider_fallback_test.c | 15 static int test_provider(OSSL_LIB_CTX *ctx) in test_provider() argument 21 ok = TEST_true(OSSL_PROVIDER_available(ctx, "default")) in test_provider() 22 && TEST_ptr(rsameth = EVP_KEYMGMT_fetch(ctx, "RSA", NULL)) in test_provider() 37 OSSL_LIB_CTX *ctx = NULL; in test_explicit_provider() local 41 ok = TEST_ptr(ctx = OSSL_LIB_CTX_new()) in test_explicit_provider() 42 && TEST_ptr(prov = OSSL_PROVIDER_load(ctx, "default")) in test_explicit_provider() 43 && test_provider(ctx) in test_explicit_provider() 46 OSSL_LIB_CTX_free(ctx); in test_explicit_provider()
|