Lines Matching defs:buffer
321 static int resize_buffer(unsigned char **buffer, size_t len_new, size_t *len_old)
328 /* We want to copy len_new bytes when downsizing the buffer, and
330 * to fit one buffer into another. Size checks, ensuring that no data is
332 memcpy(resized_buffer, *buffer,
334 mbedtls_zeroize_and_free(*buffer, *len_old);
336 *buffer = resized_buffer;
357 MBEDTLS_SSL_DEBUG_MSG(1, ("input buffer resizing failed - out of memory"));
374 MBEDTLS_SSL_DEBUG_MSG(1, ("output buffer resizing failed - out of memory"));
1479 * If partial is non-zero, keep data in the input buffer and client ID.
3741 /* Done, should have consumed entire buffer */
4469 * that were written into the output buffer by the previous handshake step,
5031 * 4. value was temporary (eg content of input buffer)
5486 * Done - should have consumed entire buffer
7840 * it in-place from the input buffer instead of making a copy. */
8267 * these pointers point into the input buffer,
8780 * - [in] randbytes: buffer holding ServerHello.random + ClientHello.random
9697 * reception buffer and not make a copy of it.