We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f69057 commit e093f2aCopy full SHA for e093f2a
adafruit_atecc/adafruit_atecc_asn1.py
@@ -268,6 +268,6 @@ def issuer_or_subject_length(
268
tot_len += 11 + len(org_unit)
269
if common:
270
tot_len += 11 + len(common)
271
- else:
272
- raise TypeError("Provided length must be > 0")
+ if tot_len == 0:
+ raise TypeError("issuer_or_subject_length cannot be zero")
273
return tot_len
0 commit comments