Lines Matching refs:md_info

58     ctx->md_info = NULL;  in mbedtls_ecjpake_init()
81 ctx->md_info = NULL; in mbedtls_ecjpake_free()
109 if( ( ctx->md_info = mbedtls_md_info_from_type( hash ) ) == NULL ) in mbedtls_ecjpake_setup()
128 if( ctx->md_info == NULL || in mbedtls_ecjpake_check()
178 static int ecjpake_hash( const mbedtls_md_info_t *md_info, in ecjpake_hash() argument
214 mbedtls_md( md_info, buf, p - buf, hash ); in ecjpake_hash()
218 mbedtls_md_get_size( md_info ) ) ); in ecjpake_hash()
228 static int ecjpake_zkp_read( const mbedtls_md_info_t *md_info, in ecjpake_zkp_read() argument
278 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_read()
300 static int ecjpake_zkp_write( const mbedtls_md_info_t *md_info, in ecjpake_zkp_write() argument
328 MBEDTLS_MPI_CHK( ecjpake_hash( md_info, grp, pf, G, &V, X, id, &h ) ); in ecjpake_zkp_write()
361 static int ecjpake_kkp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkp_read() argument
388 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
398 static int ecjpake_kkp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkp_write() argument
424 MBEDTLS_MPI_CHK( ecjpake_zkp_write( md_info, grp, pf, G, x, X, id, in ecjpake_kkp_write()
435 static int ecjpake_kkpp_read( const mbedtls_md_info_t *md_info, in ecjpake_kkpp_read() argument
454 MBEDTLS_MPI_CHK( ecjpake_kkp_read( md_info, grp, pf, G, Xa, id, &p, end ) ); in ecjpake_kkpp_read()
455 MBEDTLS_MPI_CHK( ecjpake_kkp_read( md_info, grp, pf, G, Xb, id, &p, end ) ); in ecjpake_kkpp_read()
468 static int ecjpake_kkpp_write( const mbedtls_md_info_t *md_info, in ecjpake_kkpp_write() argument
487 MBEDTLS_MPI_CHK( ecjpake_kkp_write( md_info, grp, pf, G, xm1, Xa, id, in ecjpake_kkpp_write()
489 MBEDTLS_MPI_CHK( ecjpake_kkp_write( md_info, grp, pf, G, xm2, Xb, id, in ecjpake_kkpp_write()
505 return( ecjpake_kkpp_read( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_read_round_one()
519 return( ecjpake_kkpp_write( ctx->md_info, &ctx->grp, ctx->point_format, in mbedtls_ecjpake_write_round_one()
589 MBEDTLS_MPI_CHK( ecjpake_kkp_read( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_read_round_two()
699 MBEDTLS_MPI_CHK( ecjpake_zkp_write( ctx->md_info, &ctx->grp, in mbedtls_ecjpake_write_round_two()
728 *olen = mbedtls_md_get_size( ctx->md_info ); in mbedtls_ecjpake_derive_secret()
754 MBEDTLS_MPI_CHK( mbedtls_md( ctx->md_info, kx, x_bytes, buf ) ); in mbedtls_ecjpake_derive_secret()