Home
last modified time | relevance | path

Searched refs:mbedtls_pk_context (Results 1 – 25 of 47) sorted by relevance

12

/mbedtls-3.5.0/include/mbedtls/
Dpk.h233 typedef struct mbedtls_pk_context { struct
236 } mbedtls_pk_context; typedef
281 void mbedtls_pk_init(mbedtls_pk_context *ctx);
294 void mbedtls_pk_free(mbedtls_pk_context *ctx);
329 int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info);
360 int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx,
380 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key,
393 size_t mbedtls_pk_get_bitlen(const mbedtls_pk_context *ctx);
402 static inline size_t mbedtls_pk_get_len(const mbedtls_pk_context *ctx) in mbedtls_pk_get_len()
419 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type);
[all …]
Dx509_csr.h59 mbedtls_pk_context pk; /**< Container for the public key context. */
79 mbedtls_pk_context *MBEDTLS_PRIVATE(key);
207 void mbedtls_x509write_csr_set_key(mbedtls_x509write_csr *ctx, mbedtls_pk_context *key);
Dx509_crt.h74 mbedtls_pk_context pk; /**< Container for the public key context. */
232 mbedtls_pk_context *MBEDTLS_PRIVATE(subject_key);
233 mbedtls_pk_context *MBEDTLS_PRIVATE(issuer_key);
1021 void mbedtls_x509write_crt_set_subject_key(mbedtls_x509write_cert *ctx, mbedtls_pk_context *key);
1029 void mbedtls_x509write_crt_set_issuer_key(mbedtls_x509write_cert *ctx, mbedtls_pk_context *key);
/mbedtls-3.5.0/library/
Dpk.c59 void mbedtls_pk_init(mbedtls_pk_context *ctx) in mbedtls_pk_init()
68 void mbedtls_pk_free(mbedtls_pk_context *ctx) in mbedtls_pk_free()
78 mbedtls_platform_zeroize(ctx, sizeof(mbedtls_pk_context)); in mbedtls_pk_free()
137 int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info) in mbedtls_pk_setup()
156 int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx, in mbedtls_pk_setup_opaque()
199 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key, in mbedtls_pk_setup_rsa_alt()
231 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type) in mbedtls_pk_can_do()
247 int mbedtls_pk_can_do_ext(const mbedtls_pk_context *ctx, psa_algorithm_t alg, in mbedtls_pk_can_do_ext()
420 int mbedtls_pk_verify_restartable(mbedtls_pk_context *ctx, in mbedtls_pk_verify_restartable()
470 int mbedtls_pk_verify(mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify()
[all …]
Dpkwrite.c173 const mbedtls_pk_context *key) in mbedtls_pk_write_pubkey()
212 int mbedtls_pk_write_pubkey_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_der()
309 int mbedtls_pk_write_key_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_der()
483 int mbedtls_pk_write_pubkey_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_pem()
503 int mbedtls_pk_write_key_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_pem()
Dpkparse.c111 int mbedtls_pk_parse_keyfile(mbedtls_pk_context *ctx, in mbedtls_pk_parse_keyfile()
139 int mbedtls_pk_parse_public_keyfile(mbedtls_pk_context *ctx, const char *path) in mbedtls_pk_parse_public_keyfile()
619 mbedtls_pk_context *pk) in mbedtls_pk_parse_subpubkey()
1008 mbedtls_pk_context *pk, in pk_parse_key_pkcs8_unencrypted_der()
1110 mbedtls_pk_context *pk, in pk_parse_key_pkcs8_encrypted_der()
1211 int mbedtls_pk_parse_key(mbedtls_pk_context *pk, in mbedtls_pk_parse_key()
1421 int mbedtls_pk_parse_public_key(mbedtls_pk_context *ctx, in mbedtls_pk_parse_public_key()
Dssl_misc.h820 mbedtls_pk_context peer_pubkey; /*!< The public key from the peer. */
1232 mbedtls_pk_context *key; /*!< private key */
1547 unsigned char mbedtls_ssl_sig_from_pk(mbedtls_pk_context *pk);
1633 static inline mbedtls_pk_context *mbedtls_ssl_own_key(mbedtls_ssl_context *ssl) in mbedtls_ssl_own_key()
2349 mbedtls_pk_context *key);
Dpsa_crypto_rsa.c76 mbedtls_pk_context ctx; in mbedtls_psa_rsa_load_representation()
176 mbedtls_pk_context pk; in mbedtls_psa_rsa_export_key()
Dx509write_crt.c80 mbedtls_pk_context *key) in mbedtls_x509write_crt_set_subject_key()
86 mbedtls_pk_context *key) in mbedtls_x509write_crt_set_issuer_key()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_pkparse.function17 mbedtls_pk_context ctx;
49 mbedtls_pk_context ctx;
75 mbedtls_pk_context ctx;
99 mbedtls_pk_context ctx;
124 mbedtls_pk_context pk;
Dtest_suite_pk.function35 static int pk_genkey(mbedtls_pk_context *pk, int parameter)
148 mbedtls_pk_context pk, pk2;
254 mbedtls_pk_context pk;
300 mbedtls_pk_context ctx;
347 mbedtls_pk_context pk;
434 mbedtls_pk_context pk;
464 mbedtls_pk_context pk;
485 mbedtls_pk_context pub, prv, alt;
526 mbedtls_pk_context pk;
574 mbedtls_pk_context pk;
[all …]
Dtest_suite_pkwrite.function15 mbedtls_pk_context key;
54 mbedtls_pk_context key;
Dtest_suite_x509write.function142 mbedtls_pk_context key;
260 mbedtls_pk_context key;
334 mbedtls_pk_context subject_key, issuer_key, issuer_key_alt;
335 mbedtls_pk_context *key = &issuer_key;
/mbedtls-3.5.0/programs/pkey/
Dkey_app_writer.c107 static int write_public_key(mbedtls_pk_context *key, const char *output_file) in write_public_key()
149 static int write_private_key(mbedtls_pk_context *key, const char *output_file) in write_private_key()
205 mbedtls_pk_context key; in main()
Dpk_verify.c50 mbedtls_pk_context pk; in main()
Drsa_verify_pss.c53 mbedtls_pk_context pk; in main()
Dgen_key.c137 static int write_private_key(mbedtls_pk_context *key, const char *output_file) in write_private_key()
179 mbedtls_pk_context key; in main()
Dpk_encrypt.c55 mbedtls_pk_context pk; in main()
Dpk_decrypt.c56 mbedtls_pk_context pk; in main()
Dpk_sign.c52 mbedtls_pk_context pk; in main()
Drsa_sign_pss.c53 mbedtls_pk_context pk; in main()
/mbedtls-3.5.0/programs/fuzz/
Dfuzz_pubkey.c11 mbedtls_pk_context pk; in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c22 mbedtls_pk_context pk; in LLVMFuzzerTestOneInput()
Dfuzz_dtlsserver.c27 static mbedtls_pk_context pkey;
Dfuzz_server.c21 static mbedtls_pk_context pkey;

12