mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-13 00:25:31 +00:00
Move illustration of (un)supported cases in MPS reader documentation
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
97c8e930e2
commit
77e4f485e1
|
@ -246,12 +246,6 @@ int mbedtls_mps_reader_get( mbedtls_mps_reader *rd,
|
|||
|
||||
/* Check if we're still serving from the accumulator. */
|
||||
if( mps_reader_serving_from_accumulator( rd ) )
|
||||
{
|
||||
unsigned char *acc;
|
||||
|
||||
MBEDTLS_MPS_TRACE( mbedtls_mps_trace_comment,
|
||||
"Serve the request from the accumulator" );
|
||||
if( frag_offset - end < desired )
|
||||
{
|
||||
/* Illustration of supported and unsupported cases:
|
||||
*
|
||||
|
@ -312,10 +306,16 @@ int mbedtls_mps_reader_get( mbedtls_mps_reader *rd,
|
|||
* | |
|
||||
* fo/frag_offset aa/acc_available
|
||||
*
|
||||
* In case of Allowed #1 and #2 we're switching to serve from
|
||||
* In case of Allowed #2 we're switching to serve from
|
||||
* `frag` starting from the next call to mbedtls_mps_reader_get().
|
||||
*/
|
||||
|
||||
unsigned char *acc;
|
||||
|
||||
MBEDTLS_MPS_TRACE( mbedtls_mps_trace_comment,
|
||||
"Serve the request from the accumulator" );
|
||||
if( frag_offset - end < desired )
|
||||
{
|
||||
mbedtls_mps_size_t acc_available;
|
||||
acc_available = rd->acc_available;
|
||||
if( acc_available - end != desired )
|
||||
|
|
Loading…
Reference in a new issue