Skip to content

Commit

Permalink
document and tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoPope committed Jul 25, 2024
1 parent 1b4eb7c commit 9fade61
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 298 deletions.
13 changes: 2 additions & 11 deletions src/dilithium_py/dilithium/default_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,34 @@

DEFAULT_PARAMETERS = {
"dilithium2": {
"n": 256,
"q": 8380417,
"d": 13,
"k": 4,
"l": 4,
"eta": 2,
"eta_bound": 15,
"tau": 39,
"omega": 80,
"gamma_1": 131072, # 2^17
"gamma_2": 95232, # (q-1)/88
},
"dilithium3": {
"n": 256,
"q": 8380417,
"d": 13,
"k": 6,
"l": 5,
"eta": 4,
"eta_bound": 9,
"tau": 49,
"omega": 55,
"gamma_1": 524288, # 2^19
"gamma_2": 261888, # (q-1)/88
"gamma_2": 261888, # (q-1)/32
},
"dilithium5": {
"n": 256,
"q": 8380417,
"d": 13,
"k": 8,
"l": 7,
"eta": 2,
"eta_bound": 15,
"tau": 60,
"omega": 75,
"gamma_1": 524288, # 2^19
"gamma_2": 261888, # (q-1)/88
"gamma_2": 261888, # (q-1)/32
},
}

Expand Down
Loading

0 comments on commit 9fade61

Please sign in to comment.