Lines Matching refs:prv
444 static int rsa_check_pair_wrap(mbedtls_pk_context *pub, mbedtls_pk_context *prv, in rsa_check_pair_wrap() argument
451 (const mbedtls_rsa_context *) prv->pk_ctx); in rsa_check_pair_wrap()
932 static int eckey_check_pair_psa(mbedtls_pk_context *pub, mbedtls_pk_context *prv) in eckey_check_pair_psa() argument
938 mbedtls_svc_key_id_t key_id = prv->priv_id; in eckey_check_pair_psa()
954 static int eckey_check_pair_psa(mbedtls_pk_context *pub, mbedtls_pk_context *prv) in eckey_check_pair_psa() argument
967 mbedtls_ecc_group_to_psa(mbedtls_pk_ec_ro(*prv)->grp.id, &curve_bits); in eckey_check_pair_psa()
977 ret = mbedtls_mpi_write_binary(&mbedtls_pk_ec_ro(*prv)->d, in eckey_check_pair_psa()
1019 static int eckey_check_pair_wrap(mbedtls_pk_context *pub, mbedtls_pk_context *prv, in eckey_check_pair_wrap() argument
1025 return eckey_check_pair_psa(pub, prv); in eckey_check_pair_wrap()
1028 static int eckey_check_pair_wrap(mbedtls_pk_context *pub, mbedtls_pk_context *prv, in eckey_check_pair_wrap() argument
1033 (const mbedtls_ecp_keypair *) prv->pk_ctx, in eckey_check_pair_wrap()
1045 mbedtls_pk_context *prv, in ecdsa_opaque_check_pair_wrap() argument
1058 status = psa_export_public_key(prv->priv_id, exp_pub_key, sizeof(exp_pub_key), in ecdsa_opaque_check_pair_wrap()
1335 static int rsa_alt_check_pair(mbedtls_pk_context *pub, mbedtls_pk_context *prv, in rsa_alt_check_pair() argument
1344 if (rsa_alt_get_bitlen(prv) != rsa_get_bitlen(pub)) { in rsa_alt_check_pair()
1350 if ((ret = rsa_alt_sign_wrap(prv, MBEDTLS_MD_NONE, in rsa_alt_check_pair()