Lines Matching refs:buf
119 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_params() argument
133 if( ( ret = mbedtls_ecp_tls_write_group( &ctx->grp, &grp_len, buf, blen ) ) in mbedtls_ecdh_make_params()
137 buf += grp_len; in mbedtls_ecdh_make_params()
141 &pt_len, buf, blen ) ) != 0 ) in mbedtls_ecdh_make_params()
156 const unsigned char **buf, const unsigned char *end ) in mbedtls_ecdh_read_params() argument
160 if( ( ret = mbedtls_ecp_tls_read_group( &ctx->grp, buf, end - *buf ) ) != 0 ) in mbedtls_ecdh_read_params()
163 if( ( ret = mbedtls_ecp_tls_read_point( &ctx->grp, &ctx->Qp, buf, end - *buf ) ) in mbedtls_ecdh_read_params()
200 unsigned char *buf, size_t blen, in mbedtls_ecdh_make_public() argument
214 olen, buf, blen ); in mbedtls_ecdh_make_public()
221 const unsigned char *buf, size_t blen ) in mbedtls_ecdh_read_public() argument
224 const unsigned char *p = buf; in mbedtls_ecdh_read_public()
232 if( (size_t)( p - buf ) != blen ) in mbedtls_ecdh_read_public()
242 unsigned char *buf, size_t blen, in mbedtls_ecdh_calc_secret() argument
261 return mbedtls_mpi_write_binary( &ctx->z, buf, *olen ); in mbedtls_ecdh_calc_secret()