Skip to content

Commit

Permalink
der: make the comment unambiguous
Browse files Browse the repository at this point in the history
the X.690 refers to bits from 1 to 8 rather than from 0 to 7
use the "MSB" as an unambiguous name
  • Loading branch information
tomato42 committed Nov 5, 2019
1 parent a127819 commit 2dac8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ecdsa/der.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ def read_number(string):
llen = 0
if str_idx_as_int(string, 0) == 0x80:
raise UnexpectedDER("Non minimal encoding of OID subidentifier")
# base-128 big endian, with b7 set in all but the last byte
# base-128 big endian, with most significant bit set in all but the last
# byte
while True:
if llen >= len(string):
raise UnexpectedDER("ran out of length bytes")
Expand Down

0 comments on commit 2dac8ee

Please sign in to comment.