Home
last modified time | relevance | path

Searched refs:ectx (Results 1 – 25 of 27) sorted by relevance

12

/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DOSSL_ENCODER_to_bio.pod62 OSSL_ENCODER_CTX *ectx;
67 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey,
72 if (ectx == NULL) {
76 OSSL_ENCODER_CTX_set_passphrase(ectx, pass, strlen(pass));
77 if (OSSL_ENCODER_to_bio(ectx, bio)) {
82 OSSL_ENCODER_CTX_free(ectx);
87 OSSL_ENCODER_CTX *ectx;
94 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey,
99 if (ectx == NULL) {
103 OSSL_ENCODER_CTX_set_passphrase(ectx, pass, strlen(pass));
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/demos/encode/
H A Dec_encode.c105 OSSL_ENCODER_CTX *ectx = NULL; in store_key() local
125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
126 if (ectx == NULL) { in store_key()
148 if (OSSL_ENCODER_CTX_set_cipher(ectx, "AES-256-CBC", propq) == 0) { in store_key()
154 if (OSSL_ENCODER_CTX_set_passphrase(ectx, in store_key()
163 if (OSSL_ENCODER_to_fp(ectx, f) == 0) { in store_key()
170 OSSL_ENCODER_CTX_free(ectx); in store_key()
H A Drsa_encode.c105 OSSL_ENCODER_CTX *ectx = NULL; in store_key() local
125 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, "PEM", NULL, propq); in store_key()
126 if (ectx == NULL) { in store_key()
145 if (OSSL_ENCODER_CTX_set_cipher(ectx, "AES-128-CBC", propq) == 0) { in store_key()
151 if (OSSL_ENCODER_CTX_set_passphrase(ectx, in store_key()
160 if (OSSL_ENCODER_to_fp(ectx, f) == 0) { in store_key()
167 OSSL_ENCODER_CTX_free(ectx); in store_key()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dcrypto-evp.c47 key->ectx = malloc(sizeof(*key->ectx)); in _krb5_evp_schedule()
49 EVP_CIPHER_CTX_init(key->ectx); in _krb5_evp_schedule()
52 key->ectx = EVP_CIPHER_CTX_new(); in _krb5_evp_schedule()
56 if (!EVP_CipherInit_ex(key->ectx, c, NULL, kd->key->keyvalue.data, NULL, 1)) in _krb5_evp_schedule()
67 EVP_CIPHER_CTX_cleanup(key->ectx); in _krb5_evp_cleanup()
69 free(key->ectx); in _krb5_evp_cleanup()
72 EVP_CIPHER_CTX_free(key->ectx); in _krb5_evp_cleanup()
88 c = encryptp ? ctx->ectx : ctx->dctx; in _krb5_evp_encrypt()
124 c = encryptp ? ctx->ectx : ctx->dctx; in _krb5_evp_encrypt_cts()
H A Dcrypto-des-common.c85 ctx->ectx = malloc(sizeof(*ctx->ectx)); in _krb5_des_checksum()
86 EVP_CIPHER_CTX_init(ctx->ectx); in _krb5_des_checksum()
88 ctx->ectx = EVP_CIPHER_CTX_new(); in _krb5_des_checksum()
91 if (!EVP_CipherInit_ex(ctx->ectx, NULL, NULL, NULL, (void *)&ivec, -1)) in _krb5_des_checksum()
93 EVP_Cipher(ctx->ectx, p, p, 24); in _krb5_des_checksum()
H A Dcrypto-des.c230 c = encryptp ? ctx->ectx : ctx->dctx; in evp_des_encrypt_null_ivec()
250 c = encryptp ? ctx->ectx : ctx->dctx; in evp_des_encrypt_key_ivec()
H A Dcrypto.h200 EVP_CIPHER_CTX *ectx; member
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Dvalidate.c221 EVP_CIPHER_CTX ectx; in test_cipher() local
225 EVP_CIPHER_CTX_init(&ectx); in test_cipher()
228 if (EVP_CipherInit_ex(&ectx, c, NULL, NULL, NULL, 1) != 1) in test_cipher()
233 EVP_CIPHER_CTX_set_key_length(&ectx, t->keysize); in test_cipher()
236 if (EVP_CipherInit_ex(&ectx, NULL, NULL, t->key, t->iv, 1) != 1) in test_cipher()
243 if (!EVP_Cipher(&ectx, d, t->indata, t->datasize)) in test_cipher()
260 EVP_CIPHER_CTX_cleanup(&ectx); in test_cipher()
H A Dmdtest.c242 EVP_MD_CTX *ectx; in hash_test() local
251 ectx = EVP_MD_CTX_create(); in hash_test()
256 EVP_DigestInit_ex(ectx, hash->evp(), NULL); in hash_test()
264 EVP_DigestUpdate(ectx, buf, sizeof(buf)); in hash_test()
268 EVP_DigestUpdate(ectx, t->str, strlen(t->str)); in hash_test()
292 EVP_DigestFinal_ex(ectx, res, &esize); in hash_test()
293 EVP_MD_CTX_destroy(ectx); in hash_test()
H A Dtest_bulk.c132 EVP_CIPHER_CTX ectx; in test_bulk_cipher() local
137 EVP_CIPHER_CTX_init(&ectx); in test_bulk_cipher()
140 if (EVP_CipherInit_ex(&ectx, c, NULL, NULL, NULL, 1) != 1) in test_bulk_cipher()
145 EVP_CIPHER_CTX_set_key_length(&ectx, sizeof(key)); in test_bulk_cipher()
148 if (EVP_CipherInit_ex(&ectx, NULL, NULL, key, iv, 1) != 1) in test_bulk_cipher()
153 if (!EVP_Cipher(&ectx, d, d, len)) in test_bulk_cipher()
158 EVP_CIPHER_CTX_cleanup(&ectx); in test_bulk_cipher()
H A Dtest_cipher.c255 EVP_CIPHER_CTX ectx; in test_cipher() local
264 EVP_CIPHER_CTX_init(&ectx); in test_cipher()
267 if (EVP_CipherInit_ex(&ectx, c, NULL, NULL, NULL, 1) != 1) in test_cipher()
272 EVP_CIPHER_CTX_set_key_length(&ectx, t->keysize); in test_cipher()
275 if (EVP_CipherInit_ex(&ectx, NULL, NULL, t->key, t->iv, 1) != 1) in test_cipher()
282 if (!EVP_Cipher(&ectx, d, t->indata, t->datasize)) in test_cipher()
305 EVP_CIPHER_CTX_cleanup(&ectx); in test_cipher()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Ddsa.c93 OSSL_ENCODER_CTX *ectx = NULL; in dsa_main() local
263 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, output_type, in dsa_main()
265 if (OSSL_ENCODER_CTX_get_num_encoders(ectx) == 0) { in dsa_main()
272 OSSL_ENCODER_CTX_set_cipher(ectx, EVP_CIPHER_get0_name(enc), NULL); in dsa_main()
276 OSSL_ENCODER_CTX_set_passphrase_ui(ectx, get_ui_method(), NULL); in dsa_main()
279 OSSL_ENCODER_CTX_set_passphrase(ectx, in dsa_main()
289 if (!OSSL_ENCODER_CTX_set_params(ectx, params)) { in dsa_main()
295 if (!OSSL_ENCODER_to_bio(ectx, out)) { in dsa_main()
303 OSSL_ENCODER_CTX_free(ectx); in dsa_main()
H A Drsa.c140 OSSL_ENCODER_CTX *ectx = NULL; in rsa_main() local
363 ectx = OSSL_ENCODER_CTX_new_for_pkey(pkey, selection, in rsa_main()
366 if (OSSL_ENCODER_CTX_get_num_encoders(ectx) == 0) { in rsa_main()
377 OSSL_ENCODER_CTX_set_cipher(ectx, EVP_CIPHER_get0_name(enc), NULL); in rsa_main()
381 OSSL_ENCODER_CTX_set_passphrase_ui(ectx, get_ui_method(), NULL); in rsa_main()
384 OSSL_ENCODER_CTX_set_passphrase(ectx, in rsa_main()
394 if (!OSSL_ENCODER_CTX_set_params(ectx, params)) { in rsa_main()
400 if (!OSSL_ENCODER_to_bio(ectx, out)) { in rsa_main()
407 OSSL_ENCODER_CTX_free(ectx); in rsa_main()
H A Dec.c66 OSSL_ENCODER_CTX *ectx = NULL; in ec_main() local
259 ectx = OSSL_ENCODER_CTX_new_for_pkey(eckey, selection, in ec_main()
263 OSSL_ENCODER_CTX_set_cipher(ectx, EVP_CIPHER_get0_name(enc), NULL); in ec_main()
265 OSSL_ENCODER_CTX_set_passphrase_ui(ectx, get_ui_method(), NULL); in ec_main()
268 OSSL_ENCODER_CTX_set_passphrase(ectx, in ec_main()
272 if (!OSSL_ENCODER_to_bio(ectx, out)) { in ec_main()
285 OSSL_ENCODER_CTX_free(ectx); in ec_main()
H A Ddhparam.c331 OSSL_ENCODER_CTX *ectx = in dhparam_main() local
338 if (ectx == NULL || !OSSL_ENCODER_to_bio(ectx, out)) { in dhparam_main()
339 OSSL_ENCODER_CTX_free(ectx); in dhparam_main()
343 OSSL_ENCODER_CTX_free(ectx); in dhparam_main()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dendecoder_legacy_test.c310 OSSL_ENCODER_CTX *ectx = NULL; in test_protected_PEM() local
321 if (!TEST_ptr(ectx = in test_protected_PEM()
325 || !TEST_true(OSSL_ENCODER_to_bio(ectx, membio_provided)) in test_protected_PEM()
359 OSSL_ENCODER_CTX_free(ectx); in test_protected_PEM()
378 OSSL_ENCODER_CTX *ectx = NULL; in test_unprotected_PEM() local
389 if (!TEST_ptr(ectx = in test_unprotected_PEM()
393 || !TEST_true(OSSL_ENCODER_to_bio(ectx, membio_provided)) in test_unprotected_PEM()
426 OSSL_ENCODER_CTX_free(ectx); in test_unprotected_PEM()
448 OSSL_ENCODER_CTX *ectx = NULL; in test_DER() local
454 if (!TEST_ptr(ectx = in test_DER()
[all …]
H A Devp_libctx_test.c502 OSSL_ENCODER_CTX *ectx = NULL; in rsa_keygen() local
505 || !TEST_ptr(ectx = in rsa_keygen()
510 || !TEST_true(OSSL_ENCODER_to_data(ectx, &pub_der, &len))) in rsa_keygen()
517 OSSL_ENCODER_CTX_free(ectx); in rsa_keygen()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/rs6000/
H A Daix-unwind.h118 extended_context_t * ectx; member
265 if (uc->mark == EXT_CONTEXT_MARK && uc->ectx->mark == EXT_CONTEXT_MARK) in ppc_aix_fallback_frame_state()
267 vstate_t * vstate = &uc->ectx->vstate; in ppc_aix_fallback_frame_state()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/rs6000/
H A Daix-unwind.h118 extended_context_t * ectx; member
265 if (uc->mark == EXT_CONTEXT_MARK && uc->ectx->mark == EXT_CONTEXT_MARK) in ppc_aix_fallback_frame_state()
267 vstate_t * vstate = &uc->ectx->vstate; in ppc_aix_fallback_frame_state()
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_atom.c1177 atom_exec_context ectx; in atom_execute_table_locked() local
1190 ectx.ctx = ctx; in atom_execute_table_locked()
1191 ectx.ps_shift = ps / 4; in atom_execute_table_locked()
1192 ectx.start = base; in atom_execute_table_locked()
1193 ectx.ps = params; in atom_execute_table_locked()
1194 ectx.abort = false; in atom_execute_table_locked()
1195 ectx.last_jump = 0; in atom_execute_table_locked()
1197 ectx.ws = kcalloc(4, ws, GFP_KERNEL); in atom_execute_table_locked()
1199 ectx.ws = NULL; in atom_execute_table_locked()
1208 if (ectx.abort) { in atom_execute_table_locked()
[all …]
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_atom.c1212 atom_exec_context ectx; in amdgpu_atom_execute_table_locked() local
1225 ectx.ctx = ctx; in amdgpu_atom_execute_table_locked()
1226 ectx.ps_shift = ps / 4; in amdgpu_atom_execute_table_locked()
1227 ectx.start = base; in amdgpu_atom_execute_table_locked()
1228 ectx.ps = params; in amdgpu_atom_execute_table_locked()
1229 ectx.abort = false; in amdgpu_atom_execute_table_locked()
1230 ectx.last_jump = 0; in amdgpu_atom_execute_table_locked()
1232 ectx.ws = kcalloc(4, ws, GFP_KERNEL); in amdgpu_atom_execute_table_locked()
1234 ectx.ws = NULL; in amdgpu_atom_execute_table_locked()
1243 if (ectx.abort) { in amdgpu_atom_execute_table_locked()
[all …]
/netbsd-src/external/gpl3/binutils/dist/libsframe/
H A Dsframe.c1362 sframe_encoder_ctx *ectx = *encoder; in sframe_encoder_free() local
1363 if (ectx == NULL) in sframe_encoder_free()
1366 if (ectx->sfe_funcdesc != NULL) in sframe_encoder_free()
1368 free (ectx->sfe_funcdesc); in sframe_encoder_free()
1369 ectx->sfe_funcdesc = NULL; in sframe_encoder_free()
1371 if (ectx->sfe_fres != NULL) in sframe_encoder_free()
1373 free (ectx->sfe_fres); in sframe_encoder_free()
1374 ectx->sfe_fres = NULL; in sframe_encoder_free()
1376 if (ectx->sfe_data != NULL) in sframe_encoder_free()
1378 free (ectx->sfe_data); in sframe_encoder_free()
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Delfxx-x86.c1842 sframe_encoder_ctx **ectx = NULL; in _bfd_x86_elf_create_sframe_plt() local
1858 ectx = &htab->plt_cfe_ctx; in _bfd_x86_elf_create_sframe_plt()
1870 ectx = &htab->plt_second_cfe_ctx; in _bfd_x86_elf_create_sframe_plt()
1886 *ectx = sframe_encode (SFRAME_VERSION_2, in _bfd_x86_elf_create_sframe_plt()
1903 sframe_encoder_add_funcdesc_v2 (*ectx, in _bfd_x86_elf_create_sframe_plt()
1914 sframe_encoder_add_fre (*ectx, 0, &plt0_fre); in _bfd_x86_elf_create_sframe_plt()
1932 sframe_encoder_add_funcdesc_v2 (*ectx, in _bfd_x86_elf_create_sframe_plt()
1945 sframe_encoder_add_fre (*ectx, 1, &pltn_fre); in _bfd_x86_elf_create_sframe_plt()
1962 sframe_encoder_ctx *ectx; in _bfd_x86_elf_write_sframe_plt() local
1976 ectx = htab->plt_cfe_ctx; in _bfd_x86_elf_write_sframe_plt()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dx_pubkey.c343 OSSL_ENCODER_CTX *ectx = in X509_PUBKEY_set() local
348 if (OSSL_ENCODER_to_data(ectx, &der, &derlen)) { in X509_PUBKEY_set()
354 OSSL_ENCODER_CTX_free(ectx); in X509_PUBKEY_set()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hx509/
H A Dcrypto.c2102 EVP_CIPHER_CTX ectx; in hx509_crypto_encrypt() local
2103 evp = &ectx; in hx509_crypto_encrypt()
2221 EVP_CIPHER_CTX ectx; in hx509_crypto_decrypt() local
2222 evp = &ectx; in hx509_crypto_decrypt()

12