Skip to content

Commit addb199

Browse files
committed
Fix comment about SuccinctRoles zero-padding
Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
1 parent a872eb5 commit addb199

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tuf/api/metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,9 @@ def __init__(
14951495
self.name_prefix = name_prefix
14961496

14971497
# Calculate the suffix_len value based on the total number of bins in
1498-
# hex. If bit_length = 8 then number_of_bins = 256 or 100 in hex
1499-
# and suffix_len = 3 meaning the third bin will have a suffix of "003"
1498+
# hex. If bit_length = 10 then number_of_bins = 1024 or bin names will
1499+
# have a suffix between "000" and "3ff" in hex and suffix_len will be 3
1500+
# meaning the third bin will have a suffix of "003".
15001501
self.number_of_bins = 2**bit_length
15011502
# suffix_len is calculated based on "number_of_bins - 1" as the name
15021503
# of the last bin contains the number "number_of_bins -1" as a suffix.

0 commit comments

Comments
 (0)