Home
last modified time | relevance | path

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

/mbedtls-development/programs/
A D.gitignore21 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 DMakefile184 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 DREADME.md22 * [`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 DCMakeLists.txt6 add_subdirectory(pkey)
/mbedtls-development/programs/fuzz/
A Dfuzz_dtlsserver.c25 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 Dfuzz_server.c21 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 Dssl_server.c102 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 Dssl_fork_server.c108 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 Ddtls_server.c114 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 Dssl_pthread_server.c324 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 Dssl_mail_client.c382 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 Dssl_client2.c714 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 Dssl_server2.c1318 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 DMakefile57 $(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 Dtest_suite_ssl.function741 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 Dtest_suite_rsa.data154 # The test data has been generated by signing a test file using `programs/pkey/rsa_sign` after maki…
/mbedtls-development/
A DChangeLog1525 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)

Completed in 39 milliseconds