mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Fix typos.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
This commit is contained in:
parent
8788906947
commit
ceb5bc6150
|
|
@ -204,7 +204,7 @@ void mbedtls_ccm_encrypt_and_tag( int cipher_id, data_t * key,
|
||||||
ASSERT_COMPARE( io_msg_buf, msg->len, result->x, msg->len );
|
ASSERT_COMPARE( io_msg_buf, msg->len, result->x, msg->len );
|
||||||
ASSERT_COMPARE( tag_buf, expected_tag_len, expected_tag, expected_tag_len );
|
ASSERT_COMPARE( tag_buf, expected_tag_len, expected_tag, expected_tag_len );
|
||||||
|
|
||||||
/* Prepare data_t structers for multipart testing */
|
/* Prepare data_t structures for multipart testing */
|
||||||
const data_t encrypted_expected = { .x = result->x,
|
const data_t encrypted_expected = { .x = result->x,
|
||||||
.len = msg->len };
|
.len = msg->len };
|
||||||
const data_t tag_expected = { .x = (uint8_t*) expected_tag, /* cast to conform with data_t x type */
|
const data_t tag_expected = { .x = (uint8_t*) expected_tag, /* cast to conform with data_t x type */
|
||||||
|
|
@ -259,7 +259,7 @@ void mbedtls_ccm_auth_decrypt( int cipher_id, data_t * key,
|
||||||
{
|
{
|
||||||
ASSERT_COMPARE( io_msg_buf, expected_msg_len, expected_msg->x, expected_msg_len );
|
ASSERT_COMPARE( io_msg_buf, expected_msg_len, expected_msg->x, expected_msg_len );
|
||||||
|
|
||||||
/* Prepare data_t structers for multipart testing */
|
/* Prepare data_t structures for multipart testing */
|
||||||
const data_t encrypted = { .x = msg->x,
|
const data_t encrypted = { .x = msg->x,
|
||||||
.len = expected_msg_len };
|
.len = expected_msg_len };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue