Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 19 of 19) sorted by relevance

/mbedtls-3.5.0/programs/
DMakefile87 pkey/dh_client \
88 pkey/dh_genprime \
89 pkey/dh_server \
90 pkey/ecdh_curve25519 \
91 pkey/ecdsa \
92 pkey/gen_key \
93 pkey/key_app \
94 pkey/key_app_writer \
95 pkey/mpi_demo \
96 pkey/pk_decrypt \
[all …]
D.gitignore23 pkey/dh_client
24 pkey/dh_genprime
25 pkey/dh_server
26 pkey/ecdh_curve25519
27 pkey/ecdsa
28 pkey/gen_key
29 pkey/key_app
30 pkey/key_app_writer
31 pkey/mpi_demo
32 pkey/pk_decrypt
[all …]
DREADME.md20 * [`pkey/gen_key.c`](pkey/gen_key.c): generates a key for any of the supported public-key algorithm…
22 * [`pkey/key_app.c`](pkey/key_app.c): loads a PEM or DER public key or private key file and dumps i…
24 * [`pkey/key_app_writer.c`](pkey/key_app_writer.c): loads a PEM or DER public key or private key fi…
26 * [`pkey/pk_encrypt.c`](pkey/pk_encrypt.c), [`pkey/pk_decrypt.c`](pkey/pk_decrypt.c): loads a PEM o…
28 * [`pkey/pk_sign.c`](pkey/pk_sign.c), [`pkey/pk_verify.c`](pkey/pk_verify.c): loads a PEM or DER pr…
32 * [`pkey/ecdsa.c`](pkey/ecdsa.c): generates an ECDSA key, signs a fixed message and verifies the si…
34 * [`pkey/rsa_encrypt.c`](pkey/rsa_encrypt.c), [`pkey/rsa_decrypt.c`](pkey/rsa_decrypt.c): loads an …
36 * [`pkey/rsa_genkey.c`](pkey/rsa_genkey.c): generates an RSA key and writes it to a file that can b…
38 * [`pkey/rsa_sign.c`](pkey/rsa_sign.c), [`pkey/rsa_verify.c`](pkey/rsa_verify.c): loads an RSA priv…
40 * [`pkey/rsa_sign_pss.c`](pkey/rsa_sign_pss.c), [`pkey/rsa_verify_pss.c`](pkey/rsa_verify_pss.c): l…
[all …]
DCMakeLists.txt7 add_subdirectory(pkey)
/mbedtls-3.5.0/programs/fuzz/
Dfuzz_dtlsserver.c27 static mbedtls_pk_context pkey; variable
63 mbedtls_pk_init(&pkey); in LLVMFuzzerTestOneInput()
72 if (mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in LLVMFuzzerTestOneInput()
99 if (mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey) != 0) { in LLVMFuzzerTestOneInput()
Dfuzz_server.c21 static mbedtls_pk_context pkey; variable
71 mbedtls_pk_init(&pkey); in LLVMFuzzerTestOneInput()
80 if (mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in LLVMFuzzerTestOneInput()
113 if (mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey) != 0) { in LLVMFuzzerTestOneInput()
/mbedtls-3.5.0/programs/ssl/
Dssl_server.c90 mbedtls_pk_context pkey; in main() local
103 mbedtls_pk_init(&pkey); in main()
151 ret = mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in main()
198 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
348 mbedtls_pk_free(&pkey); in main()
Dssl_fork_server.c97 mbedtls_pk_context pkey; in main() local
104 mbedtls_pk_init(&pkey); in main()
150 ret = mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in main()
178 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
371 mbedtls_pk_free(&pkey); in main()
Ddtls_server.c103 mbedtls_pk_context pkey; in main() local
118 mbedtls_pk_init(&pkey); in main()
166 ret = mbedtls_pk_parse_key(&pkey, in main()
218 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
388 mbedtls_pk_free(&pkey); in main()
Dssl_pthread_server.c301 mbedtls_pk_context pkey; in main() local
375 mbedtls_pk_init(&pkey); in main()
376 ret = mbedtls_pk_parse_key(&pkey, (const unsigned char *) mbedtls_test_srv_key, in main()
413 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
469 mbedtls_pk_free(&pkey); in main()
Dssl_mail_client.c355 mbedtls_pk_context pkey; in main() local
370 mbedtls_pk_init(&pkey); in main()
520 ret = mbedtls_pk_parse_keyfile(&pkey, opt.key_file, "", in main()
526 ret = mbedtls_pk_parse_key(&pkey, in main()
588 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &clicert, &pkey)) != 0) { in main()
794 mbedtls_pk_free(&pkey); in main()
Dssl_client2.c798 mbedtls_pk_context pkey; in main() local
851 mbedtls_pk_init(&pkey); in main()
1728 ret = mbedtls_pk_parse_keyfile(&pkey, opt.key_file, opt.key_pwd, rng_get, &rng); in main()
1731 { ret = mbedtls_pk_parse_key(&pkey, in main()
1749 mbedtls_pk_get_type(&pkey)) == 0) { in main()
1750 ret = mbedtls_pk_wrap_as_opaque(&pkey, &key_slot, psa_alg, in main()
1764 mbedtls_pk_get_name(&pkey) : "none"); in main()
1941 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &clicert, &pkey)) != 0) { in main()
3077 mbedtls_pk_free(&pkey); in main()
Dssl_server2.c1501 mbedtls_pk_context pkey; in main() local
1604 mbedtls_pk_init(&pkey); in main()
2608 if ((ret = mbedtls_pk_parse_keyfile(&pkey, opt.key_file, in main()
2656 if ((ret = mbedtls_pk_parse_key(&pkey, in main()
2695 mbedtls_pk_get_type(&pkey)) == 0) { in main()
2696 ret = mbedtls_pk_wrap_as_opaque(&pkey, &key_slot, in main()
2729 key_cert_init ? mbedtls_pk_get_name(&pkey) : "none", in main()
3050 mbedtls_pk_context *pk = &pkey; in main()
4201 mbedtls_pk_free(&pkey); in main()
/mbedtls-3.5.0/tests/src/test_helpers/
Dssl_helpers.c595 if (cert->pkey != NULL) { in mbedtls_endpoint_certificate_free()
597 if (mbedtls_pk_get_type(cert->pkey) == MBEDTLS_PK_OPAQUE) { in mbedtls_endpoint_certificate_free()
598 mbedtls_svc_key_id_t *key_slot = cert->pkey->pk_ctx; in mbedtls_endpoint_certificate_free()
602 mbedtls_pk_free(cert->pkey); in mbedtls_endpoint_certificate_free()
603 mbedtls_free(cert->pkey); in mbedtls_endpoint_certificate_free()
604 cert->pkey = NULL; in mbedtls_endpoint_certificate_free()
628 ASSERT_ALLOC(cert->pkey, 1); in mbedtls_test_ssl_endpoint_certificate_init()
632 mbedtls_pk_init(cert->pkey); in mbedtls_test_ssl_endpoint_certificate_init()
655 cert->pkey, in mbedtls_test_ssl_endpoint_certificate_init()
668 cert->pkey, in mbedtls_test_ssl_endpoint_certificate_init()
[all …]
/mbedtls-3.5.0/tests/data_files/
DMakefile57 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER -passin "pass:$(test_ca_pwd_rsa)"
213 $(OPENSSL) pkey -in $(test_ca_key_file_ec) -out $@ -inform PEM -outform DER
266 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER
300 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER
310 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER
911 $(OPENSSL) pkey -in $< -inform DER -out $@
914 $(OPENSSL) pkey -in $< -inform DER -out $@
917 $(OPENSSL) pkey -in $< -inform DER -out $@
920 $(OPENSSL) pkey -in $< -inform DER -out $@
1061 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER
/mbedtls-3.5.0/tests/include/test/
Dssl_helpers.h161 mbedtls_pk_context *pkey; member
/mbedtls-3.5.0/tests/suites/
Dtest_suite_pk.function1381 unsigned char pkey[PSA_EXPORT_PUBLIC_KEY_MAX_SIZE];
1403 ret = mbedtls_pk_write_pubkey_der(&pk, pkey, sizeof(pkey));
1408 pkey_start = pkey + sizeof(pkey) - pkey_len;
Dtest_suite_rsa.data154 # The test data has been generated by signing a test file using `programs/pkey/rsa_sign` after maki…
/mbedtls-3.5.0/
DChangeLog2395 programs/pkey/gen_key which previously led to compilation failure
3176 * Fix error message in programs/pkey/gen_key.c. Found and fixed by Chris Xue.
3177 * Fix programs/pkey/dh_server.c so that it actually works with dh_client.c.
3764 * Fix memory corruption in pkey programs (found by yankuncheng) (#210)