Lines Matching refs:grp
115 mbedtls_ecp_group_load( &ecp->grp, grp_id ) ); in mbedtls_psa_ecp_load_representation()
124 mbedtls_ecp_point_read_binary( &ecp->grp, &ecp->Q, in mbedtls_psa_ecp_load_representation()
132 mbedtls_ecp_check_pubkey( &ecp->grp, &ecp->Q ) ); in mbedtls_psa_ecp_load_representation()
140 mbedtls_ecp_read_key( ecp->grp.id, in mbedtls_psa_ecp_load_representation()
187 *bits = ecp->grp.nbits + 1; in mbedtls_psa_ecp_import_key()
189 *bits = ecp->grp.nbits; in mbedtls_psa_ecp_import_key()
222 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in mbedtls_psa_ecp_export_key()
230 mbedtls_ecp_point_write_binary( &ecp->grp, &ecp->Q, in mbedtls_psa_ecp_export_key()
242 if( data_size < PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) in mbedtls_psa_ecp_export_key()
248 PSA_BITS_TO_BYTES( ecp->grp.nbits ) ) ); in mbedtls_psa_ecp_export_key()
250 *data_length = PSA_BITS_TO_BYTES( ecp->grp.nbits ); in mbedtls_psa_ecp_export_key()
356 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in mbedtls_psa_ecdsa_sign_hash()
373 &ecp->grp, &r, &s, in mbedtls_psa_ecdsa_sign_hash()
386 MBEDTLS_MPI_CHK( mbedtls_ecdsa_sign( &ecp->grp, &r, &s, &ecp->d, in mbedtls_psa_ecdsa_sign_hash()
432 curve_bytes = PSA_BITS_TO_BYTES( ecp->grp.pbits ); in mbedtls_psa_ecdsa_verify_hash()
453 mbedtls_ecp_mul( &ecp->grp, &ecp->Q, &ecp->d, &ecp->grp.G, in mbedtls_psa_ecdsa_verify_hash()
457 ret = mbedtls_ecdsa_verify( &ecp->grp, hash, hash_length, in mbedtls_psa_ecdsa_verify_hash()