Home
last modified time | relevance | path

Searched refs:vctx (Results 1 – 25 of 171) sorted by relevance

1234567

/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_context.c66 virgl_can_rebind_resource(struct virgl_context *vctx, in virgl_can_rebind_resource() argument
86 virgl_rebind_resource(struct virgl_context *vctx, in virgl_rebind_resource() argument
99 assert(virgl_can_rebind_resource(vctx, res) && in virgl_rebind_resource()
103 for (i = 0; i < vctx->num_vertex_buffers; i++) { in virgl_rebind_resource()
104 if (vctx->vertex_buffer[i].buffer.resource == res) { in virgl_rebind_resource()
105 vctx->vertex_array_dirty = true; in virgl_rebind_resource()
112 uint32_t remaining_mask = vctx->atomic_buffer_enabled_mask; in virgl_rebind_resource()
115 if (vctx->atomic_buffers[i].buffer == res) { in virgl_rebind_resource()
116 const struct pipe_shader_buffer *abo = &vctx->atomic_buffers[i]; in virgl_rebind_resource()
117 virgl_encode_set_hw_atomic_buffers(vctx, i, 1, abo); in virgl_rebind_resource()
[all …]
Dvirgl_query.c87 struct virgl_context *vctx = virgl_context(ctx); in virgl_render_condition() local
92 virgl_encoder_render_condition(vctx, handle, condition, mode); in virgl_render_condition()
98 struct virgl_context *vctx = virgl_context(ctx); in virgl_create_query() local
121 virgl_encoder_create_query(vctx, query->handle, in virgl_create_query()
130 struct virgl_context *vctx = virgl_context(ctx); in virgl_destroy_query() local
133 virgl_encode_delete_object(vctx, query->handle, VIRGL_OBJECT_QUERY); in virgl_destroy_query()
142 struct virgl_context *vctx = virgl_context(ctx); in virgl_begin_query() local
145 virgl_encoder_begin_query(vctx, query->handle); in virgl_begin_query()
154 struct virgl_context *vctx = virgl_context(ctx); in virgl_end_query() local
165 virgl_encoder_end_query(vctx, query->handle); in virgl_end_query()
[all …]
Dvirgl_streamout.c36 struct virgl_context *vctx = virgl_context(ctx); in virgl_create_so_target() local
57 virgl_encoder_create_so_target(vctx, handle, res, buffer_offset, buffer_size); in virgl_create_so_target()
64 struct virgl_context *vctx = virgl_context(ctx); in virgl_destroy_so_target() local
68 virgl_encode_delete_object(vctx, t->handle, VIRGL_OBJECT_STREAMOUT_TARGET); in virgl_destroy_so_target()
77 struct virgl_context *vctx = virgl_context(ctx); in virgl_set_so_targets() local
81 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_set_so_targets()
84 pipe_resource_reference(&vctx->so_targets[i].base.buffer, targets[i]->buffer); in virgl_set_so_targets()
86 vws->emit_res(vws, vctx->cbuf, res->hw_res, FALSE); in virgl_set_so_targets()
88 pipe_resource_reference(&vctx->so_targets[i].base.buffer, NULL); in virgl_set_so_targets()
91 for (i = num_targets; i < vctx->num_so_targets; i++) in virgl_set_so_targets()
[all …]
Dvirgl_resource.c115 static bool virgl_res_needs_flush(struct virgl_context *vctx, in virgl_res_needs_flush() argument
118 struct virgl_winsys *vws = virgl_screen(vctx->base.screen)->vws; in virgl_res_needs_flush()
124 if (!vws->res_is_referenced(vws, vctx->cbuf, res->hw_res)) in virgl_res_needs_flush()
140 static bool virgl_res_needs_readback(struct virgl_context *vctx, in virgl_res_needs_readback() argument
155 virgl_resource_transfer_prepare(struct virgl_context *vctx, in virgl_resource_transfer_prepare() argument
158 struct virgl_screen *vs = virgl_screen(vctx->base.screen); in virgl_resource_transfer_prepare()
178 flush = virgl_res_needs_flush(vctx, xfer); in virgl_resource_transfer_prepare()
179 readback = virgl_res_needs_readback(vctx, res, xfer->base.usage, in virgl_resource_transfer_prepare()
216 can_realloc = virgl_can_rebind_resource(vctx, &res->b); in virgl_resource_transfer_prepare()
222 if (can_realloc || vctx->supports_staging) { in virgl_resource_transfer_prepare()
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/signature/
Decdsa_sig.c128 static int ecdsa_signverify_init(void *vctx, void *ec, in ecdsa_signverify_init() argument
131 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_signverify_init()
159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_sign_init() argument
161 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_SIGN); in ecdsa_sign_init()
164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() argument
166 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_VERIFY); in ecdsa_verify_init()
169 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_sign() argument
172 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign()
204 static int ecdsa_verify(void *vctx, const unsigned char *sig, size_t siglen, in ecdsa_verify() argument
207 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify()
[all …]
/third_party/openssl/providers/implementations/signature/
Decdsa_sig.c128 static int ecdsa_signverify_init(void *vctx, void *ec, in ecdsa_signverify_init() argument
131 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_signverify_init()
159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_sign_init() argument
161 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_SIGN); in ecdsa_sign_init()
164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) in ecdsa_verify_init() argument
166 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_VERIFY); in ecdsa_verify_init()
169 static int ecdsa_sign(void *vctx, unsigned char *sig, size_t *siglen, in ecdsa_sign() argument
172 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_sign()
204 static int ecdsa_verify(void *vctx, const unsigned char *sig, size_t siglen, in ecdsa_verify() argument
207 PROV_ECDSA_CTX *ctx = (PROV_ECDSA_CTX *)vctx; in ecdsa_verify()
[all …]
/third_party/openssl/providers/implementations/digests/
Dsha3_prov.c53 static int keccak_init(void *vctx, ossl_unused const OSSL_PARAM params[]) in keccak_init() argument
58 ossl_sha3_reset((KECCAK1600_CTX *)vctx); in keccak_init()
62 static int keccak_init_params(void *vctx, const OSSL_PARAM params[]) in keccak_init_params() argument
64 return keccak_init(vctx, NULL) in keccak_init_params()
65 && shake_set_ctx_params(vctx, params); in keccak_init_params()
68 static int keccak_update(void *vctx, const unsigned char *inp, size_t len) in keccak_update() argument
70 KECCAK1600_CTX *ctx = vctx; in keccak_update()
105 static int keccak_final(void *vctx, unsigned char *out, size_t *outl, in keccak_final() argument
109 KECCAK1600_CTX *ctx = vctx; in keccak_final()
123 static size_t generic_sha3_absorb(void *vctx, const void *inp, size_t len) in generic_sha3_absorb() argument
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/digests/
Dsha3_prov.c53 static int keccak_init(void *vctx, ossl_unused const OSSL_PARAM params[]) in keccak_init() argument
58 ossl_sha3_reset((KECCAK1600_CTX *)vctx); in keccak_init()
62 static int keccak_init_params(void *vctx, const OSSL_PARAM params[]) in keccak_init_params() argument
64 return keccak_init(vctx, NULL) in keccak_init_params()
65 && shake_set_ctx_params(vctx, params); in keccak_init_params()
68 static int keccak_update(void *vctx, const unsigned char *inp, size_t len) in keccak_update() argument
70 KECCAK1600_CTX *ctx = vctx; in keccak_update()
105 static int keccak_final(void *vctx, unsigned char *out, size_t *outl, in keccak_final() argument
109 KECCAK1600_CTX *ctx = vctx; in keccak_final()
123 static size_t generic_sha3_absorb(void *vctx, const void *inp, size_t len) in generic_sha3_absorb() argument
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
Dcipher_aes_xts.c68 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_init() argument
72 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_init()
81 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in aes_xts_init()
97 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() argument
101 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit()
104 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() argument
108 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_xts_dinit()
124 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() argument
126 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_freectx()
128 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_xts_freectx()
[all …]
Dcipher_chacha20.c58 static void chacha20_freectx(void *vctx) in chacha20_freectx() argument
60 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_freectx()
63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
68 static void *chacha20_dupctx(void *vctx) in chacha20_dupctx() argument
70 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_dupctx()
95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() argument
124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() argument
168 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_einit() argument
175 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_einit()
177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
[all …]
Dcipher_tdes_common.c56 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() argument
58 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx; in ossl_tdes_freectx()
60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() argument
68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
100 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() argument
104 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_tdes_einit()
107 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_dinit() argument
111 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_tdes_dinit()
135 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params() argument
[all …]
Dcipher_aes_siv.c49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() argument
51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_freectx()
59 static void *siv_dupctx(void *vctx) in siv_dupctx() argument
61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx; in siv_dupctx()
79 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() argument
83 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_init()
101 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() argument
105 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit()
108 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() argument
112 return siv_init(vctx, key, keylen, iv, ivlen, params, 0); in siv_dinit()
[all …]
Dcipher_chacha20_poly1305.c81 static void chacha20_poly1305_freectx(void *vctx) in chacha20_poly1305_freectx() argument
83 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_freectx()
86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
99 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_poly1305_get_ctx_params() argument
101 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_get_ctx_params()
161 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() argument
166 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_set_ctx_params()
245 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, in chacha20_poly1305_einit() argument
252 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in chacha20_poly1305_einit()
254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
[all …]
Dcipher_null.c34 static void null_freectx(void *vctx) in null_freectx() argument
36 OPENSSL_free(vctx); in null_freectx()
40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, in null_einit() argument
44 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_einit()
54 static int null_dinit(void *vctx, const unsigned char *key, size_t keylen, in null_dinit() argument
65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() argument
68 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_cipher()
92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() argument
123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() argument
125 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_get_ctx_params()
[all …]
Dcipher_aes_siv_hw.c18 static void aes_siv_cleanup(void *vctx);
20 static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen) in aes_siv_initkey() argument
22 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_initkey()
77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) in aes_siv_settag() argument
79 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_settag()
85 static void aes_siv_setspeed(void *vctx, int speed) in aes_siv_setspeed() argument
87 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_setspeed()
93 static void aes_siv_cleanup(void *vctx) in aes_siv_cleanup() argument
95 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_cleanup()
103 static int aes_siv_cipher(void *vctx, unsigned char *out, in aes_siv_cipher() argument
[all …]
Dcipher_des.c65 static void des_freectx(void *vctx) in des_freectx() argument
67 PROV_DES_CTX *ctx = (PROV_DES_CTX *)vctx; in des_freectx()
69 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx()
73 static int des_init(void *vctx, const unsigned char *key, size_t keylen, in des_init() argument
77 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init()
106 static int des_einit(void *vctx, const unsigned char *key, size_t keylen, in des_einit() argument
110 return des_init(vctx, key, keylen, iv, ivlen, params, 1); in des_einit()
113 static int des_dinit(void *vctx, const unsigned char *key, size_t keylen, in des_dinit() argument
117 return des_init(vctx, key, keylen, iv, ivlen, params, 0); in des_dinit()
136 static int des_get_ctx_params(void *vctx, OSSL_PARAM params[])
[all …]
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_xts.c68 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_init() argument
72 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_init()
81 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in aes_xts_init()
97 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() argument
101 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit()
104 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() argument
108 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_xts_dinit()
124 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() argument
126 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_freectx()
128 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_xts_freectx()
[all …]
Dcipher_chacha20_poly1305.c61 static void chacha20_poly1305_freectx(void *vctx) in chacha20_poly1305_freectx() argument
63 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_freectx()
66 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
79 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_poly1305_get_ctx_params() argument
81 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_get_ctx_params()
141 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() argument
146 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_set_ctx_params()
225 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, in chacha20_poly1305_einit() argument
232 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in chacha20_poly1305_einit()
234 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
[all …]
Dcipher_tdes_common.c56 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() argument
58 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx; in ossl_tdes_freectx()
60 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
64 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() argument
68 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
99 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() argument
103 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_tdes_einit()
106 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_dinit() argument
110 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_tdes_dinit()
134 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params() argument
[all …]
Dcipher_aes_siv.c49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() argument
51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_freectx()
59 static void *siv_dupctx(void *vctx) in siv_dupctx() argument
61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx; in siv_dupctx()
79 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() argument
83 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_init()
101 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() argument
105 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit()
108 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() argument
112 return siv_init(vctx, key, keylen, iv, ivlen, params, 0); in siv_dinit()
[all …]
Dcipher_chacha20.c57 static void chacha20_freectx(void *vctx) in chacha20_freectx() argument
59 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_freectx()
62 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
75 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() argument
104 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() argument
148 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_einit() argument
155 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_einit()
157 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
162 if (ret && !chacha20_set_ctx_params(vctx, params)) in ossl_chacha20_einit()
167 int ossl_chacha20_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_dinit() argument
[all …]
Dcipher_null.c34 static void null_freectx(void *vctx) in null_freectx() argument
36 OPENSSL_free(vctx); in null_freectx()
40 static int null_einit(void *vctx, const unsigned char *key, size_t keylen, in null_einit() argument
44 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_einit()
54 static int null_dinit(void *vctx, const unsigned char *key, size_t keylen, in null_dinit() argument
65 static int null_cipher(void *vctx, unsigned char *out, size_t *outl, in null_cipher() argument
68 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_cipher()
92 static int null_final(void *vctx, unsigned char *out, size_t *outl, in null_final() argument
123 static int null_get_ctx_params(void *vctx, OSSL_PARAM params[]) in null_get_ctx_params() argument
125 PROV_CIPHER_NULL_CTX *ctx = (PROV_CIPHER_NULL_CTX *)vctx; in null_get_ctx_params()
[all …]
Dcipher_aes_siv_hw.c18 static void aes_siv_cleanup(void *vctx);
20 static int aes_siv_initkey(void *vctx, const unsigned char *key, size_t keylen) in aes_siv_initkey() argument
22 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_initkey()
77 static int aes_siv_settag(void *vctx, const unsigned char *tag, size_t tagl) in aes_siv_settag() argument
79 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_settag()
85 static void aes_siv_setspeed(void *vctx, int speed) in aes_siv_setspeed() argument
87 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_setspeed()
93 static void aes_siv_cleanup(void *vctx) in aes_siv_cleanup() argument
95 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_cleanup()
103 static int aes_siv_cipher(void *vctx, unsigned char *out, in aes_siv_cipher() argument
[all …]
Dcipher_des.c65 static void des_freectx(void *vctx) in des_freectx() argument
67 PROV_DES_CTX *ctx = (PROV_DES_CTX *)vctx; in des_freectx()
69 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in des_freectx()
73 static int des_init(void *vctx, const unsigned char *key, size_t keylen, in des_init() argument
77 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in des_init()
105 static int des_einit(void *vctx, const unsigned char *key, size_t keylen, in des_einit() argument
109 return des_init(vctx, key, keylen, iv, ivlen, params, 1); in des_einit()
112 static int des_dinit(void *vctx, const unsigned char *key, size_t keylen, in des_dinit() argument
116 return des_init(vctx, key, keylen, iv, ivlen, params, 0); in des_dinit()
135 static int des_get_ctx_params(void *vctx, OSSL_PARAM params[])
[all …]
/third_party/node/deps/openssl/openssl/providers/implementations/encode_decode/
Dencode_key2ms.c83 static void key2ms_freectx(void *vctx) in key2ms_freectx() argument
85 struct key2ms_ctx_st *ctx = vctx; in key2ms_freectx()
101 static int key2pvk_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in key2pvk_set_ctx_params() argument
103 struct key2ms_ctx_st *ctx = vctx; in key2pvk_set_ctx_params()
112 static int key2ms_does_selection(void *vctx, int selection) in key2ms_does_selection() argument
128 static int key2msblob_encode(void *vctx, const void *key, int selection, in key2msblob_encode() argument
132 struct key2ms_ctx_st *ctx = vctx; in key2msblob_encode()
150 static int key2pvk_encode(void *vctx, const void *key, int selection, in key2pvk_encode() argument
154 struct key2ms_ctx_st *ctx = vctx; in key2pvk_encode()
196 static int impl##2##output##_encode(void *vctx, OSSL_CORE_BIO *cout, \
[all …]

1234567