Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_atecc/adafruit_atecc_asn1.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,6 @@ def issuer_or_subject_length(
tot_len += 11 + len(org_unit)
if common:
tot_len += 11 + len(common)
else:
raise TypeError("Provided length must be > 0")
if tot_len == 0:
raise TypeError("issuer_or_subject_length cannot be zero")
return tot_len