Lines Matching refs:md_info
61 ctx->md_info = NULL; in mbedtls_ecjpake_init()
84 ctx->md_info = NULL; in mbedtls_ecjpake_free()
117 if( ( ctx->md_info = mbedtls_md_info_from_type( hash ) ) == NULL ) in mbedtls_ecjpake_setup()
152 if( ctx->md_info == NULL || in mbedtls_ecjpake_check()
199 static int ecjpake_hash( const mbedtls_md_info_t *md_info, in ecjpake_hash() argument
233 MBEDTLS_MPI_CHK( mbedtls_md( md_info, buf, p - buf, hash ) ); in ecjpake_hash()
237 mbedtls_md_get_size( md_info ) ) ); in ecjpake_hash()
247 static int ecjpake_zkp_read( const mbedtls_md_info_t *md_info, in ecjpake_zkp_read() argument
297 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
319 static int ecjpake_zkp_write( const mbedtls_md_info_t *md_info, in ecjpake_zkp_write() argument
347 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
380 static int ecjpake_kkp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkp_read() argument
407 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
417 static int ecjpake_kkp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkp_write() argument
443 MBEDTLS_MPI_CHK( ecjpake_zkp_write( md_info, grp, pf, G, x, X, id, in ecjpake_kkp_write()
454 static int ecjpake_kkpp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkpp_read() argument
473 MBEDTLS_MPI_CHK( ecjpake_kkp_read( md_info, grp, pf, G, Xa, id, &p, end ) ); in ecjpake_kkpp_read()
474 MBEDTLS_MPI_CHK( ecjpake_kkp_read( md_info, grp, pf, G, Xb, id, &p, end ) ); in ecjpake_kkpp_read()
487 static int ecjpake_kkpp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkpp_write() argument
506 MBEDTLS_MPI_CHK( ecjpake_kkp_write( md_info, grp, pf, G, xm1, Xa, id, in ecjpake_kkpp_write()
508 MBEDTLS_MPI_CHK( ecjpake_kkp_write( md_info, grp, pf, G, xm2, Xb, id, in ecjpake_kkpp_write()
527 return( ecjpake_kkpp_read( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_read_round_one()
546 return( ecjpake_kkpp_write( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_write_round_one()
619 MBEDTLS_MPI_CHK( ecjpake_kkp_read( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_read_round_two()
734 MBEDTLS_MPI_CHK( ecjpake_zkp_write( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_write_round_two()
768 *olen = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ecjpake_derive_secret()
794 MBEDTLS_MPI_CHK( mbedtls_md( ctx->md_info, kx, x_bytes, buf ) ); in mbedtls_ecjpake_derive_secret()