Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3e07a8cb
authored
4 years ago
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
128B test vector
parent
7c967ca5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
process_zip.sh
+7
-3
No files found.
process_zip.sh
View file @
3e07a8cb
...
@@ -63,7 +63,11 @@ function run() {
...
@@ -63,7 +63,11 @@ function run() {
TEST_PATH
=
$(
realpath
$TEST_PATH
)
TEST_PATH
=
$(
realpath
$TEST_PATH
)
mv
$cipher
/
*
.log
"
$TEST_PATH
"
mv
$cipher
/
*
.log
"
$TEST_PATH
"
cp test_vectors/
$VARIANT
/LWC_AEAD_KAT_
*
.txt
"
$TEST_PATH
/LWC_AEAD_KAT.txt"
||
exit
1
head
-n
10 test_vectors/
$VARIANT
/LWC_AEAD_KAT_
*
.txt
>
"
$TEST_PATH
/LWC_AEAD_KAT.txt"
||
exit
1
echo
"PT = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F"
>>
$TEST_PATH
/LWC_AEAD_KAT.txt
echo
"AD = "
>>
$TEST_PATH
/LWC_AEAD_KAT.txt
mv
$TMPDIR
/
$CIPHER_SLUG
/
*
{
.elf,.bin,.hex,.map
}
"
$TEST_PATH
"
mv
$TMPDIR
/
$CIPHER_SLUG
/
*
{
.elf,.bin,.hex,.map
}
"
$TEST_PATH
"
curl
\
curl
\
...
@@ -82,7 +86,7 @@ function run() {
...
@@ -82,7 +86,7 @@ function run() {
done
done
#
rm -rf "$TMPDIR"
rm
-rf
"
$TMPDIR
"
}
}
if
[[
$1
==
"run"
]]
;
then
if
[[
$1
==
"run"
]]
;
then
...
@@ -105,7 +109,7 @@ else
...
@@ -105,7 +109,7 @@ else
touch
$MAINDIR
/locky.lock
touch
$MAINDIR
/locky.lock
flock
$MAINDIR
/locky.lock
$0
run
$TMPDIR
$TEMPLATE
$MAINDIR
/
$TEMPLATE
flock
$MAINDIR
/locky.lock
$0
run
$TMPDIR
$TEMPLATE
$MAINDIR
/
$TEMPLATE
done
done
#
rm -rf $TMPDIR
rm
-rf
$TMPDIR
fi
fi
...
...
This diff is collapsed.
Click to expand it.
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