Lines Matching refs:end
142 const unsigned char *end, in ecjpake_write_len_point() argument
151 if( end < *p || end - *p < 5 ) in ecjpake_write_len_point()
155 &len, *p + 4, end - ( *p + 4 ) ); in ecjpake_write_len_point()
190 const unsigned char *end = buf + sizeof( buf ); in ecjpake_hash() local
195 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, G ) ); in ecjpake_hash()
196 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, V ) ); in ecjpake_hash()
197 MBEDTLS_MPI_CHK( ecjpake_write_len_point( &p, end, grp, pf, X ) ); in ecjpake_hash()
199 if( end - p < 4 ) in ecjpake_hash()
207 if( end < p || (size_t)( end - p ) < id_len ) in ecjpake_hash()
235 const unsigned char *end ) in ecjpake_zkp_read() argument
253 if( end < *p ) in ecjpake_zkp_read()
256 MBEDTLS_MPI_CHK( mbedtls_ecp_tls_read_point( grp, &V, p, end - *p ) ); in ecjpake_zkp_read()
258 if( end < *p || (size_t)( end - *p ) < 1 ) in ecjpake_zkp_read()
266 if( end < *p || (size_t)( end - *p ) < r_len ) in ecjpake_zkp_read()
308 const unsigned char *end, in ecjpake_zkp_write() argument
318 if( end < *p ) in ecjpake_zkp_write()
335 pf, &len, *p, end - *p ) ); in ecjpake_zkp_write()
339 if( end < *p || (size_t)( end - *p ) < 1 + len || len > 255 ) in ecjpake_zkp_write()
368 const unsigned char *end ) in ecjpake_kkp_read() argument
372 if( end < *p ) in ecjpake_kkp_read()
381 MBEDTLS_MPI_CHK( mbedtls_ecp_tls_read_point( grp, X, p, end - *p ) ); in ecjpake_kkp_read()
388 MBEDTLS_MPI_CHK( ecjpake_zkp_read( md_info, grp, pf, G, X, id, p, end ) ); in ecjpake_kkp_read()
406 const unsigned char *end, in ecjpake_kkp_write() argument
413 if( end < *p ) in ecjpake_kkp_write()
420 pf, &len, *p, end - *p ) ); in ecjpake_kkp_write()
425 p, end, f_rng, p_rng ) ); in ecjpake_kkp_write()
447 const unsigned char *end = buf + len; in ecjpake_kkpp_read() local
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()
457 if( p != end ) in ecjpake_kkpp_read()
485 const unsigned char *end = buf + len; in ecjpake_kkpp_write() local
488 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
490 &p, end, f_rng, p_rng ) ); in ecjpake_kkpp_write()
557 const unsigned char *end = buf + len; in mbedtls_ecjpake_read_round_two() local
591 &G, &ctx->Xp, ID_PEER, &p, end ) ); in mbedtls_ecjpake_read_round_two()
593 if( p != end ) in mbedtls_ecjpake_read_round_two()
650 const unsigned char *end = buf + len; in mbedtls_ecjpake_write_round_two() local
680 if( end < p ) in mbedtls_ecjpake_write_round_two()
686 p, end - p ) ); in mbedtls_ecjpake_write_round_two()
690 if( end < p ) in mbedtls_ecjpake_write_round_two()
696 ctx->point_format, &ec_len, p, end - p ) ); in mbedtls_ecjpake_write_round_two()
702 &p, end, f_rng, p_rng ) ); in mbedtls_ecjpake_write_round_two()