Lines Matching refs:grp
141 mbedtls_ecp_group_load( &ecp->grp, grp_id ) ); in mbedtls_psa_ecp_load_representation()
150 mbedtls_ecp_point_read_binary( &ecp->grp, &ecp->Q, in mbedtls_psa_ecp_load_representation()
158 mbedtls_ecp_check_pubkey( &ecp->grp, &ecp->Q ) ); in mbedtls_psa_ecp_load_representation()
166 mbedtls_ecp_read_key( ecp->grp.id, in mbedtls_psa_ecp_load_representation()
213 *bits = ecp->grp.nbits + 1; in ecp_import_key()
215 *bits = ecp->grp.nbits; in ecp_import_key()
248 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in mbedtls_psa_ecp_export_key()
256 mbedtls_ecp_point_write_binary( &ecp->grp, &ecp->Q, in mbedtls_psa_ecp_export_key()
268 if( data_size < PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) in mbedtls_psa_ecp_export_key()
274 PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) ); in mbedtls_psa_ecp_export_key()
276 *data_length = PSA_BITS_TO_BYTES( ecp->grp.nbits ); in mbedtls_psa_ecp_export_key()
382 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in ecdsa_sign_hash()
399 &ecp->grp, &r, &s, in ecdsa_sign_hash()
412 MBEDTLS_MPI_CHK( mbedtls_ecdsa_sign( &ecp->grp, &r, &s, &ecp->d, in ecdsa_sign_hash()
458 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in ecdsa_verify_hash()
479 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in ecdsa_verify_hash()
483 ret = mbedtls_ecdsa_verify( &ecp->grp, hash, hash_length, in ecdsa_verify_hash()