Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit 5663708

Browse files
author
Constanza Heath
committed
Fixing whitespace, changing header path
Signed-off-by: Constanza Heath <[email protected]>
1 parent 731a8e7 commit 5663708

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/test_aes.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include <stdio.h>
3636
#include <string.h>
3737

38-
#include "aes.h"
38+
#include <aes.h>
3939
#include "test_utils.h"
4040

4141
/*
@@ -48,16 +48,16 @@ int32_t test_1() {
4848
0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c
4949
};
5050
const struct tc_aes_key_sched_struct expected = {{
51-
0x2b7e1516, 0x28aed2a6, 0xabf71588, 0x09cf4f3c,
52-
0xa0fafe17, 0x88542cb1, 0x23a33939, 0x2a6c7605,
53-
0xf2c295f2, 0x7a96b943, 0x5935807a, 0x7359f67f,
54-
0x3d80477d, 0x4716fe3e, 0x1e237e44, 0x6d7a883b,
55-
0xef44a541, 0xa8525b7f, 0xb671253b, 0xdb0bad00,
56-
0xd4d1c6f8, 0x7c839d87, 0xcaf2b8bc, 0x11f915bc,
57-
0x6d88a37a, 0x110b3efd, 0xdbf98641, 0xca0093fd,
58-
0x4e54f70e, 0x5f5fc9f3, 0x84a64fb2, 0x4ea6dc4f,
59-
0xead27321, 0xb58dbad2, 0x312bf560, 0x7f8d292f,
60-
0xac7766f3, 0x19fadc21, 0x28d12941, 0x575c006e,
51+
0x2b7e1516, 0x28aed2a6, 0xabf71588, 0x09cf4f3c,
52+
0xa0fafe17, 0x88542cb1, 0x23a33939, 0x2a6c7605,
53+
0xf2c295f2, 0x7a96b943, 0x5935807a, 0x7359f67f,
54+
0x3d80477d, 0x4716fe3e, 0x1e237e44, 0x6d7a883b,
55+
0xef44a541, 0xa8525b7f, 0xb671253b, 0xdb0bad00,
56+
0xd4d1c6f8, 0x7c839d87, 0xcaf2b8bc, 0x11f915bc,
57+
0x6d88a37a, 0x110b3efd, 0xdbf98641, 0xca0093fd,
58+
0x4e54f70e, 0x5f5fc9f3, 0x84a64fb2, 0x4ea6dc4f,
59+
0xead27321, 0xb58dbad2, 0x312bf560, 0x7f8d292f,
60+
0xac7766f3, 0x19fadc21, 0x28d12941, 0x575c006e,
6161
0xd014f9a8, 0xc9ee2589, 0xe13f0cc8, 0xb6630ca6
6262
}};
6363
struct tc_aes_key_sched_struct s;

tests/test_ctr_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void test_1_2 (void) {
8787

8888
printf ("\tPerforming CTR test #2 (decryption SP 800-38a tests)...");
8989
(void) memcpy (ctr, out, sizeof (ctr));
90-
if (tc_ctr_mode (decrypted, sizeof (decrypted), &out[TC_AES_BLOCK_SIZE], sizeof (decrypted), ctr,
90+
if (tc_ctr_mode (decrypted, sizeof (decrypted), &out[TC_AES_BLOCK_SIZE], sizeof (decrypted), ctr,
9191
&sched) == 0) {
9292
fprintf (stderr, "CTR test #2 (decryption SP 800-38a tests) failed.\n");
9393
exit (-1);

0 commit comments

Comments
 (0)