Skip to content

Commit 2dac8ee

Browse files
committed
der: make the comment unambiguous
the X.690 refers to bits from 1 to 8 rather than from 0 to 7 use the "MSB" as an unambiguous name
1 parent a127819 commit 2dac8ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ecdsa/der.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def read_number(string):
219219
llen = 0
220220
if str_idx_as_int(string, 0) == 0x80:
221221
raise UnexpectedDER("Non minimal encoding of OID subidentifier")
222-
# base-128 big endian, with b7 set in all but the last byte
222+
# base-128 big endian, with most significant bit set in all but the last
223+
# byte
223224
while True:
224225
if llen >= len(string):
225226
raise UnexpectedDER("ran out of length bytes")

0 commit comments

Comments
 (0)