mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
misc/simulators/hashbasedsig.py: fix an incorrect comment.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
6ca5f5fc39
commit
946a9f9ddd
@ -34,7 +34,7 @@ def ceil_div(x, y):
|
||||
def floor_div(x, y):
|
||||
return int(floor(float(x) / float(y)))
|
||||
|
||||
# number of compression function evaluations to hash k hash-outputs
|
||||
# number of compression function evaluations to hash k bits
|
||||
# we assume that there is a label in each block
|
||||
def compressions(k):
|
||||
return ceil_div(k + L_pad, L_block - L_label)
|
||||
|
Loading…
x
Reference in New Issue
Block a user