This commit is contained in:
xenia 2021-04-25 04:27:56 -04:00
parent 186e641a98
commit 42e0cf6a0e
2 changed files with 2 additions and 7 deletions

View File

@ -76,11 +76,7 @@ def align(db, ntraces):
def main(db):
ntraces = 1000
# traces = align(db, ntraces)
traces = numpy.zeros((ntraces, 700), 'double')
for i in range(ntraces):
traces[i, :] = db["traces"][i]
traces = align(db, ntraces)
# for i in range(10):
# plt.plot(traces[i], color=numpy.hstack((numpy.random.random(3), [0.5])))
@ -136,6 +132,5 @@ if __name__ == "__main__":
from tqdm.contrib.logging import logging_redirect_tqdm
logging.basicConfig(level=logging.INFO)
with logging_redirect_tqdm():
# db = h5py.File("./ASCAD_databases/ASCAD_desync100.h5", "r")
db = h5py.File("./ASCAD_databases/ASCAD.h5", "r")
db = h5py.File("./ASCAD_databases/ASCAD_desync100.h5", "r")
main(db["Attack_traces"])

BIN
sca/ascad/first_order.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB