Lines Matching refs:pub

444 static int rsa_check_pair_wrap(mbedtls_pk_context *pub, mbedtls_pk_context *prv,  in rsa_check_pair_wrap()  argument
450 return mbedtls_rsa_check_pub_priv((const mbedtls_rsa_context *) pub->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
947 if (memcmp(prv_key_buf, pub->pub_raw, pub->pub_raw_len) != 0) { 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
1002 ret = mbedtls_ecp_point_write_binary(&mbedtls_pk_ec_rw(*pub)->grp, in eckey_check_pair_psa()
1003 &mbedtls_pk_ec_rw(*pub)->Q, 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
1032 return mbedtls_ecp_check_pub_priv((const mbedtls_ecp_keypair *) pub->pk_ctx, in eckey_check_pair_wrap()
1044 static int ecdsa_opaque_check_pair_wrap(mbedtls_pk_context *pub, in ecdsa_opaque_check_pair_wrap() argument
1064 ret = mbedtls_ecp_point_write_binary(&(mbedtls_pk_ec_ro(*pub)->grp), in ecdsa_opaque_check_pair_wrap()
1065 &(mbedtls_pk_ec_ro(*pub)->Q), 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()
1357 if (rsa_verify_wrap(pub, MBEDTLS_MD_NONE, in rsa_alt_check_pair()