leaky crypto: wrap
This commit is contained in:
parent
1d4e3c29eb
commit
36dfe28656
|
@ -30,7 +30,12 @@ def guess_bytes(corpus, known_keybytes, num_samps, avg):
|
|||
|
||||
if __name__ == '__main__':
|
||||
known_keybytes = bytes.fromhex("64c7072487f2")
|
||||
secret_data = "c1a5fe7beb2c70bfab98926627dcff8b9671edc52441f89fa47797aa023f15f67907ee837b93cd9b194922ebb7c3ca3bd1cbfbc888efe147e80554047d82872fcee564c1bfd2e0a809568acb5cc08f4836a5f91f43b576a4ee1c6f097c15e1cd4056917fc51c1e5d8157409b11f1600d"
|
||||
secret_data = ("c1a5fe7beb2c70bfab98926627dcff8b9671edc5" +
|
||||
"2441f89fa47797aa023f15f67907ee837b93cd9b" +
|
||||
"194922ebb7c3ca3bd1cbfbc888efe147e8055404" +
|
||||
"7d82872fcee564c1bfd2e0a809568acb5cc08f48" +
|
||||
"36a5f91f43b576a4ee1c6f097c15e1cd4056917f" +
|
||||
"c51c1e5d8157409b11f1600d")
|
||||
|
||||
data = set()
|
||||
with open("test.txt", "r") as fp:
|
||||
|
@ -63,4 +68,4 @@ if __name__ == '__main__':
|
|||
known_tly[i][j][c] = cnorm
|
||||
known_tly[j][i][c] = cnorm
|
||||
|
||||
guess_bytes(known_tly, known_keybytes, 4, tavg)
|
||||
guess_bytes(known_tly, known_keybytes, 4, tavg)
|
||||
|
|
Loading…
Reference in New Issue