Lines Matching refs:end
68 const unsigned char *end ) in dhm_read_bignum() argument
72 if( end - *p < 2 ) in dhm_read_bignum()
78 if( (int)( end - *p ) < n ) in dhm_read_bignum()
132 const unsigned char *end ) in mbedtls_dhm_read_params() argument
137 DHM_VALIDATE_RET( end != NULL ); in mbedtls_dhm_read_params()
139 if( ( ret = dhm_read_bignum( &ctx->P, p, end ) ) != 0 || in mbedtls_dhm_read_params()
140 ( ret = dhm_read_bignum( &ctx->G, p, end ) ) != 0 || in mbedtls_dhm_read_params()
141 ( ret = dhm_read_bignum( &ctx->GY, p, end ) ) != 0 ) in mbedtls_dhm_read_params()
485 unsigned char *p, *end; in mbedtls_dhm_parse_dhm() local
519 end = p + dhminlen; in mbedtls_dhm_parse_dhm()
528 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_dhm_parse_dhm()
535 end = p + len; in mbedtls_dhm_parse_dhm()
537 if( ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->P ) ) != 0 || in mbedtls_dhm_parse_dhm()
538 ( ret = mbedtls_asn1_get_mpi( &p, end, &dhm->G ) ) != 0 ) in mbedtls_dhm_parse_dhm()
544 if( p != end ) in mbedtls_dhm_parse_dhm()
550 ret = mbedtls_asn1_get_mpi( &p, end, &rec ); in mbedtls_dhm_parse_dhm()
557 if ( p != end ) in mbedtls_dhm_parse_dhm()