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
da6d8a9f
authored
Jul 18, 2019
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to make test measurements more stable
parent
6eb71c50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
get_submissions.sh
+4
-0
test.py
+5
-2
No files found.
get_submissions.sh
View file @
da6d8a9f
...
...
@@ -5,3 +5,7 @@ cd all-lwc-submission-files
wget https://csrc.nist.gov/CSRC/media/Projects/Lightweight-Cryptography/documents/round-1/submissions/all-lwc-submission-files.zip
unzip all-lwc-submission-files.zip
cd
..
mkdir
-p
all-lwc-submission-files/aes-gcm/Implementations/crypto_aead/aesgcm128-128
cp
-r
mbed_aes_gcm/ all-lwc-submission-files/aes-gcm/Implementations/crypto_aead/aesgcm128-128/ref
test.py
View file @
da6d8a9f
...
...
@@ -139,7 +139,7 @@ def begin_measurement():
sal
=
saleae
.
Saleae
()
sal
.
set_active_channels
([
0
,
1
,
2
,
3
],
[])
sal
.
set_sample_rate
(
sal
.
get_all_sample_rates
()[
0
])
sal
.
set_capture_seconds
(
1
000
)
sal
.
set_capture_seconds
(
6
000
)
sal
.
capture_start
()
time
.
sleep
(
1
)
if
sal
.
is_processing_complete
():
...
...
@@ -148,11 +148,14 @@ def begin_measurement():
def
end_measurement
(
sal
):
import
time
if
sal
.
is_processing_complete
():
raise
Exception
(
"Capture finished before expected"
)
time
.
sleep
(
1
)
sal
.
capture_stop
();
time
.
sleep
(
.
1
)
for
attempt
in
range
(
3
):
if
not
sal
.
is_processing_complete
():
print
(
"
waiting for capture to complete
"
)
print
(
"
Waiting for capture to complete...
"
)
time
.
sleep
(
1
)
continue
outfile
=
"measurement_
%
s.csv"
%
time
.
strftime
(
"
%
Y
%
m
%
d-
%
H
%
M
%
S"
)
...
...
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