mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 08:56:50 -04:00
Correct mixed up comments
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
96d61d14d8
commit
069e7f462a
@ -1140,14 +1140,14 @@ int mbedtls_aes_crypt_xts( mbedtls_aes_xts_context *ctx,
|
|||||||
size_t i;
|
size_t i;
|
||||||
unsigned char *prev_output = output - 16;
|
unsigned char *prev_output = output - 16;
|
||||||
|
|
||||||
/* Copy the remainder of the input for this final round. */
|
/* Copy ciphertext bytes from the previous block to our output for each
|
||||||
|
* byte of ciphertext we won't steal. */
|
||||||
for( i = 0; i < leftover; i++ )
|
for( i = 0; i < leftover; i++ )
|
||||||
{
|
{
|
||||||
output[i] = prev_output[i];
|
output[i] = prev_output[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy ciphertext bytes from the previous block to our output for each
|
/* Copy the remainder of the input for this final round. */
|
||||||
* byte of ciphertext we won't steal. */
|
|
||||||
mbedtls_xor( tmp, input, t, leftover );
|
mbedtls_xor( tmp, input, t, leftover );
|
||||||
|
|
||||||
/* Copy ciphertext bytes from the previous block for input in this
|
/* Copy ciphertext bytes from the previous block for input in this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user