Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
0d724cc1
Commit
0d724cc1
authored
Jun 03, 2014
by
kokke
Browse files
Update test.c
parent
a50ee935
Changes
1
Show whitespace changes
Inline
Side-by-side
test.c
View file @
0d724cc1
...
@@ -51,18 +51,8 @@ static void test_ECB(void)
...
@@ -51,18 +51,8 @@ static void test_ECB(void)
phex
(
buf
+
(
i
*
16
));
phex
(
buf
+
(
i
*
16
));
}
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
// print the resulting cipher as 4 x 16 byte strings
printf
(
"back to plain text again:
\n
"
);
for
(
i
=
0
;
i
<
4
;
++
i
)
{
AES128_ECB
(
buf
+
(
i
*
16
),
key
,
buf2
+
(
i
*
16
));
phex
(
plain_text
+
(
i
*
16
));
}
printf
(
"
\n
"
);
}
}
// prints string as hex
// prints string as hex
void
phex
(
uint8_t
*
str
)
void
phex
(
uint8_t
*
str
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment