Lines Matching defs:pk_ctx
254 * pk_ctx Private Key context
265 int create_rsa_signature(mbedtls_pk_context *pk_ctx,
297 mbedtls_rsa_set_padding(mbedtls_pk_rsa(*pk_ctx),
304 rval = mbedtls_rsa_rsassa_pss_sign(mbedtls_pk_rsa(*pk_ctx),
349 mbedtls_pk_context pk_ctx;
359 mbedtls_pk_init(&pk_ctx);
372 rval = mbedtls_pk_parse_subpubkey(&pkey, pub_key + klen, &pk_ctx);
380 mbedtls_rsa_set_padding(mbedtls_pk_rsa(pk_ctx),
387 rval = mbedtls_rsa_rsassa_pss_verify(mbedtls_pk_rsa(pk_ctx),
398 mbedtls_pk_free(&pk_ctx);
826 mbedtls_pk_context *pk_ctx = (index == CSK_ARR_SZ) ?
856 mbedtls_pk_init(pk_ctx);
860 if (mbedtls_pk_parse_keyfile(pk_ctx, fname, "") != 0) {
869 output_len = mbedtls_pk_write_pubkey_der(pk_ctx,