/mbedtls-development/programs/ |
A D | .gitignore | 21 pkey/dh_client 23 pkey/dh_server 25 pkey/ecdsa 26 pkey/gen_key 27 pkey/key_app 29 pkey/mpi_demo 30 pkey/pk_decrypt 31 pkey/pk_encrypt 32 pkey/pk_sign 33 pkey/pk_verify [all …]
|
A D | Makefile | 184 pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP) 192 pkey/dh_server$(EXEXT): pkey/dh_server.c $(DEP) 200 pkey/ecdsa$(EXEXT): pkey/ecdsa.c $(DEP) 204 pkey/gen_key$(EXEXT): pkey/gen_key.c $(DEP) 208 pkey/key_app$(EXEXT): pkey/key_app.c $(DEP) 216 pkey/mpi_demo$(EXEXT): pkey/mpi_demo.c $(DEP) 220 pkey/pk_decrypt$(EXEXT): pkey/pk_decrypt.c $(DEP) 224 pkey/pk_encrypt$(EXEXT): pkey/pk_encrypt.c $(DEP) 228 pkey/pk_sign$(EXEXT): pkey/pk_sign.c $(DEP) 232 pkey/pk_verify$(EXEXT): pkey/pk_verify.c $(DEP) [all …]
|
A D | README.md | 22 * [`pkey/key_app.c`](pkey/key_app.c): loads a PEM or DER public key or private key file and dumps i… 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 … 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… 44 * [`pkey/dh_client.c`](pkey/dh_client.c), [`pkey/dh_server.c`](pkey/dh_server.c): secure channel de… 46 * [`pkey/ecdh_curve25519.c`](pkey/ecdh_curve25519.c): demonstration of a elliptic curve Diffie-Hell… 50 * [`pkey/dh_genprime.c`](pkey/dh_genprime.c): shows how to use the bignum (`mpi`) interface to gene… [all …]
|
A D | CMakeLists.txt | 6 add_subdirectory(pkey)
|
/mbedtls-development/programs/fuzz/ |
A D | fuzz_dtlsserver.c | 25 static mbedtls_pk_context pkey; variable 50 mbedtls_pk_init( &pkey ); in LLVMFuzzerTestOneInput() 57 if (mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in LLVMFuzzerTestOneInput() 89 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
A D | fuzz_server.c | 21 static mbedtls_pk_context pkey; variable 68 mbedtls_pk_init( &pkey ); in LLVMFuzzerTestOneInput() 75 if (mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in LLVMFuzzerTestOneInput() 106 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
/mbedtls-development/programs/ssl/ |
A D | ssl_server.c | 102 mbedtls_pk_context pkey; in main() local 115 mbedtls_pk_init( &pkey ); in main() 166 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 216 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 380 mbedtls_pk_free( &pkey ); in main()
|
A D | ssl_fork_server.c | 108 mbedtls_pk_context pkey; in main() local 115 mbedtls_pk_init( &pkey ); in main() 164 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 194 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 404 mbedtls_pk_free( &pkey ); in main()
|
A D | dtls_server.c | 114 mbedtls_pk_context pkey; in main() local 129 mbedtls_pk_init( &pkey ); in main() 180 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 230 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 409 mbedtls_pk_free( &pkey ); in main()
|
A D | ssl_pthread_server.c | 324 mbedtls_pk_context pkey; in main() local 401 mbedtls_pk_init( &pkey ); in main() 402 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_srv_key, in main() 441 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 502 mbedtls_pk_free( &pkey ); in main()
|
A D | ssl_mail_client.c | 382 mbedtls_pk_context pkey; in main() local 397 mbedtls_pk_init( &pkey ); in main() 556 ret = mbedtls_pk_parse_keyfile( &pkey, opt.key_file, "", in main() 563 ret = mbedtls_pk_parse_key( &pkey, (const unsigned char *) mbedtls_test_cli_key, in main() 622 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main() 845 mbedtls_pk_free( &pkey ); in main()
|
A D | ssl_client2.c | 714 mbedtls_pk_context pkey; in main() local 762 mbedtls_pk_init( &pkey ); in main() 1669 ret = mbedtls_pk_parse_keyfile( &pkey, opt.key_file, opt.key_pwd, rng_get, &rng ); in main() 1672 ret = mbedtls_pk_parse_key( &pkey, in main() 1685 if( ( ret = mbedtls_pk_wrap_as_opaque( &pkey, &key_slot, in main() 1695 mbedtls_printf( " ok (key type: %s)\n", mbedtls_pk_get_name( &pkey ) ); in main() 1879 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main() 3021 mbedtls_pk_free( &pkey ); in main()
|
A D | ssl_server2.c | 1318 mbedtls_pk_context pkey; in main() local 1415 mbedtls_pk_init( &pkey ); in main() 2401 if( ( ret = mbedtls_pk_parse_keyfile( &pkey, opt.key_file, in main() 2457 if( ( ret = mbedtls_pk_parse_key( &pkey, in main() 2493 if ( mbedtls_pk_get_type( &pkey ) == MBEDTLS_PK_ECKEY ) in main() 2495 if( ( ret = mbedtls_pk_wrap_as_opaque( &pkey, &key_slot, in main() 2517 …mbedtls_printf( " ok (key types: %s - %s)\n", mbedtls_pk_get_name( &pkey ), mbedtls_pk_get_name( &… in main() 2798 mbedtls_pk_context *pk = &pkey; in main() 3956 mbedtls_pk_free( &pkey ); in main()
|
/mbedtls-development/tests/data_files/ |
A D | Makefile | 57 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER -passin "pass:$(test_ca_pwd_rsa)" 163 $(OPENSSL) pkey -in $(test_ca_key_file_ec) -out $@ -inform PEM -outform DER 216 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER 250 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER 260 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER 852 $(OPENSSL) pkey -in $< -inform DER -out $@ 855 $(OPENSSL) pkey -in $< -inform DER -out $@ 858 $(OPENSSL) pkey -in $< -inform DER -out $@ 861 $(OPENSSL) pkey -in $< -inform DER -out $@ 929 $(OPENSSL) pkey -in $< -out $@ -inform PEM -outform DER
|
/mbedtls-development/tests/suites/ |
A D | test_suite_ssl.function | 741 mbedtls_pk_context pkey; 778 mbedtls_pk_init( &( cert->pkey ) ); 801 ret = mbedtls_pk_parse_key( &( cert->pkey ), 814 ret = mbedtls_pk_parse_key( &( cert->pkey ), 830 ret = mbedtls_pk_parse_key( &( cert->pkey ), 843 ret = mbedtls_pk_parse_key( &( cert->pkey ), 854 &( cert->pkey ) ); 862 mbedtls_pk_free( &( cert->pkey ) ); 968 mbedtls_pk_free( &( cert->pkey ) );
|
A D | test_suite_rsa.data | 154 # The test data has been generated by signing a test file using `programs/pkey/rsa_sign` after maki…
|
/mbedtls-development/ |
A D | ChangeLog | 1525 programs/pkey/gen_key which previously led to compilation failure 2306 * Fix error message in programs/pkey/gen_key.c. Found and fixed by Chris Xue. 2307 * Fix programs/pkey/dh_server.c so that it actually works with dh_client.c. 2894 * Fix memory corruption in pkey programs (found by yankuncheng) (#210)
|