Lines Matching refs:h
192 mbedtls_mpi *h ) in ecjpake_hash() argument
222 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( h, hash, in ecjpake_hash()
224 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( h, h, &grp->N ) ); in ecjpake_hash()
244 mbedtls_mpi r, h; in ecjpake_zkp_read() local
250 mbedtls_mpi_init( &h ); in ecjpake_zkp_read()
283 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
285 &VV, &h, X, &r, G ) ); in ecjpake_zkp_read()
297 mbedtls_mpi_free( &h ); in ecjpake_zkp_read()
320 mbedtls_mpi h; /* later recycled to hold r */ in ecjpake_zkp_write() local
328 mbedtls_mpi_init( &h ); in ecjpake_zkp_write()
333 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
334 MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mpi( &h, &h, x ) ); /* x*h */ in ecjpake_zkp_write()
335 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &h, &v, &h ) ); /* v - x*h */ in ecjpake_zkp_write()
336 MBEDTLS_MPI_CHK( mbedtls_mpi_mod_mpi( &h, &h, &grp->N ) ); /* r */ in ecjpake_zkp_write()
343 len = mbedtls_mpi_size( &h ); /* actually r */ in ecjpake_zkp_write()
351 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &h, *p, len ) ); /* r */ in ecjpake_zkp_write()
357 mbedtls_mpi_free( &h ); in ecjpake_zkp_write()